22 lines
977 B
Go
22 lines
977 B
Go
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:"结束时间"`
|
||
}
|