| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322 |
- // Code generated by goctl. DO NOT EDIT.
- // goctl 1.10.0
- package types
- type AddMemberReq struct {
- ProductCode string `json:"productCode"`
- UserId int64 `json:"userId"`
- MemberType string `json:"memberType"`
- }
- type AdminLoginReq struct {
- Username string `json:"username"`
- Password string `json:"password"`
- ManagementKey string `json:"managementKey"`
- }
- type BindPermsReq struct {
- RoleId int64 `json:"roleId"`
- PermIds []int64 `json:"permIds"`
- }
- type BindRolesReq struct {
- UserId int64 `json:"userId"`
- RoleIds []int64 `json:"roleIds"`
- }
- type ChangePasswordReq struct {
- OldPassword string `json:"oldPassword"`
- NewPassword string `json:"newPassword"`
- }
- type CreateDeptReq struct {
- ParentId int64 `json:"parentId"`
- Name string `json:"name"`
- Sort int64 `json:"sort,optional"`
- DeptType string `json:"deptType,optional"`
- Remark string `json:"remark,optional"`
- }
- type CreateProductReq struct {
- Code string `json:"code"`
- Name string `json:"name"`
- Remark string `json:"remark,optional"`
- }
- type CreateProductResp struct {
- Id int64 `json:"id"`
- Code string `json:"code"`
- AppKey string `json:"appKey"`
- AdminUser string `json:"adminUser"`
- // CredentialsTicket 一次性凭证票据。AppSecret 与初始 AdminPassword 不再随本响应明文返回,
- // 改为由调用方用该 ticket 调一次 /api/product/fetchInitialCredentials 领取(5 分钟内有效,
- // 一次性消费)。审计 M-4:避免密码/密钥经响应体落盘到上游日志/APM。
- CredentialsTicket string `json:"credentialsTicket"`
- CredentialsExpiresAt int64 `json:"credentialsExpiresAt"`
- }
- type FetchInitialCredentialsReq struct {
- Ticket string `json:"ticket"`
- }
- type FetchInitialCredentialsResp struct {
- AppKey string `json:"appKey"`
- AppSecret string `json:"appSecret"`
- AdminUser string `json:"adminUser"`
- AdminPassword string `json:"adminPassword"`
- }
- type CreateRoleReq struct {
- ProductCode string `json:"productCode"`
- Name string `json:"name"`
- Remark string `json:"remark,optional"`
- PermsLevel int64 `json:"permsLevel"`
- }
- type CreateUserReq struct {
- Username string `json:"username"`
- Password string `json:"password"`
- Nickname string `json:"nickname,optional"`
- Email string `json:"email,optional"`
- Phone string `json:"phone,optional"`
- Remark string `json:"remark,optional"`
- DeptId int64 `json:"deptId,optional"`
- }
- type DeleteDeptReq struct {
- Id int64 `json:"id"`
- }
- type DeleteRoleReq struct {
- Id int64 `json:"id"`
- }
- type DeptItem struct {
- Id int64 `json:"id"`
- ParentId int64 `json:"parentId"`
- Name string `json:"name"`
- Path string `json:"path"`
- Sort int64 `json:"sort"`
- DeptType string `json:"deptType"`
- Remark string `json:"remark"`
- Status int64 `json:"status"`
- CreateTime int64 `json:"createTime"`
- Children []*DeptItem `json:"children"`
- }
- type IdResp struct {
- Id int64 `json:"id"`
- }
- type LoginReq struct {
- Username string `json:"username"`
- Password string `json:"password"`
- ProductCode string `json:"productCode"`
- }
- type LoginResp struct {
- AccessToken string `json:"accessToken"`
- RefreshToken string `json:"refreshToken"`
- Expires int64 `json:"expires"`
- UserInfo UserInfo `json:"userInfo"`
- }
- type MemberItem struct {
- Id int64 `json:"id"`
- ProductCode string `json:"productCode"`
- UserId int64 `json:"userId"`
- Username string `json:"username"`
- Nickname string `json:"nickname"`
- MemberType string `json:"memberType"`
- Status int64 `json:"status"`
- CreateTime int64 `json:"createTime"`
- }
- type MemberListReq struct {
- ProductCode string `json:"productCode"`
- Page int64 `json:"page,optional"`
- PageSize int64 `json:"pageSize,optional"`
- }
- type PageResp struct {
- Total int64 `json:"total"`
- List interface{} `json:"list"`
- }
- type PermItem struct {
- Id int64 `json:"id"`
- ProductCode string `json:"productCode"`
- Name string `json:"name"`
- Code string `json:"code"`
- Remark string `json:"remark"`
- Status int64 `json:"status"`
- CreateTime int64 `json:"createTime"`
- }
- type PermListReq struct {
- ProductCode string `json:"productCode"`
- Page int64 `json:"page,optional"`
- PageSize int64 `json:"pageSize,optional"`
- }
- type ProductDetailReq struct {
- Id int64 `json:"id"`
- }
- type ProductItem struct {
- Id int64 `json:"id"`
- Code string `json:"code"`
- Name string `json:"name"`
- AppKey string `json:"appKey"`
- Remark string `json:"remark"`
- Status int64 `json:"status"`
- CreateTime int64 `json:"createTime"`
- }
- type ProductListReq struct {
- Page int64 `json:"page,optional"`
- PageSize int64 `json:"pageSize,optional"`
- }
- type RefreshTokenReq struct {
- Authorization string `header:"Authorization"`
- ProductCode string `json:"productCode,optional"`
- }
- type RemoveMemberReq struct {
- Id int64 `json:"id"`
- }
- type RoleDetailReq struct {
- Id int64 `json:"id"`
- }
- type RoleItem struct {
- Id int64 `json:"id"`
- ProductCode string `json:"productCode"`
- Name string `json:"name"`
- Remark string `json:"remark"`
- Status int64 `json:"status"`
- PermsLevel int64 `json:"permsLevel"`
- PermIds []int64 `json:"permIds,omitempty"`
- CreateTime int64 `json:"createTime"`
- }
- type RoleListReq struct {
- ProductCode string `json:"productCode"`
- Page int64 `json:"page,optional"`
- PageSize int64 `json:"pageSize,optional"`
- }
- type SetPermsReq struct {
- UserId int64 `json:"userId"`
- Perms []UserPermItem `json:"perms"`
- }
- type SyncPermItem struct {
- Code string `json:"code"`
- Name string `json:"name"`
- Remark string `json:"remark,optional"`
- }
- type SyncPermsReq struct {
- AppKey string `json:"appKey"`
- AppSecret string `json:"appSecret"`
- Perms []SyncPermItem `json:"perms"`
- }
- type SyncPermsResp struct {
- Added int64 `json:"added"`
- Updated int64 `json:"updated"`
- Disabled int64 `json:"disabled"`
- }
- type UpdateDeptReq struct {
- Id int64 `json:"id"`
- Name string `json:"name"`
- Sort int64 `json:"sort,optional"`
- DeptType string `json:"deptType,optional"`
- Remark string `json:"remark,optional"`
- Status int64 `json:"status,optional"`
- }
- type UpdateMemberReq struct {
- Id int64 `json:"id"`
- MemberType string `json:"memberType"`
- Status int64 `json:"status,optional"`
- }
- type UpdateProductReq struct {
- Id int64 `json:"id"`
- Name string `json:"name"`
- Remark string `json:"remark,optional"`
- Status int64 `json:"status,optional"`
- }
- type UpdateRoleReq struct {
- Id int64 `json:"id"`
- Name string `json:"name"`
- Remark string `json:"remark,optional"`
- PermsLevel int64 `json:"permsLevel"`
- Status int64 `json:"status,optional"`
- }
- type UpdateUserReq struct {
- Id int64 `json:"id"`
- Nickname *string `json:"nickname,optional"`
- Email *string `json:"email,optional"`
- Phone *string `json:"phone,optional"`
- Remark *string `json:"remark,optional"`
- DeptId *int64 `json:"deptId,optional"`
- Status int64 `json:"status,optional"`
- }
- type UpdateUserStatusReq struct {
- Id int64 `json:"id"`
- Status int64 `json:"status"`
- }
- type UserDetailReq struct {
- Id int64 `json:"id"`
- }
- type UserInfo struct {
- UserId int64 `json:"userId"`
- Username string `json:"username"`
- Nickname string `json:"nickname"`
- Avatar string `json:"avatar"`
- Email string `json:"email"`
- Phone string `json:"phone"`
- IsSuperAdmin int64 `json:"isSuperAdmin"`
- MustChangePassword int64 `json:"mustChangePassword"`
- MemberType string `json:"memberType"`
- Perms []string `json:"perms"`
- }
- type UserItem struct {
- Id int64 `json:"id"`
- Username string `json:"username"`
- Nickname string `json:"nickname"`
- Avatar string `json:"avatar"`
- Email string `json:"email"`
- Phone string `json:"phone"`
- Remark string `json:"remark"`
- DeptId int64 `json:"deptId"`
- Status int64 `json:"status"`
- MemberType string `json:"memberType,omitempty"`
- RoleIds []int64 `json:"roleIds,omitempty"`
- Perms []string `json:"perms,omitempty"`
- CreateTime int64 `json:"createTime"`
- }
- type UserListReq struct {
- ProductCode string `json:"productCode,optional"`
- Page int64 `json:"page,optional"`
- PageSize int64 `json:"pageSize,optional"`
- }
- type UserPermItem struct {
- PermId int64 `json:"permId"`
- Effect string `json:"effect"`
- }
|