types.go 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  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 []map[string]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. ErpRoleType int64 `json:"erp_role_type"`
  53. ErpRole string `json:"erp_role"`
  54. MkId string `json:"mk_id"`
  55. }
  56. type LoginByWeixinResponse struct {
  57. Token string `json:"token"`
  58. UserInfo AuthUserInfo `json:"userInfo"`
  59. }
  60. type JzQrcodeResponse struct {
  61. Id int64 `json:"id"`
  62. FileId string `json:"fileId"`
  63. }
  64. type BindMobileRequest struct {
  65. Iv string `json:"iv"`
  66. EncryptedData string `json:"encryptedData"`
  67. }
  68. type BindMobileResponse struct {
  69. Id int64 `json:"id"`
  70. }
  71. type PartTimeUserAddRequest struct {
  72. Name string `json:"name"`
  73. IponeNumber string `json:"ipone_number"`
  74. Sex int64 `json:"sex"`
  75. MkId string `json:"mk_id"`
  76. CityId int64 `json:"city_id"` // 城市
  77. }
  78. type InfoResponse struct {
  79. ID int64 `json:"id"`
  80. Mobile string `json:"mobile"`
  81. UserName string `json:"username"`
  82. CityName string `json:"cityname"`
  83. NickName string `json:"nickname"`
  84. Gender int64 `json:"gender"`
  85. Avatar string `json:"avatar"`
  86. Birthday int64 `json:"birthday"`
  87. ErpRoleType int64 `json:"erpRoleType"`
  88. }
  89. type PunchClockRequest struct {
  90. Lat string `json:"lat"`
  91. Address string `json:"address"`
  92. Type int64 `json:"type"`
  93. }
  94. type EnrollRequest struct {
  95. Scene string `json:"scene"`
  96. Name string `json:"name"`
  97. ContactName string `json:"contactName"`
  98. ContactPhone string `json:"contactPhone"`
  99. SchId int64 `json:"schId"`
  100. Location string `json:"location"`
  101. }
  102. type EnrollAddReq struct {
  103. StuName string `json:"stu_name"`
  104. AgeGroup int `json:"age_group,optional"`
  105. StuLinkPerson int `json:"stu_link_person"`
  106. StuPhone string `json:"stu_phone"`
  107. SchId int `json:"sch_id,optional"`
  108. Address string `json:"address"`
  109. Sign string `json:"sign"`
  110. Remark string `json:"remark"`
  111. }
  112. type Response struct {
  113. Code int `json:"code"`
  114. Msg string `json:"msg"`
  115. Data interface{} `json:"data"`
  116. }
  117. type GetErpOptionsetReq struct {
  118. Code string `json:"code"`
  119. }