types.go 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  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. UserName string `json:"username"`
  41. NickName string `json:"nickname"`
  42. Gender int64 `json:"gender"`
  43. Avatar string `json:"avatar"`
  44. Birthday int64 `json:"birthday"`
  45. }
  46. type LoginByWeixinResponse struct {
  47. Token string `json:"token"`
  48. UserInfo AuthUserInfo `json:"userInfo"`
  49. }
  50. type JzQrcodeResponse struct {
  51. Id int64 `json:"id"`
  52. FileId string `json:"fileId"`
  53. }
  54. type BindMobileRequest struct {
  55. Iv string `json:"iv"`
  56. EncryptedData string `json:"encryptedData"`
  57. }
  58. type BindMobileResponse struct {
  59. Id int64 `json:"id"`
  60. }
  61. type PartTimeUserAddRequest struct {
  62. Name string `json:"name"`
  63. IponeNumber string `json:"ipone_number"`
  64. Sex int64 `json:"sex"`
  65. MkId string `json:"mk_id"`
  66. CityId int64 `json:"city_id"` // 城市
  67. }
  68. type InfoResponse struct {
  69. ID int64 `json:"id"`
  70. Mobile string `json:"mobile"`
  71. UserName string `json:"username"`
  72. NickName string `json:"nickname"`
  73. Gender int64 `json:"gender"`
  74. Avatar string `json:"avatar"`
  75. Birthday int64 `json:"birthday"`
  76. ErpRoleType int64 `json:"erpRoleType"`
  77. }
  78. type PunchClockRequest struct {
  79. Lat string `json:"lat"`
  80. Address string `json:"address"`
  81. Type int64 `json:"type"`
  82. }
  83. type Response struct {
  84. Code int `json:"code"`
  85. Msg string `json:"msg"`
  86. Data interface{} `json:"data"`
  87. }