case-admin-api/api/requests/CaseComment.go
2025-03-07 17:23:50 +08:00

36 lines
1.7 KiB
Go
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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:是)
}