2025-06-13 18:24:51 +08:00

30 lines
1.6 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 PublicRequest struct {
Login // 登陆
LoginProgram // 登陆-小程序
}
// Login 登陆
type Login struct {
Source int `json:"source" form:"source" validate:"required" label:"来源标识"` // 来源平台标识2:肝胆相照 3:佳动力)
PlatformKey string `json:"platform_key" form:"platform_key" validate:"required" label:"平台标识"`
ProjectId string `json:"project_id" form:"project_id" label:"项目标识"`
UserIden string `json:"user_iden" form:"user_iden" label:"用户唯一标识"`
UnionId string `json:"unionid" form:"unionid" label:"用户微信唯一标识"`
MobileEncryption string `json:"mobile_encryption" form:"mobile_encryption" label:"用户手机号"` // 用户手机号(加密后数据)
Token string `json:"token" form:"token" label:"appToken"`
ShareUserId string `json:"share_user_id" form:"share_user_id" label:"分享人标识"`
IsWhite int `json:"is_white" form:"is_white" label:"白名单标识" validate:"omitempty,oneof=0 1"` // 是否白名单0:否 1:是)
DoctorName string `json:"doctor_name" form:"doctor_name" label:"医生名称"`
HospitalName string `json:"hospital_name" form:"hospital_name" label:"医院名称"`
DepartmentName string `json:"department_name" form:"department_name" label:"科室名称"`
Address string `json:"address" form:"address" label:"地址"`
Title string `json:"title" form:"title" label:"职称"`
}
// LoginProgram 登陆-小程序
type LoginProgram struct {
Token string `json:"token" form:"token" validate:"required" label:"token"`
}