36 lines
1.7 KiB
Go
36 lines
1.7 KiB
Go
package requests
|
||
|
||
type CaseCommentRequest struct {
|
||
GetCaseCommentPage // 获取列表-分页
|
||
PutCaseCommentStatus // 操作状态
|
||
PutCaseCommentContent // 修改评论内容
|
||
AddCaseCommentHighQuality // 设置优质评论
|
||
}
|
||
|
||
// GetCaseCommentPage 获取列表-分页
|
||
type GetCaseCommentPage struct {
|
||
Page int `json:"page" form:"page" label:"页码"`
|
||
PageSize int `json:"page_size" form:"page_size" label:"每页个数"`
|
||
PlatformId string `json:"platform_id" form:"platform_id" label:"平台id"`
|
||
CaseId string `json:"case_id" form:"case_id" label:"病例id"`
|
||
Keyword string `json:"keyword" form:"keyword" label:"搜索关键字"` // 医生名称/医生手机号/评论内容/病例名称
|
||
IsHighQuality *int `json:"is_high_quality" form:"is_high_quality" label:"优质留言" validate:"omitempty,oneof=0 1"` // 是否优质留言(0:否 1:是)
|
||
ParentId string `json:"parent_id" form:"parent_id" label:"父级id"`
|
||
RootId string `json:"root_id" form:"root_id" label:"根评论id"`
|
||
}
|
||
|
||
// PutCaseCommentStatus 操作状态
|
||
type PutCaseCommentStatus struct {
|
||
Status int `json:"status" form:"status" label:"病例状态" validate:"omitempty,oneof=0 1"` // 评论状态(0:禁用 1:正常)
|
||
}
|
||
|
||
// PutCaseCommentContent 修改评论内容
|
||
type PutCaseCommentContent struct {
|
||
Content string `json:"content" form:"content" label:"评论内容" validate:"required"` // 评论内容
|
||
}
|
||
|
||
// AddCaseCommentHighQuality 设置优质评论
|
||
type AddCaseCommentHighQuality struct {
|
||
IsHighQuality int `json:"is_high_quality" form:"is_high_quality" label:"优质留言" validate:"required,oneof=1"` // 是否优质留言(0:否 1:是)
|
||
}
|