types.go 7.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302
  1. // Code generated by goctl. DO NOT EDIT.
  2. // goctl 1.10.0
  3. package types
  4. type AddMemberReq struct {
  5. ProductCode string `json:"productCode"`
  6. UserId int64 `json:"userId"`
  7. MemberType string `json:"memberType"`
  8. }
  9. type BindPermsReq struct {
  10. RoleId int64 `json:"roleId"`
  11. PermIds []int64 `json:"permIds"`
  12. }
  13. type BindRolesReq struct {
  14. UserId int64 `json:"userId"`
  15. RoleIds []int64 `json:"roleIds"`
  16. }
  17. type ChangePasswordReq struct {
  18. OldPassword string `json:"oldPassword"`
  19. NewPassword string `json:"newPassword"`
  20. }
  21. type CreateDeptReq struct {
  22. ParentId int64 `json:"parentId"`
  23. Name string `json:"name"`
  24. Sort int64 `json:"sort,optional"`
  25. DeptType string `json:"deptType,optional"`
  26. Remark string `json:"remark,optional"`
  27. }
  28. type CreateProductReq struct {
  29. Code string `json:"code"`
  30. Name string `json:"name"`
  31. Remark string `json:"remark,optional"`
  32. }
  33. type CreateProductResp struct {
  34. Id int64 `json:"id"`
  35. Code string `json:"code"`
  36. AppKey string `json:"appKey"`
  37. AppSecret string `json:"appSecret"`
  38. AdminUser string `json:"adminUser"`
  39. AdminPassword string `json:"adminPassword"`
  40. }
  41. type CreateRoleReq struct {
  42. ProductCode string `json:"productCode"`
  43. Name string `json:"name"`
  44. Remark string `json:"remark,optional"`
  45. PermsLevel int64 `json:"permsLevel"`
  46. }
  47. type CreateUserReq struct {
  48. Username string `json:"username"`
  49. Password string `json:"password"`
  50. Nickname string `json:"nickname,optional"`
  51. Email string `json:"email,optional"`
  52. Phone string `json:"phone,optional"`
  53. Remark string `json:"remark,optional"`
  54. DeptId int64 `json:"deptId,optional"`
  55. }
  56. type DeleteDeptReq struct {
  57. Id int64 `json:"id"`
  58. }
  59. type DeleteRoleReq struct {
  60. Id int64 `json:"id"`
  61. }
  62. type DeptItem struct {
  63. Id int64 `json:"id"`
  64. ParentId int64 `json:"parentId"`
  65. Name string `json:"name"`
  66. Path string `json:"path"`
  67. Sort int64 `json:"sort"`
  68. DeptType string `json:"deptType"`
  69. Remark string `json:"remark"`
  70. Status int64 `json:"status"`
  71. CreateTime int64 `json:"createTime"`
  72. Children []*DeptItem `json:"children"`
  73. }
  74. type IdResp struct {
  75. Id int64 `json:"id"`
  76. }
  77. type LoginReq struct {
  78. Username string `json:"username"`
  79. Password string `json:"password"`
  80. ProductCode string `json:"productCode,optional"`
  81. }
  82. type LoginResp struct {
  83. AccessToken string `json:"accessToken"`
  84. RefreshToken string `json:"refreshToken"`
  85. Expires int64 `json:"expires"`
  86. UserInfo UserInfo `json:"userInfo"`
  87. }
  88. type MemberItem struct {
  89. Id int64 `json:"id"`
  90. ProductCode string `json:"productCode"`
  91. UserId int64 `json:"userId"`
  92. Username string `json:"username"`
  93. Nickname string `json:"nickname"`
  94. MemberType string `json:"memberType"`
  95. Status int64 `json:"status"`
  96. CreateTime int64 `json:"createTime"`
  97. }
  98. type MemberListReq struct {
  99. ProductCode string `json:"productCode"`
  100. Page int64 `json:"page,optional"`
  101. PageSize int64 `json:"pageSize,optional"`
  102. }
  103. type PageResp struct {
  104. Total int64 `json:"total"`
  105. List interface{} `json:"list"`
  106. }
  107. type PermItem struct {
  108. Id int64 `json:"id"`
  109. ProductCode string `json:"productCode"`
  110. Name string `json:"name"`
  111. Code string `json:"code"`
  112. Remark string `json:"remark"`
  113. Status int64 `json:"status"`
  114. CreateTime int64 `json:"createTime"`
  115. }
  116. type PermListReq struct {
  117. ProductCode string `json:"productCode"`
  118. Page int64 `json:"page,optional"`
  119. PageSize int64 `json:"pageSize,optional"`
  120. }
  121. type ProductDetailReq struct {
  122. Id int64 `json:"id"`
  123. }
  124. type ProductItem struct {
  125. Id int64 `json:"id"`
  126. Code string `json:"code"`
  127. Name string `json:"name"`
  128. AppKey string `json:"appKey"`
  129. Remark string `json:"remark"`
  130. Status int64 `json:"status"`
  131. CreateTime int64 `json:"createTime"`
  132. }
  133. type ProductListReq struct {
  134. Page int64 `json:"page,optional"`
  135. PageSize int64 `json:"pageSize,optional"`
  136. }
  137. type RefreshTokenReq struct {
  138. Authorization string `header:"Authorization"`
  139. ProductCode string `json:"productCode,optional"`
  140. }
  141. type RemoveMemberReq struct {
  142. Id int64 `json:"id"`
  143. }
  144. type RoleDetailReq struct {
  145. Id int64 `json:"id"`
  146. }
  147. type RoleItem struct {
  148. Id int64 `json:"id"`
  149. ProductCode string `json:"productCode"`
  150. Name string `json:"name"`
  151. Remark string `json:"remark"`
  152. Status int64 `json:"status"`
  153. PermsLevel int64 `json:"permsLevel"`
  154. PermIds []int64 `json:"permIds,omitempty"`
  155. CreateTime int64 `json:"createTime"`
  156. }
  157. type RoleListReq struct {
  158. ProductCode string `json:"productCode"`
  159. Page int64 `json:"page,optional"`
  160. PageSize int64 `json:"pageSize,optional"`
  161. }
  162. type SetPermsReq struct {
  163. UserId int64 `json:"userId"`
  164. Perms []UserPermItem `json:"perms"`
  165. }
  166. type SyncPermItem struct {
  167. Code string `json:"code"`
  168. Name string `json:"name"`
  169. Remark string `json:"remark,optional"`
  170. }
  171. type SyncPermsReq struct {
  172. AppKey string `json:"appKey"`
  173. AppSecret string `json:"appSecret"`
  174. Perms []SyncPermItem `json:"perms"`
  175. }
  176. type SyncPermsResp struct {
  177. Added int64 `json:"added"`
  178. Updated int64 `json:"updated"`
  179. Disabled int64 `json:"disabled"`
  180. }
  181. type UpdateDeptReq struct {
  182. Id int64 `json:"id"`
  183. Name string `json:"name"`
  184. Sort int64 `json:"sort,optional"`
  185. DeptType string `json:"deptType,optional"`
  186. Remark string `json:"remark,optional"`
  187. Status int64 `json:"status,optional"`
  188. }
  189. type UpdateMemberReq struct {
  190. Id int64 `json:"id"`
  191. MemberType string `json:"memberType"`
  192. Status int64 `json:"status,optional"`
  193. }
  194. type UpdateProductReq struct {
  195. Id int64 `json:"id"`
  196. Name string `json:"name"`
  197. Remark string `json:"remark,optional"`
  198. Status int64 `json:"status,optional"`
  199. }
  200. type UpdateRoleReq struct {
  201. Id int64 `json:"id"`
  202. Name string `json:"name"`
  203. Remark string `json:"remark,optional"`
  204. PermsLevel int64 `json:"permsLevel"`
  205. Status int64 `json:"status,optional"`
  206. }
  207. type UpdateUserReq struct {
  208. Id int64 `json:"id"`
  209. Nickname *string `json:"nickname,optional"`
  210. Email *string `json:"email,optional"`
  211. Phone *string `json:"phone,optional"`
  212. Remark *string `json:"remark,optional"`
  213. DeptId *int64 `json:"deptId,optional"`
  214. Status int64 `json:"status,optional"`
  215. }
  216. type UpdateUserStatusReq struct {
  217. Id int64 `json:"id"`
  218. Status int64 `json:"status"`
  219. }
  220. type UserDetailReq struct {
  221. Id int64 `json:"id"`
  222. }
  223. type UserInfo struct {
  224. UserId int64 `json:"userId"`
  225. Username string `json:"username"`
  226. Nickname string `json:"nickname"`
  227. Avatar string `json:"avatar"`
  228. Email string `json:"email"`
  229. Phone string `json:"phone"`
  230. IsSuperAdmin int64 `json:"isSuperAdmin"`
  231. MustChangePassword int64 `json:"mustChangePassword"`
  232. MemberType string `json:"memberType"`
  233. Perms []string `json:"perms"`
  234. }
  235. type UserItem struct {
  236. Id int64 `json:"id"`
  237. Username string `json:"username"`
  238. Nickname string `json:"nickname"`
  239. Avatar string `json:"avatar"`
  240. Email string `json:"email"`
  241. Phone string `json:"phone"`
  242. Remark string `json:"remark"`
  243. DeptId int64 `json:"deptId"`
  244. Status int64 `json:"status"`
  245. MemberType string `json:"memberType,omitempty"`
  246. RoleIds []int64 `json:"roleIds,omitempty"`
  247. Perms []string `json:"perms,omitempty"`
  248. CreateTime int64 `json:"createTime"`
  249. }
  250. type UserListReq struct {
  251. ProductCode string `json:"productCode,optional"`
  252. Page int64 `json:"page,optional"`
  253. PageSize int64 `json:"pageSize,optional"`
  254. }
  255. type UserPermItem struct {
  256. PermId int64 `json:"permId"`
  257. Effect string `json:"effect"`
  258. }