2024-09-03 16:05:14 +08:00

22 lines
977 B
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 PublicRequest struct {
Login // 登陆
GetIndexData // 首页动态统计数据
}
// Login 登陆
type Login struct {
Access string `json:"access" form:"access" validate:"required" label:"用户名"` // 用户名
Password string `json:"password" form:"password" validate:"required" label:"密码"` // 密码
Captcha string `json:"captcha" form:"captcha" validate:"required" label:"验证码"` // 验证码
CaptchaId string `json:"captchaId" form:"captchaId" validate:"required"` // 验证码ID
}
// GetIndexData 首页动态统计数据
type GetIndexData struct {
Type int `json:"type" form:"type" validate:"required,oneof=1 2 3" label:"分类"` // 分类1:新增用户数 2:图文投票数 3:视频投票数)
StartTime string `json:"start_time" form:"start_time" validate:"required" label:"开始时间"`
EndTime string `json:"end_time" form:"end_time" validate:"required" label:"结束时间"`
}