package schema import "time" // VerifyCodeRequest 手机验证码请求参数 type VerifyCodeRequest struct { Tel string `json:"tel" v:"required#手机号不能为空|phone#请输入合法的手机号"` // 手机号 Bzty int `json:"bzty" v:"required#业务类型参数不能为空|between:1,2#请输入正确的业务参数"` // 业务类型(1:登录 2:忘记密码 3故障通知) TelCount int `json:"count"` // 数量 TimeStr string `json:"time_str"` // 时间字符串 IpCount int `json:"ip_count"` // 同一IP发送次数 TemplateId string `json:"template_id"` // 模板id BusinessTypeStr string `json:"business_type_str"` // 业务类型描述 Expired time.Duration `json:"expired"` ResendLimit time.Duration `json:"resend_limit"` ParamsJson string `json:"params_json"` Phone []string `json:"phone"` Batch bool `json:"batch"` } // VerifyCodeItem 验证码存储项 type VerifyCodeItem struct { Code string `json:"code"` // 验证码 BusinessType int `json:"bzty"` // 业务类型(1:登录 2:忘记密码) } // VerifyCodeCheck 验证码检查 type VerifyCodeCheck struct { Token string `json:"token"` // 令牌 Tel string `json:"tel"` // 手机号 BusinessType int `json:"bzty"` // 业务类型(1:登录 2:忘记密码) Code string `json:"code"` // 验证码 } type VerifyCodeResponse struct { Token string `json:"token"` //令牌 } type StoreCountItem struct { Count int `json:"count"` } type SendMessageRequest struct { Tel string `json:"tel"` // 电话 Bzty int `json:"bzty"` // 业务类型 TemplateId string `json:"template_id"` // 模板id } type FaultNoticeRequest struct { }