types.go 7.8 KB

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