forked from all_user/stat_center
Initial commit
This commit is contained in:
@@ -0,0 +1,37 @@
|
||||
package srv_appcategory
|
||||
|
||||
import (
|
||||
"stat/common"
|
||||
"stat/models/appcategory"
|
||||
"time"
|
||||
)
|
||||
|
||||
// AppCategorySearch
|
||||
type AppCategorySearch struct {
|
||||
ParentAppId *int64 `json:"parentAppId" bson:"parentAppId"`
|
||||
common.Page
|
||||
}
|
||||
|
||||
type AppCategorySearchResp struct {
|
||||
Total int64 `json:"total"`
|
||||
List appcategory.AppCategoryList `json:"list"`
|
||||
}
|
||||
|
||||
type AppCategoryUpdate struct {
|
||||
ParentAppId *int64 `json:"parentAppId" bson:"parentAppId"`
|
||||
Name *string `json:"name" bson:"name,omitempty"` // 名称
|
||||
Desc *string `json:"desc" bson:"desc,omitempty"` // 描述
|
||||
Status *bool `json:"status" bson:"status,omitempty"` // 状态
|
||||
Rank *int64 `json:"rank" bson:"rank,omitempty"` // 应用排序
|
||||
UpdatedAt *time.Time `json:"updatedAt" bson:"updatedAt,omitempty"` // 更新时间
|
||||
ImgType *int64 `json:"imgType" bson:"imgType,omitempty"` // 图片展示类型 0:应用图标 1.小图标 2.大图标
|
||||
}
|
||||
|
||||
type AppCategoryUpdateReq struct {
|
||||
Param AppCategoryUpdate `json:"param" bson:"param"` // 参数
|
||||
Id int64 `json:"id" bson:"_id,omitempty"`
|
||||
}
|
||||
|
||||
type AppCategoryDelReq struct {
|
||||
Id int64 `json:"id" bson:"_id,omitempty"`
|
||||
}
|
||||
Reference in New Issue
Block a user