types.go 9.1 KB

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