wx_login_info.go 712 B

123456789101112131415161718
  1. package youngee_talent_model
  2. // WxLoginInfo 达人端微信登录后传给服务端的信息
  3. type WxLoginInfo struct {
  4. Code string `json:"code" v:"required#code must not be null"`
  5. Nickname string `json:"nickname" v:"required#nickname must not be null"`
  6. Avatar string `json:"avatar" v:"required#avatar must not be null"`
  7. Gender int `json:"gender" v:"required#gender must not be null"`
  8. GetPhoneCode string `json:"getPhoneCode"`
  9. }
  10. // LoginResultData 服务端处理完达人登录流程后返回给达人端的信息
  11. type LoginResultData struct {
  12. Token string `json:"token"`
  13. Nickname string `json:"nickname"`
  14. Avatar string `json:"avatar"`
  15. Phone string `json:"phone"`
  16. }