types.go 9.4 KB

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