This commit is contained in:
Sun
2023-11-08 21:53:07 +08:00
commit 211c3071dc
245 changed files with 39293 additions and 0 deletions
@@ -0,0 +1,5 @@
package adminApiStructs
type AboutSettingRequest struct {
Content string `json:"content"`
}
@@ -0,0 +1,12 @@
package adminApiStructs
type GetStatisticsResp struct {
UserCount int64 `json:"userCount"`
UserToday int64 `json:"userToday"`
RoleCount int64 `json:"roleCount"`
RoleToday int64 `json:"roleToday"`
DialogCount int64 `json:"dialogCount"`
DialogToday int64 `json:"dialogToday"`
DrawCount int64 `json:"drawCount"`
DrawToday int64 `json:"drawToday"`
}
@@ -0,0 +1,22 @@
package commonApiStructs
type RequestPage struct {
Page int `json:"page"`
Limit int `json:"limit"`
Keyword string `json:"keyword"`
}
type RequestDeleteIds[T int | uint] struct {
Ids []T `json:"ids"`
}
type VerificationRequest struct {
CodeID string `json:"codeId"`
VCode string `json:"vCode"`
}
type VerificationResponse struct {
CodeID string `json:"codeId"`
Result bool `json:"result"`
Message string `json:"message"`
}
@@ -0,0 +1,8 @@
package adminApiStructs
import "sun-panel/models"
type ItemIconEditRequest struct {
models.ItemIcon
IconJson string
}
@@ -0,0 +1,5 @@
package systemApiStructs
type NoticeGetListByDisplayTypeReq struct {
DisplayType []int `json:"displayType"`
}
@@ -0,0 +1,5 @@
package systemApiStructs
type GetReferralCodeResp struct {
ReferralCode string `json:"referralCode"`
}