types.go 11 KB

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