35 lines
1.5 KiB
Go
Raw Permalink 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 AdminRequest struct {
Login // 登陆
GetOssSign // 获取医生列表-分页
GetDecryptCardNum // 获取用户身份证号
GetDecryptMobile // 获取用户手机号
}
// 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
}
// GetOssSign 获取oss签名
type GetOssSign struct {
UserType int `json:"user_type" form:"user_type" validate:"required,oneof=1 2 3 4" label:"用户类型"` // 1:患者 2:医生 3:药师 4:后台)
Scene int `json:"scene" form:"scene" validate:"required,oneof=1 2 3 4" label:"场景"` // 1:头像 2:证书 3:名片 4:文章)
}
// GetDecryptCardNum 获取用户身份证号
type GetDecryptCardNum struct {
FamilyId string `json:"family_id" form:"family_id" label:"家庭成员"` // 家庭成员id
UserId string `json:"user_id" form:"user_id" validate:"required" label:"用户"` // 用户id
}
// GetDecryptMobile 获取用户手机号
type GetDecryptMobile struct {
FamilyId string `json:"family_id" form:"family_id" label:"家庭成员"` // 家庭成员id
UserId string `json:"user_id" form:"user_id" validate:"required" label:"用户"` // 用户id
}