来源:hgdjnet-server 9bfbafe10d417deea959bd53117bc88a10e60a83 项目身份 HKDJ / JHA-216,独立官网仓库,Jenkins 守卫键 hkdjnet 测试目录 /server/hkdj_net,App/Web API 30331/30332 Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
39 lines
1.5 KiB
Go
39 lines
1.5 KiB
Go
package srv_richtextcontent
|
||
|
||
import (
|
||
"hkdj-web-server/pub/models/richtextcontentmod"
|
||
"hkdj-web-server/pub/pubdef"
|
||
"time"
|
||
)
|
||
|
||
type GetRichTextContentListReq struct {
|
||
Title *string `json:"title" bson:"title"` // 标题
|
||
Status *bool `json:"status" bson:"status"` // 是否启用
|
||
pubdef.Page
|
||
}
|
||
|
||
type GetRichTextContentResp struct {
|
||
Total int64 `json:"total" bson:"total"`
|
||
List richtextcontentmod.RichTextContentModelList `json:"list" bson:"list"`
|
||
}
|
||
|
||
type DelRichTextContentReq struct {
|
||
Id int64 `bson:"_id,omitempty"`
|
||
}
|
||
|
||
type UpdateRichTextContentData struct {
|
||
Id int64 `bson:"_id,omitempty" json:"_id,omitempty"`
|
||
Title *string `json:"title" bson:"title,omitempty"` // 标题
|
||
Content *string `json:"content" bson:"content,omitempty"` // 内容
|
||
Location *[]string `json:"location" bson:"location,omitempty"` // 位置
|
||
Sort *int64 `json:"sort" bson:"sort,omitempty"` // 排序值
|
||
Status *bool `json:"status" bson:"status,omitempty"` // 是否启用
|
||
Desc *string `json:"desc" bson:"desc,omitempty"` // 标题(app)
|
||
SeoInfo *pubdef.SeoValue `json:"seoInfo" bson:"seoInfo,omitempty"` // Seo相关信息
|
||
UpdatedAt time.Time `json:"updatedAt" bson:"updatedAt,omitempty"`
|
||
}
|
||
type UpdateRichTextContentReq struct {
|
||
Id int64 `json:"id" binding:"required"`
|
||
Param UpdateRichTextContentData `json:"param" bson:"param"` // appId,唯一id
|
||
}
|