完成社会服务的增删改查
This commit is contained in:
@@ -56,8 +56,8 @@ type ListSocialServiceData struct {
|
||||
}
|
||||
|
||||
type ListSocialServiceReq struct {
|
||||
Page int `json:"page" form:"page" validate:"min=1"` // 页码(默认1)
|
||||
PageSize int `json:"page_size" form:"page_size" validate:"min=1,max=100"` // 每页条数(默认10,最大100)
|
||||
Page int `json:"page" validate:"min=1"` // 页码(默认1)
|
||||
PageSize int `json:"page_size" validate:"min=1,max=100"` // 每页条数(默认10,最大100)
|
||||
}
|
||||
|
||||
type ListSocialServiceResp struct {
|
||||
@@ -83,17 +83,17 @@ type SocialService struct {
|
||||
}
|
||||
|
||||
type UpdateSocialServiceReq struct {
|
||||
Id int64 `json:"-" path:"id" validate:"min=1"` // 社会服务ID(路径参数,必填)
|
||||
Title string `json:"title,omitempty"` // 标题
|
||||
Subtitle string `json:"subtitle,omitempty"` // 副标题
|
||||
CoverUrl string `json:"cover_url,omitempty"` // 封面图片URL
|
||||
Intro string `json:"intro,omitempty"` // 简介(纯文字)
|
||||
Content string `json:"content,omitempty"` // 内容(Markdown格式)
|
||||
ImageEditors string `json:"image_editors,omitempty"` // 图片编辑者名单(逗号分隔)
|
||||
TextEditors string `json:"text_editors,omitempty"` // 文字编辑者名单(逗号分隔)
|
||||
ChiefEditor string `json:"chief_editor,omitempty"` // 总编辑
|
||||
Proofreaders string `json:"proofreaders,omitempty"` // 校对者名单(逗号分隔)
|
||||
Reviewers string `json:"reviewers,omitempty"` // 审核者名单(逗号分隔)
|
||||
Id int64 `json:"id" validate:"min=1"` // 社会服务ID(路径参数,必填)
|
||||
Title string `json:"title,omitempty"` // 标题
|
||||
Subtitle string `json:"subtitle,omitempty"` // 副标题
|
||||
CoverUrl string `json:"cover_url,omitempty"` // 封面图片URL
|
||||
Intro string `json:"intro,omitempty"` // 简介(纯文字)
|
||||
Content string `json:"content,omitempty"` // 内容(Markdown格式)
|
||||
ImageEditors string `json:"image_editors,omitempty"` // 图片编辑者名单(逗号分隔)
|
||||
TextEditors string `json:"text_editors,omitempty"` // 文字编辑者名单(逗号分隔)
|
||||
ChiefEditor string `json:"chief_editor,omitempty"` // 总编辑
|
||||
Proofreaders string `json:"proofreaders,omitempty"` // 校对者名单(逗号分隔)
|
||||
Reviewers string `json:"reviewers,omitempty"` // 审核者名单(逗号分隔)
|
||||
}
|
||||
|
||||
type UpdateSocialServiceResp struct {
|
||||
|
||||
Reference in New Issue
Block a user