Files
web_hghl_server/web/service/srv_questionnaire/define.go
T
2026-10-26 16:28:14 +08:00

29 lines
1.1 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 srv_questionnaire
import (
"videoweb/pub/models/questionnairemod"
"videoweb/pub/pubdef"
)
// ListReq 查询问卷列表请求
type ListReq struct {
pubdef.Page
QuestionType *string `json:"questionType"` // 模糊匹配:问题类型(选填)
Status *string `json:"status"` // 精确匹配:处理状态(选填)
StartTime *int64 `json:"startTime"` // 创建时间范围-开始,Unix 时间戳(秒,选填)
EndTime *int64 `json:"endTime"` // 创建时间范围-结束,Unix 时间戳(秒,选填)
}
// ListResp 查询问卷列表响应
type ListResp struct {
Total int64 `json:"total"` // 满足条件的总条数
List []*questionnairemod.QuestionnaireModel `json:"list"` // 当前页数据
}
// HandleReq 处理问卷请求
type HandleReq struct {
Id string `json:"id" binding:"required"` // 问卷ID(ObjectID 字符串)
Status string `json:"status" binding:"required"` // 目标状态:processed 已处理 / reject 拒绝
Remark string `json:"remark"` // 备注(选填)
}