types.go 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  1. // Code generated by goctl. DO NOT EDIT.
  2. package types
  3. type PageResult struct {
  4. Page int `json:"page"`
  5. Rows int `json:"rows"`
  6. TotalSize int64 `json:"totalSize"`
  7. TotalPageSize int64 `json:"totalPageSize"`
  8. Content interface{} `json:"content"`
  9. }
  10. type WXLoginResponse struct {
  11. OpenID string `json:"openid"`
  12. SessionKey string `json:"session_key"`
  13. UnionID string `json:"unionid"`
  14. ErrCode int `json:"errcode"`
  15. ErrMsg string `json:"errmsg"`
  16. }
  17. type Watermark struct {
  18. AppID string `json:"appid"`
  19. TimeStamp int64 `json:"timestamp"`
  20. }
  21. type WXUserInfo struct {
  22. OpenID string `json:"openId,omitempty"`
  23. SessionKey string `json:"SessionKey"`
  24. NickName string `json:"nickName"`
  25. AvatarUrl string `json:"avatarUrl"`
  26. Gender int64 `json:"gender"`
  27. Country string `json:"country"`
  28. Province string `json:"province"`
  29. City string `json:"city"`
  30. UnionID string `json:"unionId,omitempty"`
  31. Language string `json:"language"`
  32. Watermark Watermark `json:"watermark,omitempty"`
  33. }
  34. type ResUserInfo struct {
  35. UserInfo WXUserInfo `json:"userInfo"`
  36. RawData string `json:"rawData"`
  37. Signature string `json:"signature"`
  38. EncryptedData string `json:"encryptedData"`
  39. IV string `json:"iv"`
  40. }
  41. type LoginByWeixinRequest struct {
  42. Code string `json:"code"`
  43. }
  44. type AuthUserInfo struct {
  45. ID int64 `json:"id"`
  46. Mobile string `json:"mobile"`
  47. UserName string `json:"username"`
  48. NickName string `json:"nickname"`
  49. Gender int64 `json:"gender"`
  50. Avatar string `json:"avatar"`
  51. Birthday int64 `json:"birthday"`
  52. }
  53. type LoginByWeixinResponse struct {
  54. Token string `json:"token"`
  55. UserInfo AuthUserInfo `json:"userInfo"`
  56. }
  57. type JzQrcodeResponse struct {
  58. Id int64 `json:"id"`
  59. FileId string `json:"fileId"`
  60. }
  61. type BindMobileRequest struct {
  62. Iv string `json:"iv"`
  63. EncryptedData string `json:"encryptedData"`
  64. }
  65. type BindMobileResponse struct {
  66. Id int64 `json:"id"`
  67. }
  68. type PartTimeUserAddRequest struct {
  69. Name string `json:"name"`
  70. IponeNumber string `json:"ipone_number"`
  71. Sex int64 `json:"sex"`
  72. MkId string `json:"mk_id"`
  73. CityId int64 `json:"city_id"` // 城市
  74. }
  75. type InfoResponse struct {
  76. ID int64 `json:"id"`
  77. Mobile string `json:"mobile"`
  78. UserName string `json:"username"`
  79. CityName string `json:"cityname"`
  80. NickName string `json:"nickname"`
  81. Gender int64 `json:"gender"`
  82. Avatar string `json:"avatar"`
  83. Birthday int64 `json:"birthday"`
  84. ErpRoleType int64 `json:"erpRoleType"`
  85. }
  86. type PunchClockRequest struct {
  87. Lat string `json:"lat"`
  88. Address string `json:"address"`
  89. Type int64 `json:"type"`
  90. }
  91. type EnrollRequest struct {
  92. Scene string `json:"scene"`
  93. Name string `json:"name"`
  94. ContactName string `json:"contactName"`
  95. ContactPhone string `json:"contactPhone"`
  96. SchId int64 `json:"schId"`
  97. Location string `json:"location"`
  98. }
  99. type EnrollAddReq struct {
  100. Name string `json:"name"`
  101. AgeGroup int `json:"age_group"`
  102. StuLinkPerson string `json:"stu_link_person"`
  103. StuPhone string `json:"stu_phone"`
  104. SchId int `json:"sch_id"`
  105. Address string `json:"address"`
  106. UserId int `json:"user_id"`
  107. NetworkId int `json:"network_id,optional"`
  108. ActiveId int `json:"active_id,optional"`
  109. }
  110. type Response struct {
  111. Code int `json:"code"`
  112. Msg string `json:"msg"`
  113. Data interface{} `json:"data"`
  114. }
  115. type GetErpOptionsetReq struct {
  116. Code string `json:"code"`
  117. }