// Code generated by goctl. DO NOT EDIT. // goctl 1.10.1 package types type AddMemberReq struct { ProductCode string `json:"productCode"` UserId int64 `json:"userId"` MemberType string `json:"memberType"` } type AdminLoginByCapReq struct { Username string `json:"username"` Password string `json:"password"` ManagementKey string `json:"managementKey"` CapToken string `json:"capToken"` } type AdminLoginReq struct { Username string `json:"username"` Password string `json:"password"` ManagementKey string `json:"managementKey"` CaptchaId string `json:"captchaId,optional"` CaptchaCode string `json:"captchaCode,optional"` } type BindPermsReq struct { RoleId int64 `json:"roleId"` PermIds []int64 `json:"permIds"` } type BindRolesReq struct { UserId int64 `json:"userId"` RoleIds []int64 `json:"roleIds"` ProductCode string `json:"productCode,optional"` } type CapEndpointResp struct { Data string `json:"data"` } type CaptchaInfo struct { Id string `json:"id"` Base64Image string `json:"base64image"` } type CaptchaReq struct { Width int `json:"width,optional"` Height int `json:"height,optional"` } 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"` AdminDeptId int64 `json:"adminDeptId"` } type CreateProductResp struct { Id int64 `json:"id"` Code string `json:"code"` AppKey string `json:"appKey"` AdminUser string `json:"adminUser"` CredentialsTicket string `json:"credentialsTicket"` CredentialsExpiresAt int64 `json:"credentialsExpiresAt"` } 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 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 GetUserPermsReq struct { UserId int64 `json:"userId"` } type GetUserPermsResp struct { Perms []UserPermItem `json:"perms"` } type IdResp struct { Id int64 `json:"id"` } type LoginByCapReq struct { Username string `json:"username"` Password string `json:"password"` ProductCode string `json:"productCode"` CapToken string `json:"capToken"` } type LoginReq struct { Username string `json:"username"` Password string `json:"password"` ProductCode string `json:"productCode"` CaptchaId string `json:"captchaId,optional"` CaptchaCode string `json:"captchaCode,optional"` } 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,optional"` 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 UpdateSelfInfoReq struct { Nickname *string `json:"nickname,optional"` Avatar *string `json:"avatar,optional"` Email *string `json:"email,optional"` Phone *string `json:"phone,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"` ProductCode string `json:"productCode,optional"` } 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"` } type UserProductItem struct { ProductCode string `json:"productCode"` ProductName string `json:"productName"` MemberType string `json:"memberType"` Status int64 `json:"status"` } type UserProductsReq struct { UserId int64 `json:"userId"` } type UserProductsResp struct { List []UserProductItem `json:"list"` }