types.go 9.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368
  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. Password string `json:"password"`
  76. Nickname string `json:"nickname,optional"`
  77. Email string `json:"email,optional"`
  78. Phone string `json:"phone,optional"`
  79. Remark string `json:"remark,optional"`
  80. DeptId int64 `json:"deptId,optional"`
  81. }
  82. type DeleteDeptReq struct {
  83. Id int64 `json:"id"`
  84. }
  85. type DeleteRoleReq struct {
  86. Id int64 `json:"id"`
  87. }
  88. type DeptItem struct {
  89. Id int64 `json:"id"`
  90. ParentId int64 `json:"parentId"`
  91. Name string `json:"name"`
  92. Path string `json:"path"`
  93. Sort int64 `json:"sort"`
  94. DeptType string `json:"deptType"`
  95. Remark string `json:"remark"`
  96. Status int64 `json:"status"`
  97. CreateTime int64 `json:"createTime"`
  98. Children []*DeptItem `json:"children"`
  99. }
  100. type FetchInitialCredentialsReq struct {
  101. Ticket string `json:"ticket"`
  102. }
  103. type FetchInitialCredentialsResp struct {
  104. AppKey string `json:"appKey"`
  105. AppSecret string `json:"appSecret"`
  106. AdminUser string `json:"adminUser"`
  107. AdminPassword string `json:"adminPassword"`
  108. }
  109. type GetUserPermsReq struct {
  110. UserId int64 `json:"userId"`
  111. }
  112. type GetUserPermsResp struct {
  113. Perms []UserPermItem `json:"perms"`
  114. }
  115. type IdResp struct {
  116. Id int64 `json:"id"`
  117. }
  118. type LoginByCapReq struct {
  119. Username string `json:"username"`
  120. Password string `json:"password"`
  121. ProductCode string `json:"productCode"`
  122. CapToken string `json:"capToken"`
  123. }
  124. type LoginReq struct {
  125. Username string `json:"username"`
  126. Password string `json:"password"`
  127. ProductCode string `json:"productCode"`
  128. CaptchaId string `json:"captchaId,optional"`
  129. CaptchaCode string `json:"captchaCode,optional"`
  130. }
  131. type LoginResp struct {
  132. AccessToken string `json:"accessToken"`
  133. RefreshToken string `json:"refreshToken"`
  134. Expires int64 `json:"expires"`
  135. UserInfo UserInfo `json:"userInfo"`
  136. }
  137. type MemberItem struct {
  138. Id int64 `json:"id"`
  139. ProductCode string `json:"productCode"`
  140. UserId int64 `json:"userId"`
  141. Username string `json:"username"`
  142. Nickname string `json:"nickname"`
  143. MemberType string `json:"memberType"`
  144. Status int64 `json:"status"`
  145. CreateTime int64 `json:"createTime"`
  146. }
  147. type MemberListReq struct {
  148. ProductCode string `json:"productCode"`
  149. Page int64 `json:"page,optional"`
  150. PageSize int64 `json:"pageSize,optional"`
  151. }
  152. type PageResp struct {
  153. Total int64 `json:"total"`
  154. List interface{} `json:"list"`
  155. }
  156. type PermItem struct {
  157. Id int64 `json:"id"`
  158. ProductCode string `json:"productCode"`
  159. Name string `json:"name"`
  160. Code string `json:"code"`
  161. Remark string `json:"remark"`
  162. Status int64 `json:"status"`
  163. CreateTime int64 `json:"createTime"`
  164. }
  165. type PermListReq struct {
  166. ProductCode string `json:"productCode"`
  167. Page int64 `json:"page,optional"`
  168. PageSize int64 `json:"pageSize,optional"`
  169. }
  170. type ProductDetailReq struct {
  171. Id int64 `json:"id"`
  172. }
  173. type ProductItem struct {
  174. Id int64 `json:"id"`
  175. Code string `json:"code"`
  176. Name string `json:"name"`
  177. AppKey string `json:"appKey"`
  178. Remark string `json:"remark"`
  179. Status int64 `json:"status"`
  180. CreateTime int64 `json:"createTime"`
  181. }
  182. type ProductListReq struct {
  183. Page int64 `json:"page,optional"`
  184. PageSize int64 `json:"pageSize,optional"`
  185. }
  186. type RefreshTokenReq struct {
  187. Authorization string `header:"Authorization"`
  188. ProductCode string `json:"productCode,optional"`
  189. }
  190. type RemoveMemberReq struct {
  191. Id int64 `json:"id"`
  192. }
  193. type RoleDetailReq struct {
  194. Id int64 `json:"id"`
  195. }
  196. type RoleItem struct {
  197. Id int64 `json:"id"`
  198. ProductCode string `json:"productCode"`
  199. Name string `json:"name"`
  200. Remark string `json:"remark"`
  201. Status int64 `json:"status"`
  202. PermsLevel int64 `json:"permsLevel"`
  203. PermIds []int64 `json:"permIds,omitempty"`
  204. CreateTime int64 `json:"createTime"`
  205. }
  206. type RoleListReq struct {
  207. ProductCode string `json:"productCode"`
  208. Page int64 `json:"page,optional"`
  209. PageSize int64 `json:"pageSize,optional"`
  210. }
  211. type SetPermsReq struct {
  212. UserId int64 `json:"userId"`
  213. Perms []UserPermItem `json:"perms"`
  214. }
  215. type SyncPermItem struct {
  216. Code string `json:"code"`
  217. Name string `json:"name"`
  218. Remark string `json:"remark,optional"`
  219. }
  220. type SyncPermsReq struct {
  221. AppKey string `json:"appKey"`
  222. AppSecret string `json:"appSecret"`
  223. Perms []SyncPermItem `json:"perms"`
  224. }
  225. type SyncPermsResp struct {
  226. Added int64 `json:"added"`
  227. Updated int64 `json:"updated"`
  228. Disabled int64 `json:"disabled"`
  229. }
  230. type UpdateDeptReq struct {
  231. Id int64 `json:"id"`
  232. Name string `json:"name"`
  233. Sort int64 `json:"sort,optional"`
  234. DeptType string `json:"deptType,optional"`
  235. Remark string `json:"remark,optional"`
  236. Status int64 `json:"status,optional"`
  237. }
  238. type UpdateMemberReq struct {
  239. Id int64 `json:"id"`
  240. MemberType *string `json:"memberType,optional"`
  241. Status *int64 `json:"status,optional"`
  242. }
  243. type UpdateProductReq struct {
  244. Id int64 `json:"id"`
  245. Name string `json:"name"`
  246. Remark string `json:"remark,optional"`
  247. Status int64 `json:"status,optional"`
  248. }
  249. type UpdateRoleReq struct {
  250. Id int64 `json:"id"`
  251. Name string `json:"name"`
  252. Remark string `json:"remark,optional"`
  253. PermsLevel int64 `json:"permsLevel"`
  254. Status int64 `json:"status,optional"`
  255. }
  256. type UpdateSelfInfoReq struct {
  257. Nickname *string `json:"nickname,optional"`
  258. Avatar *string `json:"avatar,optional"`
  259. Email *string `json:"email,optional"`
  260. Phone *string `json:"phone,optional"`
  261. }
  262. type UpdateUserReq struct {
  263. Id int64 `json:"id"`
  264. Nickname *string `json:"nickname,optional"`
  265. Email *string `json:"email,optional"`
  266. Phone *string `json:"phone,optional"`
  267. Remark *string `json:"remark,optional"`
  268. DeptId *int64 `json:"deptId,optional"`
  269. Status int64 `json:"status,optional"`
  270. }
  271. type UpdateUserStatusReq struct {
  272. Id int64 `json:"id"`
  273. Status int64 `json:"status"`
  274. }
  275. type UserDetailReq struct {
  276. Id int64 `json:"id"`
  277. }
  278. type UserInfo struct {
  279. UserId int64 `json:"userId"`
  280. Username string `json:"username"`
  281. Nickname string `json:"nickname"`
  282. Avatar string `json:"avatar"`
  283. Email string `json:"email"`
  284. Phone string `json:"phone"`
  285. IsSuperAdmin int64 `json:"isSuperAdmin"`
  286. MustChangePassword int64 `json:"mustChangePassword"`
  287. MemberType string `json:"memberType"`
  288. Perms []string `json:"perms"`
  289. }
  290. type UserItem struct {
  291. Id int64 `json:"id"`
  292. Username string `json:"username"`
  293. Nickname string `json:"nickname"`
  294. Avatar string `json:"avatar"`
  295. Email string `json:"email"`
  296. Phone string `json:"phone"`
  297. Remark string `json:"remark"`
  298. DeptId int64 `json:"deptId"`
  299. Status int64 `json:"status"`
  300. MemberType string `json:"memberType,omitempty"`
  301. RoleIds []int64 `json:"roleIds,omitempty"`
  302. Perms []string `json:"perms,omitempty"`
  303. CreateTime int64 `json:"createTime"`
  304. }
  305. type UserListReq struct {
  306. ProductCode string `json:"productCode,optional"`
  307. Page int64 `json:"page,optional"`
  308. PageSize int64 `json:"pageSize,optional"`
  309. }
  310. type UserPermItem struct {
  311. PermId int64 `json:"permId"`
  312. Effect string `json:"effect"`
  313. }