types.go 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. // Code generated by goctl. DO NOT EDIT.
  2. package types
  3. type WXLoginResponse struct {
  4. OpenID string `json:"openid"`
  5. SessionKey string `json:"session_key"`
  6. UnionID string `json:"unionid"`
  7. ErrCode int `json:"errcode"`
  8. ErrMsg string `json:"errmsg"`
  9. }
  10. type Watermark struct {
  11. AppID string `json:"appid"`
  12. TimeStamp int64 `json:"timestamp"`
  13. }
  14. type WXUserInfo struct {
  15. OpenID string `json:"openId,omitempty"`
  16. SessionKey string `json:"SessionKey"`
  17. NickName string `json:"nickName"`
  18. AvatarUrl string `json:"avatarUrl"`
  19. Gender int64 `json:"gender"`
  20. Country string `json:"country"`
  21. Province string `json:"province"`
  22. City string `json:"city"`
  23. UnionID string `json:"unionId,omitempty"`
  24. Language string `json:"language"`
  25. Watermark Watermark `json:"watermark,omitempty"`
  26. }
  27. type ResUserInfo struct {
  28. UserInfo WXUserInfo `json:"userInfo"`
  29. RawData string `json:"rawData"`
  30. Signature string `json:"signature"`
  31. EncryptedData string `json:"encryptedData"`
  32. IV string `json:"iv"`
  33. }
  34. type LoginByWeixinRequest struct {
  35. Code string `json:"code"`
  36. }
  37. type AuthUserInfo struct {
  38. ID int64 `json:"id"`
  39. Mobile string `json:"mobile"`
  40. ErpRoles string `json:"erpRoles"`
  41. UserName string `json:"username"`
  42. NickName string `json:"nickname"`
  43. Gender int64 `json:"gender"`
  44. Avatar string `json:"avatar"`
  45. Birthday int64 `json:"birthday"`
  46. }
  47. type LoginByWeixinResponse struct {
  48. Token string `json:"token"`
  49. UserInfo AuthUserInfo `json:"userInfo"`
  50. }
  51. type JzQrcodeResponse struct {
  52. Id int64 `json:"id"`
  53. FileId string `json:"fileId"`
  54. }
  55. type BindMobileRequest struct {
  56. Iv string `json:"iv"`
  57. EncryptedData string `json:"encryptedData"`
  58. }
  59. type BindMobileResponse struct {
  60. Id int64 `json:"id"`
  61. }
  62. type Request struct {
  63. Id int64 `form:"id"`
  64. }
  65. type Response struct {
  66. Id int64 `json:"id"`
  67. }