types.go 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411
  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. 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"`
  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. }
  123. type GetUserPermsResp struct {
  124. Perms []UserPermItem `json:"perms"`
  125. }
  126. type IdResp struct {
  127. Id int64 `json:"id"`
  128. }
  129. type LoginByCapReq struct {
  130. Username string `json:"username"`
  131. Password string `json:"password"`
  132. ProductCode string `json:"productCode"`
  133. CapToken string `json:"capToken"`
  134. }
  135. type LoginReq struct {
  136. Username string `json:"username"`
  137. Password string `json:"password"`
  138. ProductCode string `json:"productCode"`
  139. CaptchaId string `json:"captchaId,optional"`
  140. CaptchaCode string `json:"captchaCode,optional"`
  141. }
  142. type LoginResp struct {
  143. AccessToken string `json:"accessToken"`
  144. RefreshToken string `json:"refreshToken"`
  145. Expires int64 `json:"expires"`
  146. UserInfo UserInfo `json:"userInfo"`
  147. }
  148. type MemberItem struct {
  149. Id int64 `json:"id"`
  150. ProductCode string `json:"productCode"`
  151. UserId int64 `json:"userId"`
  152. Username string `json:"username"`
  153. Nickname string `json:"nickname"`
  154. MemberType string `json:"memberType"`
  155. Status int64 `json:"status"`
  156. CreateTime int64 `json:"createTime"`
  157. }
  158. type MemberListReq struct {
  159. ProductCode string `json:"productCode"`
  160. Page int64 `json:"page,optional"`
  161. PageSize int64 `json:"pageSize,optional"`
  162. }
  163. type PageResp struct {
  164. Total int64 `json:"total"`
  165. List interface{} `json:"list"`
  166. }
  167. type PermItem struct {
  168. Id int64 `json:"id"`
  169. ProductCode string `json:"productCode"`
  170. Name string `json:"name"`
  171. Code string `json:"code"`
  172. Remark string `json:"remark"`
  173. Status int64 `json:"status"`
  174. CreateTime int64 `json:"createTime"`
  175. }
  176. type PermListReq struct {
  177. ProductCode string `json:"productCode"`
  178. Page int64 `json:"page,optional"`
  179. PageSize int64 `json:"pageSize,optional"`
  180. }
  181. type ProductDetailReq struct {
  182. Id int64 `json:"id"`
  183. }
  184. type ProductItem struct {
  185. Id int64 `json:"id"`
  186. Code string `json:"code"`
  187. Name string `json:"name"`
  188. AppKey string `json:"appKey"`
  189. Remark string `json:"remark"`
  190. Status int64 `json:"status"`
  191. CreateTime int64 `json:"createTime"`
  192. }
  193. type ProductListReq struct {
  194. Page int64 `json:"page,optional"`
  195. PageSize int64 `json:"pageSize,optional"`
  196. }
  197. type RefreshTokenReq struct {
  198. Authorization string `header:"Authorization"`
  199. ProductCode string `json:"productCode,optional"`
  200. }
  201. type RemoveMemberReq struct {
  202. Id int64 `json:"id"`
  203. }
  204. type ResetPasswordReq struct {
  205. UserId int64 `json:"userId"`
  206. }
  207. type ResetPasswordResp struct {
  208. CredentialsTicket string `json:"credentialsTicket"`
  209. CredentialsExpiresAt int64 `json:"credentialsExpiresAt"`
  210. }
  211. type RoleDetailReq struct {
  212. Id int64 `json:"id"`
  213. }
  214. type RoleItem struct {
  215. Id int64 `json:"id"`
  216. ProductCode string `json:"productCode"`
  217. Name string `json:"name"`
  218. Remark string `json:"remark"`
  219. Status int64 `json:"status"`
  220. PermsLevel int64 `json:"permsLevel"`
  221. PermIds []int64 `json:"permIds,omitempty"`
  222. CreateTime int64 `json:"createTime"`
  223. }
  224. type RoleListReq struct {
  225. ProductCode string `json:"productCode"`
  226. Page int64 `json:"page,optional"`
  227. PageSize int64 `json:"pageSize,optional"`
  228. }
  229. type SetPermsReq struct {
  230. UserId int64 `json:"userId"`
  231. Perms []UserPermItem `json:"perms"`
  232. }
  233. type SyncPermItem struct {
  234. Code string `json:"code"`
  235. Name string `json:"name"`
  236. Remark string `json:"remark,optional"`
  237. }
  238. type SyncPermsReq struct {
  239. AppKey string `json:"appKey"`
  240. AppSecret string `json:"appSecret"`
  241. Perms []SyncPermItem `json:"perms"`
  242. }
  243. type SyncPermsResp struct {
  244. Added int64 `json:"added"`
  245. Updated int64 `json:"updated"`
  246. Disabled int64 `json:"disabled"`
  247. }
  248. type UpdateDeptReq struct {
  249. Id int64 `json:"id"`
  250. Name string `json:"name"`
  251. Sort int64 `json:"sort,optional"`
  252. DeptType string `json:"deptType,optional"`
  253. Remark string `json:"remark,optional"`
  254. Status int64 `json:"status,optional"`
  255. }
  256. type UpdateMemberReq struct {
  257. Id int64 `json:"id"`
  258. MemberType *string `json:"memberType,optional"`
  259. Status *int64 `json:"status,optional"`
  260. }
  261. type UpdateProductReq struct {
  262. Id int64 `json:"id"`
  263. Name string `json:"name"`
  264. Remark string `json:"remark,optional"`
  265. Status int64 `json:"status,optional"`
  266. }
  267. type UpdateRoleReq struct {
  268. Id int64 `json:"id"`
  269. Name string `json:"name"`
  270. Remark string `json:"remark,optional"`
  271. PermsLevel int64 `json:"permsLevel"`
  272. Status int64 `json:"status,optional"`
  273. }
  274. type UpdateSelfInfoReq struct {
  275. Nickname *string `json:"nickname,optional"`
  276. Avatar *string `json:"avatar,optional"`
  277. Email *string `json:"email,optional"`
  278. Phone *string `json:"phone,optional"`
  279. }
  280. type UpdateUserReq struct {
  281. Id int64 `json:"id"`
  282. Nickname *string `json:"nickname,optional"`
  283. Email *string `json:"email,optional"`
  284. Phone *string `json:"phone,optional"`
  285. Remark *string `json:"remark,optional"`
  286. DeptId *int64 `json:"deptId,optional"`
  287. Status int64 `json:"status,optional"`
  288. }
  289. type UpdateUserStatusReq struct {
  290. Id int64 `json:"id"`
  291. Status int64 `json:"status"`
  292. }
  293. type UserDetailReq struct {
  294. Id int64 `json:"id"`
  295. ProductCode string `json:"productCode,optional"`
  296. }
  297. type UserInfo struct {
  298. UserId int64 `json:"userId"`
  299. Username string `json:"username"`
  300. Nickname string `json:"nickname"`
  301. Avatar string `json:"avatar"`
  302. Email string `json:"email"`
  303. Phone string `json:"phone"`
  304. IsSuperAdmin int64 `json:"isSuperAdmin"`
  305. MustChangePassword int64 `json:"mustChangePassword"`
  306. MemberType string `json:"memberType"`
  307. Perms []string `json:"perms"`
  308. }
  309. type UserItem struct {
  310. Id int64 `json:"id"`
  311. Username string `json:"username"`
  312. Nickname string `json:"nickname"`
  313. Avatar string `json:"avatar"`
  314. Email string `json:"email"`
  315. Phone string `json:"phone"`
  316. Remark string `json:"remark"`
  317. DeptId int64 `json:"deptId"`
  318. Status int64 `json:"status"`
  319. MemberType string `json:"memberType,omitempty"`
  320. RoleIds []int64 `json:"roleIds,omitempty"`
  321. Perms []string `json:"perms,omitempty"`
  322. CreateTime int64 `json:"createTime"`
  323. }
  324. type UserListReq struct {
  325. ProductCode string `json:"productCode,optional"`
  326. Username string `json:"username,optional"`
  327. Nickname string `json:"nickname,optional"`
  328. Status int64 `json:"status,optional"`
  329. DeptId *int64 `json:"deptId,optional"`
  330. Page int64 `json:"page,optional"`
  331. PageSize int64 `json:"pageSize,optional"`
  332. }
  333. type UserPermItem struct {
  334. PermId int64 `json:"permId"`
  335. Effect string `json:"effect"`
  336. }
  337. type UserProductItem struct {
  338. ProductCode string `json:"productCode"`
  339. ProductName string `json:"productName"`
  340. MemberType string `json:"memberType"`
  341. Status int64 `json:"status"`
  342. }
  343. type UserProductsReq struct {
  344. UserId int64 `json:"userId"`
  345. }
  346. type UserProductsResp struct {
  347. List []UserProductItem `json:"list"`
  348. }