2024-09-19 14:39:18 +08:00

24 lines
700 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 {
GetPhoneCode // 获取手机验证码
GetOssSign // 获取oss签名
GetIndex // 获取首页数据
}
// GetPhoneCode 获取手机验证码
type GetPhoneCode struct {
Phone string `json:"phone" form:"phone" label:"手机号" validate:"required,Mobile"`
Scene int `json:"scene" form:"scene" label:"场景值" validate:"required,number,min=1,max=1"`
}
// GetOssSign 获取oss签名
type GetOssSign struct {
Scene int `json:"scene" form:"scene" validate:"required,oneof=1 2 3 4" label:"场景"` // 1:头像)
}
// GetIndex 获取首页数据
type GetIndex struct {
UserId string `json:"user_id" form:"user_id" label:"用户标识"`
}