Documentation ¶
Index ¶
- Constants
- Variables
- func ErrorBadRequest(format string, args ...interface{}) *errors.Error
- func ErrorRecordAlreadyExists(format string, args ...interface{}) *errors.Error
- func ErrorRecordNotFound(format string, args ...interface{}) *errors.Error
- func ErrorSystemError(format string, args ...interface{}) *errors.Error
- func IsBadRequest(err error) bool
- func IsRecordAlreadyExists(err error) bool
- func IsRecordNotFound(err error) bool
- func IsSystemError(err error) bool
- func RegisterAdminHTTPServer(s *http.Server, srv AdminHTTPServer)
- func RegisterAdminServer(s grpc.ServiceRegistrar, srv AdminServer)
- type AdminClient
- type AdminHTTPClient
- type AdminHTTPClientImpl
- func (c *AdminHTTPClientImpl) ApproveAdministrator(ctx context.Context, in *IdReq, opts ...http.CallOption) (*emptypb.Empty, error)
- func (c *AdminHTTPClientImpl) CreateAdministrator(ctx context.Context, in *CreateBffAdminReq, opts ...http.CallOption) (*BffAdmin, error)
- func (c *AdminHTTPClientImpl) CreateApi(ctx context.Context, in *CreateApiReq, opts ...http.CallOption) (*Api, error)
- func (c *AdminHTTPClientImpl) CreateMenu(ctx context.Context, in *CreateMenuReq, opts ...http.CallOption) (*Menu, error)
- func (c *AdminHTTPClientImpl) CreateRole(ctx context.Context, in *CreateRoleReq, opts ...http.CallOption) (*Role, error)
- func (c *AdminHTTPClientImpl) DeleteAdministrator(ctx context.Context, in *IdReq, opts ...http.CallOption) (*emptypb.Empty, error)
- func (c *AdminHTTPClientImpl) DeleteApi(ctx context.Context, in *IdReq, opts ...http.CallOption) (*emptypb.Empty, error)
- func (c *AdminHTTPClientImpl) DeleteMenu(ctx context.Context, in *IdReq, opts ...http.CallOption) (*emptypb.Empty, error)
- func (c *AdminHTTPClientImpl) DeleteRole(ctx context.Context, in *IdReq, opts ...http.CallOption) (*emptypb.Empty, error)
- func (c *AdminHTTPClientImpl) DeleteRoleForUser(ctx context.Context, in *DeleteRoleForUserReq, opts ...http.CallOption) (*emptypb.Empty, error)
- func (c *AdminHTTPClientImpl) DeleteRolesForUser(ctx context.Context, in *DeleteRolesForUserReq, opts ...http.CallOption) (*emptypb.Empty, error)
- func (c *AdminHTTPClientImpl) ForbidAdministrator(ctx context.Context, in *IdReq, opts ...http.CallOption) (*emptypb.Empty, error)
- func (c *AdminHTTPClientImpl) GetAdministrator(ctx context.Context, in *IdReq, opts ...http.CallOption) (*BffAdmin, error)
- func (c *AdminHTTPClientImpl) GetAdministratorInfo(ctx context.Context, in *emptypb.Empty, opts ...http.CallOption) (*BffAdmin, error)
- func (c *AdminHTTPClientImpl) GetAdministratorList(ctx context.Context, in *GetBffAdminListReq, opts ...http.CallOption) (*GetBffAdminListPageRes, error)
- func (c *AdminHTTPClientImpl) GetApiAll(ctx context.Context, in *emptypb.Empty, opts ...http.CallOption) (*GetApiAllRes, error)
- func (c *AdminHTTPClientImpl) GetApiList(ctx context.Context, in *GetApiListReq, opts ...http.CallOption) (*GetApiListRes, error)
- func (c *AdminHTTPClientImpl) GetApiLogList(ctx context.Context, in *GetApiLogListReq, opts ...http.CallOption) (*GetApiLogListRes, error)
- func (c *AdminHTTPClientImpl) GetMenuAll(ctx context.Context, in *emptypb.Empty, opts ...http.CallOption) (*GetMenuTreeRes, error)
- func (c *AdminHTTPClientImpl) GetMenuTree(ctx context.Context, in *emptypb.Empty, opts ...http.CallOption) (*GetMenuTreeRes, error)
- func (c *AdminHTTPClientImpl) GetOssStsToken(ctx context.Context, in *emptypb.Empty, opts ...http.CallOption) (*OssStsTokenResponse, error)
- func (c *AdminHTTPClientImpl) GetPolicies(ctx context.Context, in *RoleNameReq, opts ...http.CallOption) (*GetPoliciesRes, error)
- func (c *AdminHTTPClientImpl) GetRoleAll(ctx context.Context, in *emptypb.Empty, opts ...http.CallOption) (*GetRoleAllRes, error)
- func (c *AdminHTTPClientImpl) GetRoleMenu(ctx context.Context, in *RoleNameReq, opts ...http.CallOption) (*GetMenuTreeRes, error)
- func (c *AdminHTTPClientImpl) GetRoleMenuBtn(ctx context.Context, in *GetRoleMenuBtnReq, opts ...http.CallOption) (*GetRoleMenuBtnRes, error)
- func (c *AdminHTTPClientImpl) GetRoleMenuTree(ctx context.Context, in *RoleNameReq, opts ...http.CallOption) (*GetMenuTreeRes, error)
- func (c *AdminHTTPClientImpl) GetRolesForUser(ctx context.Context, in *GetRolesForUserReq, opts ...http.CallOption) (*GetRolesForUserRes, error)
- func (c *AdminHTTPClientImpl) GetUsersForRole(ctx context.Context, in *RoleNameReq, opts ...http.CallOption) (*GetUsersForRoleRes, error)
- func (c *AdminHTTPClientImpl) Login(ctx context.Context, in *LoginReq, opts ...http.CallOption) (*LoginRes, error)
- func (c *AdminHTTPClientImpl) LoginOut(ctx context.Context, in *emptypb.Empty, opts ...http.CallOption) (*emptypb.Empty, error)
- func (c *AdminHTTPClientImpl) RecoverAdministrator(ctx context.Context, in *IdReq, opts ...http.CallOption) (*emptypb.Empty, error)
- func (c *AdminHTTPClientImpl) SetRoleMenu(ctx context.Context, in *SetRoleMenuReq, opts ...http.CallOption) (*emptypb.Empty, error)
- func (c *AdminHTTPClientImpl) SetRoleMenuBtn(ctx context.Context, in *SetRoleMenuBtnReq, opts ...http.CallOption) (*emptypb.Empty, error)
- func (c *AdminHTTPClientImpl) SetRolesForUser(ctx context.Context, in *SetRolesForUserReq, opts ...http.CallOption) (*emptypb.Empty, error)
- func (c *AdminHTTPClientImpl) UpdateAdministrator(ctx context.Context, in *UpdateBffAdminReq, opts ...http.CallOption) (*emptypb.Empty, error)
- func (c *AdminHTTPClientImpl) UpdateApi(ctx context.Context, in *UpdateApiReq, opts ...http.CallOption) (*emptypb.Empty, error)
- func (c *AdminHTTPClientImpl) UpdateMenu(ctx context.Context, in *UpdateMenuReq, opts ...http.CallOption) (*emptypb.Empty, error)
- func (c *AdminHTTPClientImpl) UpdatePolicies(ctx context.Context, in *UpdatePoliciesReq, opts ...http.CallOption) (*emptypb.Empty, error)
- func (c *AdminHTTPClientImpl) UpdateRole(ctx context.Context, in *UpdateRoleReq, opts ...http.CallOption) (*emptypb.Empty, error)
- type AdminHTTPServer
- type AdminServer
- type Api
- func (*Api) Descriptor() ([]byte, []int)deprecated
- func (x *Api) GetCreatedAt() string
- func (x *Api) GetGroup() string
- func (x *Api) GetId() int64
- func (x *Api) GetMethod() string
- func (x *Api) GetName() string
- func (x *Api) GetPath() string
- func (x *Api) GetUpdatedAt() string
- func (*Api) ProtoMessage()
- func (x *Api) ProtoReflect() protoreflect.Message
- func (x *Api) Reset()
- func (x *Api) String() string
- type ApiLog
- func (*ApiLog) Descriptor() ([]byte, []int)deprecated
- func (x *ApiLog) GetCode() string
- func (x *ApiLog) GetComponent() string
- func (x *ApiLog) GetCreatedAt() string
- func (x *ApiLog) GetDomain() string
- func (x *ApiLog) GetId() int64
- func (x *ApiLog) GetIp() string
- func (x *ApiLog) GetLatency() string
- func (x *ApiLog) GetMethod() string
- func (x *ApiLog) GetName() string
- func (x *ApiLog) GetOperation() string
- func (x *ApiLog) GetPath() string
- func (x *ApiLog) GetReason() string
- func (x *ApiLog) GetRequest() string
- func (x *ApiLog) GetRole() string
- func (x *ApiLog) GetTraceId() string
- func (x *ApiLog) GetUserId() string
- func (x *ApiLog) GetUsername() string
- func (*ApiLog) ProtoMessage()
- func (x *ApiLog) ProtoReflect() protoreflect.Message
- func (x *ApiLog) Reset()
- func (x *ApiLog) String() string
- type BffAdmin
- func (*BffAdmin) Descriptor() ([]byte, []int)deprecated
- func (x *BffAdmin) GetAvatar() string
- func (x *BffAdmin) GetCreatedAt() string
- func (x *BffAdmin) GetDeletedAt() string
- func (x *BffAdmin) GetId() int64
- func (x *BffAdmin) GetLastLoginIp() string
- func (x *BffAdmin) GetLastLoginTime() string
- func (x *BffAdmin) GetMobile() string
- func (x *BffAdmin) GetNickname() string
- func (x *BffAdmin) GetRole() string
- func (x *BffAdmin) GetStatus() bool
- func (x *BffAdmin) GetUpdatedAt() string
- func (x *BffAdmin) GetUsername() string
- func (*BffAdmin) ProtoMessage()
- func (x *BffAdmin) ProtoReflect() protoreflect.Message
- func (x *BffAdmin) Reset()
- func (x *BffAdmin) String() string
- type BffErrorReason
- func (BffErrorReason) Descriptor() protoreflect.EnumDescriptor
- func (x BffErrorReason) Enum() *BffErrorReason
- func (BffErrorReason) EnumDescriptor() ([]byte, []int)deprecated
- func (x BffErrorReason) Number() protoreflect.EnumNumber
- func (x BffErrorReason) String() string
- func (BffErrorReason) Type() protoreflect.EnumType
- type CreateApiReq
- func (*CreateApiReq) Descriptor() ([]byte, []int)deprecated
- func (x *CreateApiReq) GetGroup() string
- func (x *CreateApiReq) GetMethod() string
- func (x *CreateApiReq) GetName() string
- func (x *CreateApiReq) GetPath() string
- func (*CreateApiReq) ProtoMessage()
- func (x *CreateApiReq) ProtoReflect() protoreflect.Message
- func (x *CreateApiReq) Reset()
- func (x *CreateApiReq) String() string
- type CreateBffAdminReq
- func (*CreateBffAdminReq) Descriptor() ([]byte, []int)deprecated
- func (x *CreateBffAdminReq) GetAvatar() string
- func (x *CreateBffAdminReq) GetMobile() string
- func (x *CreateBffAdminReq) GetNickname() string
- func (x *CreateBffAdminReq) GetPassword() string
- func (x *CreateBffAdminReq) GetRole() []string
- func (x *CreateBffAdminReq) GetStatus() bool
- func (x *CreateBffAdminReq) GetUsername() string
- func (*CreateBffAdminReq) ProtoMessage()
- func (x *CreateBffAdminReq) ProtoReflect() protoreflect.Message
- func (x *CreateBffAdminReq) Reset()
- func (x *CreateBffAdminReq) String() string
- type CreateMenuReq
- func (*CreateMenuReq) Descriptor() ([]byte, []int)deprecated
- func (x *CreateMenuReq) GetComponent() string
- func (x *CreateMenuReq) GetHidden() bool
- func (x *CreateMenuReq) GetIcon() string
- func (x *CreateMenuReq) GetMenuBtns() []*MenuBtn
- func (x *CreateMenuReq) GetName() string
- func (x *CreateMenuReq) GetParentId() int64
- func (x *CreateMenuReq) GetParentIds() string
- func (x *CreateMenuReq) GetPath() string
- func (x *CreateMenuReq) GetSort() int64
- func (x *CreateMenuReq) GetTitle() string
- func (*CreateMenuReq) ProtoMessage()
- func (x *CreateMenuReq) ProtoReflect() protoreflect.Message
- func (x *CreateMenuReq) Reset()
- func (x *CreateMenuReq) String() string
- type CreateRoleReq
- type DeleteRoleForUserReq
- func (*DeleteRoleForUserReq) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteRoleForUserReq) GetRole() string
- func (x *DeleteRoleForUserReq) GetUsername() string
- func (*DeleteRoleForUserReq) ProtoMessage()
- func (x *DeleteRoleForUserReq) ProtoReflect() protoreflect.Message
- func (x *DeleteRoleForUserReq) Reset()
- func (x *DeleteRoleForUserReq) String() string
- type DeleteRolesForUserReq
- func (*DeleteRolesForUserReq) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteRolesForUserReq) GetUsername() string
- func (*DeleteRolesForUserReq) ProtoMessage()
- func (x *DeleteRolesForUserReq) ProtoReflect() protoreflect.Message
- func (x *DeleteRolesForUserReq) Reset()
- func (x *DeleteRolesForUserReq) String() string
- type ErrorMessageRes
- type GetApiAllRes
- type GetApiListReq
- func (*GetApiListReq) Descriptor() ([]byte, []int)deprecated
- func (x *GetApiListReq) GetGroup() string
- func (x *GetApiListReq) GetMethod() string
- func (x *GetApiListReq) GetName() string
- func (x *GetApiListReq) GetPage() int64
- func (x *GetApiListReq) GetPageSize() int64
- func (x *GetApiListReq) GetPath() string
- func (*GetApiListReq) ProtoMessage()
- func (x *GetApiListReq) ProtoReflect() protoreflect.Message
- func (x *GetApiListReq) Reset()
- func (x *GetApiListReq) String() string
- type GetApiListRes
- func (*GetApiListRes) Descriptor() ([]byte, []int)deprecated
- func (x *GetApiListRes) GetList() []*Api
- func (x *GetApiListRes) GetTotal() int64
- func (*GetApiListRes) ProtoMessage()
- func (x *GetApiListRes) ProtoReflect() protoreflect.Message
- func (x *GetApiListRes) Reset()
- func (x *GetApiListRes) String() string
- type GetApiLogListReq
- func (*GetApiLogListReq) Descriptor() ([]byte, []int)deprecated
- func (x *GetApiLogListReq) GetIp() string
- func (x *GetApiLogListReq) GetName() string
- func (x *GetApiLogListReq) GetOperation() string
- func (x *GetApiLogListReq) GetPage() int64
- func (x *GetApiLogListReq) GetPageSize() int64
- func (x *GetApiLogListReq) GetRole() string
- func (x *GetApiLogListReq) GetTraceId() string
- func (x *GetApiLogListReq) GetUserId() string
- func (x *GetApiLogListReq) GetUsername() string
- func (*GetApiLogListReq) ProtoMessage()
- func (x *GetApiLogListReq) ProtoReflect() protoreflect.Message
- func (x *GetApiLogListReq) Reset()
- func (x *GetApiLogListReq) String() string
- type GetApiLogListRes
- func (*GetApiLogListRes) Descriptor() ([]byte, []int)deprecated
- func (x *GetApiLogListRes) GetList() []*ApiLog
- func (x *GetApiLogListRes) GetTotal() int64
- func (*GetApiLogListRes) ProtoMessage()
- func (x *GetApiLogListRes) ProtoReflect() protoreflect.Message
- func (x *GetApiLogListRes) Reset()
- func (x *GetApiLogListRes) String() string
- type GetBffAdminListPageRes
- func (*GetBffAdminListPageRes) Descriptor() ([]byte, []int)deprecated
- func (x *GetBffAdminListPageRes) GetList() []*BffAdmin
- func (x *GetBffAdminListPageRes) GetTotal() int64
- func (*GetBffAdminListPageRes) ProtoMessage()
- func (x *GetBffAdminListPageRes) ProtoReflect() protoreflect.Message
- func (x *GetBffAdminListPageRes) Reset()
- func (x *GetBffAdminListPageRes) String() string
- type GetBffAdminListReq
- func (*GetBffAdminListReq) Descriptor() ([]byte, []int)deprecated
- func (x *GetBffAdminListReq) GetCreatedAtEnd() string
- func (x *GetBffAdminListReq) GetCreatedAtStart() string
- func (x *GetBffAdminListReq) GetMobile() string
- func (x *GetBffAdminListReq) GetNickname() string
- func (x *GetBffAdminListReq) GetPage() int64
- func (x *GetBffAdminListReq) GetPageSize() int64
- func (x *GetBffAdminListReq) GetStatus() *wrapperspb.BoolValue
- func (x *GetBffAdminListReq) GetUsername() string
- func (*GetBffAdminListReq) ProtoMessage()
- func (x *GetBffAdminListReq) ProtoReflect() protoreflect.Message
- func (x *GetBffAdminListReq) Reset()
- func (x *GetBffAdminListReq) String() string
- type GetMenuTreeRes
- type GetPoliciesRes
- type GetRoleAllRes
- type GetRoleMenuBtnReq
- func (*GetRoleMenuBtnReq) Descriptor() ([]byte, []int)deprecated
- func (x *GetRoleMenuBtnReq) GetMenuId() int64
- func (x *GetRoleMenuBtnReq) GetRoleId() int64
- func (x *GetRoleMenuBtnReq) GetRoleName() string
- func (*GetRoleMenuBtnReq) ProtoMessage()
- func (x *GetRoleMenuBtnReq) ProtoReflect() protoreflect.Message
- func (x *GetRoleMenuBtnReq) Reset()
- func (x *GetRoleMenuBtnReq) String() string
- type GetRoleMenuBtnRes
- type GetRolesForUserReq
- func (*GetRolesForUserReq) Descriptor() ([]byte, []int)deprecated
- func (x *GetRolesForUserReq) GetUsername() string
- func (*GetRolesForUserReq) ProtoMessage()
- func (x *GetRolesForUserReq) ProtoReflect() protoreflect.Message
- func (x *GetRolesForUserReq) Reset()
- func (x *GetRolesForUserReq) String() string
- type GetRolesForUserRes
- func (*GetRolesForUserRes) Descriptor() ([]byte, []int)deprecated
- func (x *GetRolesForUserRes) GetRoles() []string
- func (*GetRolesForUserRes) ProtoMessage()
- func (x *GetRolesForUserRes) ProtoReflect() protoreflect.Message
- func (x *GetRolesForUserRes) Reset()
- func (x *GetRolesForUserRes) String() string
- type GetUsersForRoleRes
- func (*GetUsersForRoleRes) Descriptor() ([]byte, []int)deprecated
- func (x *GetUsersForRoleRes) GetUsers() []string
- func (*GetUsersForRoleRes) ProtoMessage()
- func (x *GetUsersForRoleRes) ProtoReflect() protoreflect.Message
- func (x *GetUsersForRoleRes) Reset()
- func (x *GetUsersForRoleRes) String() string
- type IdReq
- type LoginReq
- type LoginRes
- type Menu
- func (*Menu) Descriptor() ([]byte, []int)deprecated
- func (x *Menu) GetChildren() []*Menu
- func (x *Menu) GetComponent() string
- func (x *Menu) GetCreatedAt() string
- func (x *Menu) GetHidden() bool
- func (x *Menu) GetIcon() string
- func (x *Menu) GetId() int64
- func (x *Menu) GetMenuBtns() []*MenuBtn
- func (x *Menu) GetName() string
- func (x *Menu) GetParentId() int64
- func (x *Menu) GetParentIds() string
- func (x *Menu) GetPath() string
- func (x *Menu) GetSort() int64
- func (x *Menu) GetTitle() string
- func (x *Menu) GetUpdatedAt() string
- func (*Menu) ProtoMessage()
- func (x *Menu) ProtoReflect() protoreflect.Message
- func (x *Menu) Reset()
- func (x *Menu) String() string
- type MenuBtn
- func (*MenuBtn) Descriptor() ([]byte, []int)deprecated
- func (x *MenuBtn) GetCreatedAt() string
- func (x *MenuBtn) GetDescription() string
- func (x *MenuBtn) GetId() int64
- func (x *MenuBtn) GetIdentifier() string
- func (x *MenuBtn) GetMenuId() int64
- func (x *MenuBtn) GetName() string
- func (x *MenuBtn) GetUpdatedAt() string
- func (*MenuBtn) ProtoMessage()
- func (x *MenuBtn) ProtoReflect() protoreflect.Message
- func (x *MenuBtn) Reset()
- func (x *MenuBtn) String() string
- type OssStsTokenResponse
- func (*OssStsTokenResponse) Descriptor() ([]byte, []int)deprecated
- func (x *OssStsTokenResponse) GetAccessKey() string
- func (x *OssStsTokenResponse) GetAccessSecret() string
- func (x *OssStsTokenResponse) GetBucketName() string
- func (x *OssStsTokenResponse) GetEndPoint() string
- func (x *OssStsTokenResponse) GetExpiration() string
- func (x *OssStsTokenResponse) GetRegion() string
- func (x *OssStsTokenResponse) GetSecurityToken() string
- func (x *OssStsTokenResponse) GetUrl() string
- func (*OssStsTokenResponse) ProtoMessage()
- func (x *OssStsTokenResponse) ProtoReflect() protoreflect.Message
- func (x *OssStsTokenResponse) Reset()
- func (x *OssStsTokenResponse) String() string
- type PolicyRules
- type Role
- func (*Role) Descriptor() ([]byte, []int)deprecated
- func (x *Role) GetCreatedAt() string
- func (x *Role) GetId() int64
- func (x *Role) GetName() string
- func (x *Role) GetUpdatedAt() string
- func (*Role) ProtoMessage()
- func (x *Role) ProtoReflect() protoreflect.Message
- func (x *Role) Reset()
- func (x *Role) String() string
- type RoleNameReq
- type SetRoleMenuBtnReq
- func (*SetRoleMenuBtnReq) Descriptor() ([]byte, []int)deprecated
- func (x *SetRoleMenuBtnReq) GetMenuBtnIds() []int64
- func (x *SetRoleMenuBtnReq) GetMenuId() int64
- func (x *SetRoleMenuBtnReq) GetRoleId() int64
- func (*SetRoleMenuBtnReq) ProtoMessage()
- func (x *SetRoleMenuBtnReq) ProtoReflect() protoreflect.Message
- func (x *SetRoleMenuBtnReq) Reset()
- func (x *SetRoleMenuBtnReq) String() string
- type SetRoleMenuReq
- func (*SetRoleMenuReq) Descriptor() ([]byte, []int)deprecated
- func (x *SetRoleMenuReq) GetMenuIds() []int64
- func (x *SetRoleMenuReq) GetRoleId() int64
- func (*SetRoleMenuReq) ProtoMessage()
- func (x *SetRoleMenuReq) ProtoReflect() protoreflect.Message
- func (x *SetRoleMenuReq) Reset()
- func (x *SetRoleMenuReq) String() string
- type SetRolesForUserReq
- func (*SetRolesForUserReq) Descriptor() ([]byte, []int)deprecated
- func (x *SetRolesForUserReq) GetRoles() []string
- func (x *SetRolesForUserReq) GetUsername() string
- func (*SetRolesForUserReq) ProtoMessage()
- func (x *SetRolesForUserReq) ProtoReflect() protoreflect.Message
- func (x *SetRolesForUserReq) Reset()
- func (x *SetRolesForUserReq) String() string
- type UnimplementedAdminServer
- func (UnimplementedAdminServer) ApproveAdministrator(context.Context, *IdReq) (*emptypb.Empty, error)
- func (UnimplementedAdminServer) CreateAdministrator(context.Context, *CreateBffAdminReq) (*BffAdmin, error)
- func (UnimplementedAdminServer) CreateApi(context.Context, *CreateApiReq) (*Api, error)
- func (UnimplementedAdminServer) CreateMenu(context.Context, *CreateMenuReq) (*Menu, error)
- func (UnimplementedAdminServer) CreateRole(context.Context, *CreateRoleReq) (*Role, error)
- func (UnimplementedAdminServer) DeleteAdministrator(context.Context, *IdReq) (*emptypb.Empty, error)
- func (UnimplementedAdminServer) DeleteApi(context.Context, *IdReq) (*emptypb.Empty, error)
- func (UnimplementedAdminServer) DeleteMenu(context.Context, *IdReq) (*emptypb.Empty, error)
- func (UnimplementedAdminServer) DeleteRole(context.Context, *IdReq) (*emptypb.Empty, error)
- func (UnimplementedAdminServer) DeleteRoleForUser(context.Context, *DeleteRoleForUserReq) (*emptypb.Empty, error)
- func (UnimplementedAdminServer) DeleteRolesForUser(context.Context, *DeleteRolesForUserReq) (*emptypb.Empty, error)
- func (UnimplementedAdminServer) ForbidAdministrator(context.Context, *IdReq) (*emptypb.Empty, error)
- func (UnimplementedAdminServer) GetAdministrator(context.Context, *IdReq) (*BffAdmin, error)
- func (UnimplementedAdminServer) GetAdministratorInfo(context.Context, *emptypb.Empty) (*BffAdmin, error)
- func (UnimplementedAdminServer) GetAdministratorList(context.Context, *GetBffAdminListReq) (*GetBffAdminListPageRes, error)
- func (UnimplementedAdminServer) GetApiAll(context.Context, *emptypb.Empty) (*GetApiAllRes, error)
- func (UnimplementedAdminServer) GetApiList(context.Context, *GetApiListReq) (*GetApiListRes, error)
- func (UnimplementedAdminServer) GetApiLogList(context.Context, *GetApiLogListReq) (*GetApiLogListRes, error)
- func (UnimplementedAdminServer) GetMenuAll(context.Context, *emptypb.Empty) (*GetMenuTreeRes, error)
- func (UnimplementedAdminServer) GetMenuTree(context.Context, *emptypb.Empty) (*GetMenuTreeRes, error)
- func (UnimplementedAdminServer) GetOssStsToken(context.Context, *emptypb.Empty) (*OssStsTokenResponse, error)
- func (UnimplementedAdminServer) GetPolicies(context.Context, *RoleNameReq) (*GetPoliciesRes, error)
- func (UnimplementedAdminServer) GetRoleAll(context.Context, *emptypb.Empty) (*GetRoleAllRes, error)
- func (UnimplementedAdminServer) GetRoleMenu(context.Context, *RoleNameReq) (*GetMenuTreeRes, error)
- func (UnimplementedAdminServer) GetRoleMenuBtn(context.Context, *GetRoleMenuBtnReq) (*GetRoleMenuBtnRes, error)
- func (UnimplementedAdminServer) GetRoleMenuTree(context.Context, *RoleNameReq) (*GetMenuTreeRes, error)
- func (UnimplementedAdminServer) GetRolesForUser(context.Context, *GetRolesForUserReq) (*GetRolesForUserRes, error)
- func (UnimplementedAdminServer) GetUsersForRole(context.Context, *RoleNameReq) (*GetUsersForRoleRes, error)
- func (UnimplementedAdminServer) Login(context.Context, *LoginReq) (*LoginRes, error)
- func (UnimplementedAdminServer) LoginOut(context.Context, *emptypb.Empty) (*emptypb.Empty, error)
- func (UnimplementedAdminServer) RecoverAdministrator(context.Context, *IdReq) (*emptypb.Empty, error)
- func (UnimplementedAdminServer) SetRoleMenu(context.Context, *SetRoleMenuReq) (*emptypb.Empty, error)
- func (UnimplementedAdminServer) SetRoleMenuBtn(context.Context, *SetRoleMenuBtnReq) (*emptypb.Empty, error)
- func (UnimplementedAdminServer) SetRolesForUser(context.Context, *SetRolesForUserReq) (*emptypb.Empty, error)
- func (UnimplementedAdminServer) UpdateAdministrator(context.Context, *UpdateBffAdminReq) (*emptypb.Empty, error)
- func (UnimplementedAdminServer) UpdateApi(context.Context, *UpdateApiReq) (*emptypb.Empty, error)
- func (UnimplementedAdminServer) UpdateMenu(context.Context, *UpdateMenuReq) (*emptypb.Empty, error)
- func (UnimplementedAdminServer) UpdatePolicies(context.Context, *UpdatePoliciesReq) (*emptypb.Empty, error)
- func (UnimplementedAdminServer) UpdateRole(context.Context, *UpdateRoleReq) (*emptypb.Empty, error)
- type UnsafeAdminServer
- type UpdateApiReq
- func (*UpdateApiReq) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateApiReq) GetGroup() string
- func (x *UpdateApiReq) GetId() int64
- func (x *UpdateApiReq) GetMethod() string
- func (x *UpdateApiReq) GetName() string
- func (x *UpdateApiReq) GetPath() string
- func (*UpdateApiReq) ProtoMessage()
- func (x *UpdateApiReq) ProtoReflect() protoreflect.Message
- func (x *UpdateApiReq) Reset()
- func (x *UpdateApiReq) String() string
- type UpdateBffAdminReq
- func (*UpdateBffAdminReq) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateBffAdminReq) GetAvatar() string
- func (x *UpdateBffAdminReq) GetId() int64
- func (x *UpdateBffAdminReq) GetMobile() string
- func (x *UpdateBffAdminReq) GetNickname() string
- func (x *UpdateBffAdminReq) GetPassword() string
- func (x *UpdateBffAdminReq) GetRole() []string
- func (x *UpdateBffAdminReq) GetStatus() bool
- func (x *UpdateBffAdminReq) GetUsername() string
- func (*UpdateBffAdminReq) ProtoMessage()
- func (x *UpdateBffAdminReq) ProtoReflect() protoreflect.Message
- func (x *UpdateBffAdminReq) Reset()
- func (x *UpdateBffAdminReq) String() string
- type UpdateMenuReq
- func (*UpdateMenuReq) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateMenuReq) GetComponent() string
- func (x *UpdateMenuReq) GetHidden() bool
- func (x *UpdateMenuReq) GetIcon() string
- func (x *UpdateMenuReq) GetId() int64
- func (x *UpdateMenuReq) GetMenuBtns() []*MenuBtn
- func (x *UpdateMenuReq) GetName() string
- func (x *UpdateMenuReq) GetParentId() int64
- func (x *UpdateMenuReq) GetParentIds() string
- func (x *UpdateMenuReq) GetPath() string
- func (x *UpdateMenuReq) GetSort() int64
- func (x *UpdateMenuReq) GetTitle() string
- func (*UpdateMenuReq) ProtoMessage()
- func (x *UpdateMenuReq) ProtoReflect() protoreflect.Message
- func (x *UpdateMenuReq) Reset()
- func (x *UpdateMenuReq) String() string
- type UpdatePoliciesReq
- func (*UpdatePoliciesReq) Descriptor() ([]byte, []int)deprecated
- func (x *UpdatePoliciesReq) GetPolicyRules() []*PolicyRules
- func (x *UpdatePoliciesReq) GetRole() string
- func (*UpdatePoliciesReq) ProtoMessage()
- func (x *UpdatePoliciesReq) ProtoReflect() protoreflect.Message
- func (x *UpdatePoliciesReq) Reset()
- func (x *UpdatePoliciesReq) String() string
- type UpdateRoleReq
- func (*UpdateRoleReq) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateRoleReq) GetId() int64
- func (x *UpdateRoleReq) GetName() string
- func (*UpdateRoleReq) ProtoMessage()
- func (x *UpdateRoleReq) ProtoReflect() protoreflect.Message
- func (x *UpdateRoleReq) Reset()
- func (x *UpdateRoleReq) String() string
- type UploadFileRequest
- func (*UploadFileRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UploadFileRequest) GetContent() []byte
- func (x *UploadFileRequest) GetFileName() string
- func (x *UploadFileRequest) GetFileType() string
- func (*UploadFileRequest) ProtoMessage()
- func (x *UploadFileRequest) ProtoReflect() protoreflect.Message
- func (x *UploadFileRequest) Reset()
- func (x *UploadFileRequest) String() string
- type UploadFileResponse
- type Wallet
- func (*Wallet) Descriptor() ([]byte, []int)deprecated
- func (x *Wallet) GetBalance() float32
- func (x *Wallet) GetCreatedAt() string
- func (x *Wallet) GetDeletedAt() string
- func (x *Wallet) GetFrozenAmount() float32
- func (x *Wallet) GetId() int64
- func (x *Wallet) GetStatus() bool
- func (x *Wallet) GetUpdatedAt() string
- func (x *Wallet) GetUserId() int64
- func (*Wallet) ProtoMessage()
- func (x *Wallet) ProtoReflect() protoreflect.Message
- func (x *Wallet) Reset()
- func (x *Wallet) String() string
Constants ¶
const ( Admin_Login_FullMethodName = "/admin.v1.Admin/Login" Admin_LoginOut_FullMethodName = "/admin.v1.Admin/LoginOut" Admin_GetAdministratorList_FullMethodName = "/admin.v1.Admin/GetAdministratorList" Admin_GetAdministrator_FullMethodName = "/admin.v1.Admin/GetAdministrator" Admin_GetAdministratorInfo_FullMethodName = "/admin.v1.Admin/GetAdministratorInfo" Admin_CreateAdministrator_FullMethodName = "/admin.v1.Admin/CreateAdministrator" Admin_UpdateAdministrator_FullMethodName = "/admin.v1.Admin/UpdateAdministrator" Admin_DeleteAdministrator_FullMethodName = "/admin.v1.Admin/DeleteAdministrator" Admin_RecoverAdministrator_FullMethodName = "/admin.v1.Admin/RecoverAdministrator" Admin_ForbidAdministrator_FullMethodName = "/admin.v1.Admin/forbidAdministrator" Admin_ApproveAdministrator_FullMethodName = "/admin.v1.Admin/approveAdministrator" Admin_GetRoleAll_FullMethodName = "/admin.v1.Admin/GetRoleAll" Admin_CreateRole_FullMethodName = "/admin.v1.Admin/CreateRole" Admin_UpdateRole_FullMethodName = "/admin.v1.Admin/UpdateRole" Admin_DeleteRole_FullMethodName = "/admin.v1.Admin/DeleteRole" Admin_SetRolesForUser_FullMethodName = "/admin.v1.Admin/SetRolesForUser" Admin_GetRolesForUser_FullMethodName = "/admin.v1.Admin/GetRolesForUser" Admin_GetUsersForRole_FullMethodName = "/admin.v1.Admin/GetUsersForRole" Admin_DeleteRoleForUser_FullMethodName = "/admin.v1.Admin/DeleteRoleForUser" Admin_DeleteRolesForUser_FullMethodName = "/admin.v1.Admin/DeleteRolesForUser" Admin_GetPolicies_FullMethodName = "/admin.v1.Admin/GetPolicies" Admin_UpdatePolicies_FullMethodName = "/admin.v1.Admin/UpdatePolicies" Admin_GetApiAll_FullMethodName = "/admin.v1.Admin/GetApiAll" Admin_GetApiList_FullMethodName = "/admin.v1.Admin/GetApiList" Admin_CreateApi_FullMethodName = "/admin.v1.Admin/CreateApi" Admin_UpdateApi_FullMethodName = "/admin.v1.Admin/UpdateApi" Admin_DeleteApi_FullMethodName = "/admin.v1.Admin/DeleteApi" Admin_GetMenuAll_FullMethodName = "/admin.v1.Admin/GetMenuAll" Admin_GetMenuTree_FullMethodName = "/admin.v1.Admin/GetMenuTree" Admin_CreateMenu_FullMethodName = "/admin.v1.Admin/CreateMenu" Admin_UpdateMenu_FullMethodName = "/admin.v1.Admin/UpdateMenu" Admin_DeleteMenu_FullMethodName = "/admin.v1.Admin/DeleteMenu" Admin_GetRoleMenuTree_FullMethodName = "/admin.v1.Admin/GetRoleMenuTree" Admin_GetRoleMenu_FullMethodName = "/admin.v1.Admin/GetRoleMenu" Admin_SetRoleMenu_FullMethodName = "/admin.v1.Admin/SetRoleMenu" Admin_GetRoleMenuBtn_FullMethodName = "/admin.v1.Admin/GetRoleMenuBtn" Admin_SetRoleMenuBtn_FullMethodName = "/admin.v1.Admin/SetRoleMenuBtn" Admin_GetApiLogList_FullMethodName = "/admin.v1.Admin/GetApiLogList" Admin_GetOssStsToken_FullMethodName = "/admin.v1.Admin/GetOssStsToken" )
const OperationAdminCreateAdministrator = "/admin.v1.Admin/CreateAdministrator"
const OperationAdminCreateApi = "/admin.v1.Admin/CreateApi"
const OperationAdminCreateMenu = "/admin.v1.Admin/CreateMenu"
const OperationAdminCreateRole = "/admin.v1.Admin/CreateRole"
const OperationAdminDeleteAdministrator = "/admin.v1.Admin/DeleteAdministrator"
const OperationAdminDeleteApi = "/admin.v1.Admin/DeleteApi"
const OperationAdminDeleteMenu = "/admin.v1.Admin/DeleteMenu"
const OperationAdminDeleteRole = "/admin.v1.Admin/DeleteRole"
const OperationAdminDeleteRoleForUser = "/admin.v1.Admin/DeleteRoleForUser"
const OperationAdminDeleteRolesForUser = "/admin.v1.Admin/DeleteRolesForUser"
const OperationAdminGetAdministrator = "/admin.v1.Admin/GetAdministrator"
const OperationAdminGetAdministratorInfo = "/admin.v1.Admin/GetAdministratorInfo"
const OperationAdminGetAdministratorList = "/admin.v1.Admin/GetAdministratorList"
const OperationAdminGetApiAll = "/admin.v1.Admin/GetApiAll"
const OperationAdminGetApiList = "/admin.v1.Admin/GetApiList"
const OperationAdminGetApiLogList = "/admin.v1.Admin/GetApiLogList"
const OperationAdminGetMenuAll = "/admin.v1.Admin/GetMenuAll"
const OperationAdminGetMenuTree = "/admin.v1.Admin/GetMenuTree"
const OperationAdminGetOssStsToken = "/admin.v1.Admin/GetOssStsToken"
const OperationAdminGetPolicies = "/admin.v1.Admin/GetPolicies"
const OperationAdminGetRoleAll = "/admin.v1.Admin/GetRoleAll"
const OperationAdminGetRoleMenu = "/admin.v1.Admin/GetRoleMenu"
const OperationAdminGetRoleMenuBtn = "/admin.v1.Admin/GetRoleMenuBtn"
const OperationAdminGetRoleMenuTree = "/admin.v1.Admin/GetRoleMenuTree"
const OperationAdminGetRolesForUser = "/admin.v1.Admin/GetRolesForUser"
const OperationAdminGetUsersForRole = "/admin.v1.Admin/GetUsersForRole"
const OperationAdminLogin = "/admin.v1.Admin/Login"
const OperationAdminLoginOut = "/admin.v1.Admin/LoginOut"
const OperationAdminRecoverAdministrator = "/admin.v1.Admin/RecoverAdministrator"
const OperationAdminSetRoleMenu = "/admin.v1.Admin/SetRoleMenu"
const OperationAdminSetRoleMenuBtn = "/admin.v1.Admin/SetRoleMenuBtn"
const OperationAdminSetRolesForUser = "/admin.v1.Admin/SetRolesForUser"
const OperationAdminUpdateAdministrator = "/admin.v1.Admin/UpdateAdministrator"
const OperationAdminUpdateApi = "/admin.v1.Admin/UpdateApi"
const OperationAdminUpdateMenu = "/admin.v1.Admin/UpdateMenu"
const OperationAdminUpdatePolicies = "/admin.v1.Admin/UpdatePolicies"
const OperationAdminUpdateRole = "/admin.v1.Admin/UpdateRole"
const OperationAdminapproveAdministrator = "/admin.v1.Admin/approveAdministrator"
const OperationAdminforbidAdministrator = "/admin.v1.Admin/forbidAdministrator"
Variables ¶
var ( BffErrorReason_name = map[int32]string{ 0: "RECORD_NOT_FOUND", 1: "RECORD_ALREADY_EXISTS", 2: "BAD_REQUEST", 3: "SYSTEM_ERROR", } BffErrorReason_value = map[string]int32{ "RECORD_NOT_FOUND": 0, "RECORD_ALREADY_EXISTS": 1, "BAD_REQUEST": 2, "SYSTEM_ERROR": 3, } )
Enum value maps for BffErrorReason.
var Admin_ServiceDesc = grpc.ServiceDesc{ ServiceName: "admin.v1.Admin", HandlerType: (*AdminServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Login", Handler: _Admin_Login_Handler, }, { MethodName: "LoginOut", Handler: _Admin_LoginOut_Handler, }, { MethodName: "GetAdministratorList", Handler: _Admin_GetAdministratorList_Handler, }, { MethodName: "GetAdministrator", Handler: _Admin_GetAdministrator_Handler, }, { MethodName: "GetAdministratorInfo", Handler: _Admin_GetAdministratorInfo_Handler, }, { MethodName: "CreateAdministrator", Handler: _Admin_CreateAdministrator_Handler, }, { MethodName: "UpdateAdministrator", Handler: _Admin_UpdateAdministrator_Handler, }, { MethodName: "DeleteAdministrator", Handler: _Admin_DeleteAdministrator_Handler, }, { MethodName: "RecoverAdministrator", Handler: _Admin_RecoverAdministrator_Handler, }, { MethodName: "forbidAdministrator", Handler: _Admin_ForbidAdministrator_Handler, }, { MethodName: "approveAdministrator", Handler: _Admin_ApproveAdministrator_Handler, }, { MethodName: "GetRoleAll", Handler: _Admin_GetRoleAll_Handler, }, { MethodName: "CreateRole", Handler: _Admin_CreateRole_Handler, }, { MethodName: "UpdateRole", Handler: _Admin_UpdateRole_Handler, }, { MethodName: "DeleteRole", Handler: _Admin_DeleteRole_Handler, }, { MethodName: "SetRolesForUser", Handler: _Admin_SetRolesForUser_Handler, }, { MethodName: "GetRolesForUser", Handler: _Admin_GetRolesForUser_Handler, }, { MethodName: "GetUsersForRole", Handler: _Admin_GetUsersForRole_Handler, }, { MethodName: "DeleteRoleForUser", Handler: _Admin_DeleteRoleForUser_Handler, }, { MethodName: "DeleteRolesForUser", Handler: _Admin_DeleteRolesForUser_Handler, }, { MethodName: "GetPolicies", Handler: _Admin_GetPolicies_Handler, }, { MethodName: "UpdatePolicies", Handler: _Admin_UpdatePolicies_Handler, }, { MethodName: "GetApiAll", Handler: _Admin_GetApiAll_Handler, }, { MethodName: "GetApiList", Handler: _Admin_GetApiList_Handler, }, { MethodName: "CreateApi", Handler: _Admin_CreateApi_Handler, }, { MethodName: "UpdateApi", Handler: _Admin_UpdateApi_Handler, }, { MethodName: "DeleteApi", Handler: _Admin_DeleteApi_Handler, }, { MethodName: "GetMenuAll", Handler: _Admin_GetMenuAll_Handler, }, { MethodName: "GetMenuTree", Handler: _Admin_GetMenuTree_Handler, }, { MethodName: "CreateMenu", Handler: _Admin_CreateMenu_Handler, }, { MethodName: "UpdateMenu", Handler: _Admin_UpdateMenu_Handler, }, { MethodName: "DeleteMenu", Handler: _Admin_DeleteMenu_Handler, }, { MethodName: "GetRoleMenuTree", Handler: _Admin_GetRoleMenuTree_Handler, }, { MethodName: "GetRoleMenu", Handler: _Admin_GetRoleMenu_Handler, }, { MethodName: "SetRoleMenu", Handler: _Admin_SetRoleMenu_Handler, }, { MethodName: "GetRoleMenuBtn", Handler: _Admin_GetRoleMenuBtn_Handler, }, { MethodName: "SetRoleMenuBtn", Handler: _Admin_SetRoleMenuBtn_Handler, }, { MethodName: "GetApiLogList", Handler: _Admin_GetApiLogList_Handler, }, { MethodName: "GetOssStsToken", Handler: _Admin_GetOssStsToken_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "bff-admin/v1/admin.proto", }
Admin_ServiceDesc is the grpc.ServiceDesc for Admin service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_bff_admin_v1_admin_proto protoreflect.FileDescriptor
var File_bff_admin_v1_bff_error_reason_proto protoreflect.FileDescriptor
Functions ¶
func ErrorBadRequest ¶ added in v0.0.10
func ErrorRecordAlreadyExists ¶ added in v0.0.10
func ErrorRecordNotFound ¶ added in v0.0.10
func ErrorSystemError ¶ added in v0.0.10
func IsBadRequest ¶ added in v0.0.10
func IsRecordAlreadyExists ¶ added in v0.0.10
func IsRecordNotFound ¶ added in v0.0.10
func IsSystemError ¶ added in v0.0.10
func RegisterAdminHTTPServer ¶
func RegisterAdminHTTPServer(s *http.Server, srv AdminHTTPServer)
func RegisterAdminServer ¶
func RegisterAdminServer(s grpc.ServiceRegistrar, srv AdminServer)
Types ¶
type AdminClient ¶
type AdminClient interface { // -------------------------- 管理员服务 ----------------------------------------// // 管理员登陆 Login(ctx context.Context, in *LoginReq, opts ...grpc.CallOption) (*LoginRes, error) // 管理员退出 LoginOut(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*emptypb.Empty, error) // 管理员列表 GetAdministratorList(ctx context.Context, in *GetBffAdminListReq, opts ...grpc.CallOption) (*GetBffAdminListPageRes, error) // 管理员详情 GetAdministrator(ctx context.Context, in *IdReq, opts ...grpc.CallOption) (*BffAdmin, error) // 获取当前请求管理员信息 GetAdministratorInfo(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*BffAdmin, error) // 管理员创建 CreateAdministrator(ctx context.Context, in *CreateBffAdminReq, opts ...grpc.CallOption) (*BffAdmin, error) // 管理员更新 UpdateAdministrator(ctx context.Context, in *UpdateBffAdminReq, opts ...grpc.CallOption) (*emptypb.Empty, error) // 管理员删除 DeleteAdministrator(ctx context.Context, in *IdReq, opts ...grpc.CallOption) (*emptypb.Empty, error) // 管理员恢复 RecoverAdministrator(ctx context.Context, in *IdReq, opts ...grpc.CallOption) (*emptypb.Empty, error) // 管理员禁用 ForbidAdministrator(ctx context.Context, in *IdReq, opts ...grpc.CallOption) (*emptypb.Empty, error) // 管理员解禁 ApproveAdministrator(ctx context.Context, in *IdReq, opts ...grpc.CallOption) (*emptypb.Empty, error) // -------------------------- 权限服务 ----------------------------------------// // 权限 —— 角色列表 GetRoleAll(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*GetRoleAllRes, error) // 权限 —— 角色创建 CreateRole(ctx context.Context, in *CreateRoleReq, opts ...grpc.CallOption) (*Role, error) // 权限 —— 角色更新 UpdateRole(ctx context.Context, in *UpdateRoleReq, opts ...grpc.CallOption) (*emptypb.Empty, error) // 权限 —— 角色删除 DeleteRole(ctx context.Context, in *IdReq, opts ...grpc.CallOption) (*emptypb.Empty, error) // 权限 —— 设置用户角色关系 SetRolesForUser(ctx context.Context, in *SetRolesForUserReq, opts ...grpc.CallOption) (*emptypb.Empty, error) // 权限 —— 获取用户角色列表 GetRolesForUser(ctx context.Context, in *GetRolesForUserReq, opts ...grpc.CallOption) (*GetRolesForUserRes, error) // 权限 —— 获取角色用户列表 GetUsersForRole(ctx context.Context, in *RoleNameReq, opts ...grpc.CallOption) (*GetUsersForRoleRes, error) // 权限 —— 删除用户某个角色 DeleteRoleForUser(ctx context.Context, in *DeleteRoleForUserReq, opts ...grpc.CallOption) (*emptypb.Empty, error) // 权限 —— 删除用户所有角色 DeleteRolesForUser(ctx context.Context, in *DeleteRolesForUserReq, opts ...grpc.CallOption) (*emptypb.Empty, error) // 策略授权规则 - 列表 GetPolicies(ctx context.Context, in *RoleNameReq, opts ...grpc.CallOption) (*GetPoliciesRes, error) // 权限 —— 策略授权规则 - 更新 UpdatePolicies(ctx context.Context, in *UpdatePoliciesReq, opts ...grpc.CallOption) (*emptypb.Empty, error) // 权限 —— 所有Api列表 GetApiAll(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*GetApiAllRes, error) // 权限 —— Api列表 GetApiList(ctx context.Context, in *GetApiListReq, opts ...grpc.CallOption) (*GetApiListRes, error) // 权限 —— Api创建 CreateApi(ctx context.Context, in *CreateApiReq, opts ...grpc.CallOption) (*Api, error) // 权限 —— Api更新 UpdateApi(ctx context.Context, in *UpdateApiReq, opts ...grpc.CallOption) (*emptypb.Empty, error) // 权限 —— Api删除 DeleteApi(ctx context.Context, in *IdReq, opts ...grpc.CallOption) (*emptypb.Empty, error) // 权限 —— 所有Menu列表 GetMenuAll(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*GetMenuTreeRes, error) // 权限 —— Menu列表 GetMenuTree(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*GetMenuTreeRes, error) // 权限 —— Menu创建 CreateMenu(ctx context.Context, in *CreateMenuReq, opts ...grpc.CallOption) (*Menu, error) // 权限 —— Menu更新 UpdateMenu(ctx context.Context, in *UpdateMenuReq, opts ...grpc.CallOption) (*emptypb.Empty, error) // 权限 —— Menu删除 DeleteMenu(ctx context.Context, in *IdReq, opts ...grpc.CallOption) (*emptypb.Empty, error) // 权限 —— 角色菜单列表树 GetRoleMenuTree(ctx context.Context, in *RoleNameReq, opts ...grpc.CallOption) (*GetMenuTreeRes, error) // 权限 —— 角色菜单列表 GetRoleMenu(ctx context.Context, in *RoleNameReq, opts ...grpc.CallOption) (*GetMenuTreeRes, error) // 权限 —— 角色菜单更新 SetRoleMenu(ctx context.Context, in *SetRoleMenuReq, opts ...grpc.CallOption) (*emptypb.Empty, error) // 权限 —— 获取角色菜单按钮列表 GetRoleMenuBtn(ctx context.Context, in *GetRoleMenuBtnReq, opts ...grpc.CallOption) (*GetRoleMenuBtnRes, error) // 权限 —— 保存角色菜单按钮列表 SetRoleMenuBtn(ctx context.Context, in *SetRoleMenuBtnReq, opts ...grpc.CallOption) (*emptypb.Empty, error) // -------------------------- 日志服务 ----------------------------------------// // 日志 —— 列表 GetApiLogList(ctx context.Context, in *GetApiLogListReq, opts ...grpc.CallOption) (*GetApiLogListRes, error) // 文件 —— OSS STSTOKEN 获取 GetOssStsToken(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*OssStsTokenResponse, error) }
AdminClient is the client API for Admin service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
管理后台服务
func NewAdminClient ¶
func NewAdminClient(cc grpc.ClientConnInterface) AdminClient
type AdminHTTPClient ¶
type AdminHTTPClient interface { ApproveAdministrator(ctx context.Context, req *IdReq, opts ...http.CallOption) (rsp *emptypb.Empty, err error) CreateAdministrator(ctx context.Context, req *CreateBffAdminReq, opts ...http.CallOption) (rsp *BffAdmin, err error) CreateApi(ctx context.Context, req *CreateApiReq, opts ...http.CallOption) (rsp *Api, err error) CreateMenu(ctx context.Context, req *CreateMenuReq, opts ...http.CallOption) (rsp *Menu, err error) CreateRole(ctx context.Context, req *CreateRoleReq, opts ...http.CallOption) (rsp *Role, err error) DeleteAdministrator(ctx context.Context, req *IdReq, opts ...http.CallOption) (rsp *emptypb.Empty, err error) DeleteApi(ctx context.Context, req *IdReq, opts ...http.CallOption) (rsp *emptypb.Empty, err error) DeleteMenu(ctx context.Context, req *IdReq, opts ...http.CallOption) (rsp *emptypb.Empty, err error) DeleteRole(ctx context.Context, req *IdReq, opts ...http.CallOption) (rsp *emptypb.Empty, err error) DeleteRoleForUser(ctx context.Context, req *DeleteRoleForUserReq, opts ...http.CallOption) (rsp *emptypb.Empty, err error) DeleteRolesForUser(ctx context.Context, req *DeleteRolesForUserReq, opts ...http.CallOption) (rsp *emptypb.Empty, err error) ForbidAdministrator(ctx context.Context, req *IdReq, opts ...http.CallOption) (rsp *emptypb.Empty, err error) GetAdministrator(ctx context.Context, req *IdReq, opts ...http.CallOption) (rsp *BffAdmin, err error) GetAdministratorInfo(ctx context.Context, req *emptypb.Empty, opts ...http.CallOption) (rsp *BffAdmin, err error) GetAdministratorList(ctx context.Context, req *GetBffAdminListReq, opts ...http.CallOption) (rsp *GetBffAdminListPageRes, err error) GetApiAll(ctx context.Context, req *emptypb.Empty, opts ...http.CallOption) (rsp *GetApiAllRes, err error) GetApiList(ctx context.Context, req *GetApiListReq, opts ...http.CallOption) (rsp *GetApiListRes, err error) GetApiLogList(ctx context.Context, req *GetApiLogListReq, opts ...http.CallOption) (rsp *GetApiLogListRes, err error) GetMenuAll(ctx context.Context, req *emptypb.Empty, opts ...http.CallOption) (rsp *GetMenuTreeRes, err error) GetMenuTree(ctx context.Context, req *emptypb.Empty, opts ...http.CallOption) (rsp *GetMenuTreeRes, err error) GetOssStsToken(ctx context.Context, req *emptypb.Empty, opts ...http.CallOption) (rsp *OssStsTokenResponse, err error) GetPolicies(ctx context.Context, req *RoleNameReq, opts ...http.CallOption) (rsp *GetPoliciesRes, err error) GetRoleAll(ctx context.Context, req *emptypb.Empty, opts ...http.CallOption) (rsp *GetRoleAllRes, err error) GetRoleMenu(ctx context.Context, req *RoleNameReq, opts ...http.CallOption) (rsp *GetMenuTreeRes, err error) GetRoleMenuBtn(ctx context.Context, req *GetRoleMenuBtnReq, opts ...http.CallOption) (rsp *GetRoleMenuBtnRes, err error) GetRoleMenuTree(ctx context.Context, req *RoleNameReq, opts ...http.CallOption) (rsp *GetMenuTreeRes, err error) GetRolesForUser(ctx context.Context, req *GetRolesForUserReq, opts ...http.CallOption) (rsp *GetRolesForUserRes, err error) GetUsersForRole(ctx context.Context, req *RoleNameReq, opts ...http.CallOption) (rsp *GetUsersForRoleRes, err error) Login(ctx context.Context, req *LoginReq, opts ...http.CallOption) (rsp *LoginRes, err error) LoginOut(ctx context.Context, req *emptypb.Empty, opts ...http.CallOption) (rsp *emptypb.Empty, err error) RecoverAdministrator(ctx context.Context, req *IdReq, opts ...http.CallOption) (rsp *emptypb.Empty, err error) SetRoleMenu(ctx context.Context, req *SetRoleMenuReq, opts ...http.CallOption) (rsp *emptypb.Empty, err error) SetRoleMenuBtn(ctx context.Context, req *SetRoleMenuBtnReq, opts ...http.CallOption) (rsp *emptypb.Empty, err error) SetRolesForUser(ctx context.Context, req *SetRolesForUserReq, opts ...http.CallOption) (rsp *emptypb.Empty, err error) UpdateAdministrator(ctx context.Context, req *UpdateBffAdminReq, opts ...http.CallOption) (rsp *emptypb.Empty, err error) UpdateApi(ctx context.Context, req *UpdateApiReq, opts ...http.CallOption) (rsp *emptypb.Empty, err error) UpdateMenu(ctx context.Context, req *UpdateMenuReq, opts ...http.CallOption) (rsp *emptypb.Empty, err error) UpdatePolicies(ctx context.Context, req *UpdatePoliciesReq, opts ...http.CallOption) (rsp *emptypb.Empty, err error) UpdateRole(ctx context.Context, req *UpdateRoleReq, opts ...http.CallOption) (rsp *emptypb.Empty, err error) }
func NewAdminHTTPClient ¶
func NewAdminHTTPClient(client *http.Client) AdminHTTPClient
type AdminHTTPClientImpl ¶
type AdminHTTPClientImpl struct {
// contains filtered or unexported fields
}
func (*AdminHTTPClientImpl) ApproveAdministrator ¶
func (c *AdminHTTPClientImpl) ApproveAdministrator(ctx context.Context, in *IdReq, opts ...http.CallOption) (*emptypb.Empty, error)
func (*AdminHTTPClientImpl) CreateAdministrator ¶
func (c *AdminHTTPClientImpl) CreateAdministrator(ctx context.Context, in *CreateBffAdminReq, opts ...http.CallOption) (*BffAdmin, error)
func (*AdminHTTPClientImpl) CreateApi ¶
func (c *AdminHTTPClientImpl) CreateApi(ctx context.Context, in *CreateApiReq, opts ...http.CallOption) (*Api, error)
func (*AdminHTTPClientImpl) CreateMenu ¶
func (c *AdminHTTPClientImpl) CreateMenu(ctx context.Context, in *CreateMenuReq, opts ...http.CallOption) (*Menu, error)
func (*AdminHTTPClientImpl) CreateRole ¶
func (c *AdminHTTPClientImpl) CreateRole(ctx context.Context, in *CreateRoleReq, opts ...http.CallOption) (*Role, error)
func (*AdminHTTPClientImpl) DeleteAdministrator ¶
func (c *AdminHTTPClientImpl) DeleteAdministrator(ctx context.Context, in *IdReq, opts ...http.CallOption) (*emptypb.Empty, error)
func (*AdminHTTPClientImpl) DeleteApi ¶
func (c *AdminHTTPClientImpl) DeleteApi(ctx context.Context, in *IdReq, opts ...http.CallOption) (*emptypb.Empty, error)
func (*AdminHTTPClientImpl) DeleteMenu ¶
func (c *AdminHTTPClientImpl) DeleteMenu(ctx context.Context, in *IdReq, opts ...http.CallOption) (*emptypb.Empty, error)
func (*AdminHTTPClientImpl) DeleteRole ¶
func (c *AdminHTTPClientImpl) DeleteRole(ctx context.Context, in *IdReq, opts ...http.CallOption) (*emptypb.Empty, error)
func (*AdminHTTPClientImpl) DeleteRoleForUser ¶
func (c *AdminHTTPClientImpl) DeleteRoleForUser(ctx context.Context, in *DeleteRoleForUserReq, opts ...http.CallOption) (*emptypb.Empty, error)
func (*AdminHTTPClientImpl) DeleteRolesForUser ¶
func (c *AdminHTTPClientImpl) DeleteRolesForUser(ctx context.Context, in *DeleteRolesForUserReq, opts ...http.CallOption) (*emptypb.Empty, error)
func (*AdminHTTPClientImpl) ForbidAdministrator ¶
func (c *AdminHTTPClientImpl) ForbidAdministrator(ctx context.Context, in *IdReq, opts ...http.CallOption) (*emptypb.Empty, error)
func (*AdminHTTPClientImpl) GetAdministrator ¶
func (c *AdminHTTPClientImpl) GetAdministrator(ctx context.Context, in *IdReq, opts ...http.CallOption) (*BffAdmin, error)
func (*AdminHTTPClientImpl) GetAdministratorInfo ¶
func (c *AdminHTTPClientImpl) GetAdministratorInfo(ctx context.Context, in *emptypb.Empty, opts ...http.CallOption) (*BffAdmin, error)
func (*AdminHTTPClientImpl) GetAdministratorList ¶
func (c *AdminHTTPClientImpl) GetAdministratorList(ctx context.Context, in *GetBffAdminListReq, opts ...http.CallOption) (*GetBffAdminListPageRes, error)
func (*AdminHTTPClientImpl) GetApiAll ¶
func (c *AdminHTTPClientImpl) GetApiAll(ctx context.Context, in *emptypb.Empty, opts ...http.CallOption) (*GetApiAllRes, error)
func (*AdminHTTPClientImpl) GetApiList ¶
func (c *AdminHTTPClientImpl) GetApiList(ctx context.Context, in *GetApiListReq, opts ...http.CallOption) (*GetApiListRes, error)
func (*AdminHTTPClientImpl) GetApiLogList ¶
func (c *AdminHTTPClientImpl) GetApiLogList(ctx context.Context, in *GetApiLogListReq, opts ...http.CallOption) (*GetApiLogListRes, error)
func (*AdminHTTPClientImpl) GetMenuAll ¶
func (c *AdminHTTPClientImpl) GetMenuAll(ctx context.Context, in *emptypb.Empty, opts ...http.CallOption) (*GetMenuTreeRes, error)
func (*AdminHTTPClientImpl) GetMenuTree ¶
func (c *AdminHTTPClientImpl) GetMenuTree(ctx context.Context, in *emptypb.Empty, opts ...http.CallOption) (*GetMenuTreeRes, error)
func (*AdminHTTPClientImpl) GetOssStsToken ¶
func (c *AdminHTTPClientImpl) GetOssStsToken(ctx context.Context, in *emptypb.Empty, opts ...http.CallOption) (*OssStsTokenResponse, error)
func (*AdminHTTPClientImpl) GetPolicies ¶
func (c *AdminHTTPClientImpl) GetPolicies(ctx context.Context, in *RoleNameReq, opts ...http.CallOption) (*GetPoliciesRes, error)
func (*AdminHTTPClientImpl) GetRoleAll ¶
func (c *AdminHTTPClientImpl) GetRoleAll(ctx context.Context, in *emptypb.Empty, opts ...http.CallOption) (*GetRoleAllRes, error)
func (*AdminHTTPClientImpl) GetRoleMenu ¶
func (c *AdminHTTPClientImpl) GetRoleMenu(ctx context.Context, in *RoleNameReq, opts ...http.CallOption) (*GetMenuTreeRes, error)
func (*AdminHTTPClientImpl) GetRoleMenuBtn ¶
func (c *AdminHTTPClientImpl) GetRoleMenuBtn(ctx context.Context, in *GetRoleMenuBtnReq, opts ...http.CallOption) (*GetRoleMenuBtnRes, error)
func (*AdminHTTPClientImpl) GetRoleMenuTree ¶
func (c *AdminHTTPClientImpl) GetRoleMenuTree(ctx context.Context, in *RoleNameReq, opts ...http.CallOption) (*GetMenuTreeRes, error)
func (*AdminHTTPClientImpl) GetRolesForUser ¶
func (c *AdminHTTPClientImpl) GetRolesForUser(ctx context.Context, in *GetRolesForUserReq, opts ...http.CallOption) (*GetRolesForUserRes, error)
func (*AdminHTTPClientImpl) GetUsersForRole ¶
func (c *AdminHTTPClientImpl) GetUsersForRole(ctx context.Context, in *RoleNameReq, opts ...http.CallOption) (*GetUsersForRoleRes, error)
func (*AdminHTTPClientImpl) Login ¶
func (c *AdminHTTPClientImpl) Login(ctx context.Context, in *LoginReq, opts ...http.CallOption) (*LoginRes, error)
func (*AdminHTTPClientImpl) LoginOut ¶
func (c *AdminHTTPClientImpl) LoginOut(ctx context.Context, in *emptypb.Empty, opts ...http.CallOption) (*emptypb.Empty, error)
func (*AdminHTTPClientImpl) RecoverAdministrator ¶
func (c *AdminHTTPClientImpl) RecoverAdministrator(ctx context.Context, in *IdReq, opts ...http.CallOption) (*emptypb.Empty, error)
func (*AdminHTTPClientImpl) SetRoleMenu ¶
func (c *AdminHTTPClientImpl) SetRoleMenu(ctx context.Context, in *SetRoleMenuReq, opts ...http.CallOption) (*emptypb.Empty, error)
func (*AdminHTTPClientImpl) SetRoleMenuBtn ¶
func (c *AdminHTTPClientImpl) SetRoleMenuBtn(ctx context.Context, in *SetRoleMenuBtnReq, opts ...http.CallOption) (*emptypb.Empty, error)
func (*AdminHTTPClientImpl) SetRolesForUser ¶
func (c *AdminHTTPClientImpl) SetRolesForUser(ctx context.Context, in *SetRolesForUserReq, opts ...http.CallOption) (*emptypb.Empty, error)
func (*AdminHTTPClientImpl) UpdateAdministrator ¶
func (c *AdminHTTPClientImpl) UpdateAdministrator(ctx context.Context, in *UpdateBffAdminReq, opts ...http.CallOption) (*emptypb.Empty, error)
func (*AdminHTTPClientImpl) UpdateApi ¶
func (c *AdminHTTPClientImpl) UpdateApi(ctx context.Context, in *UpdateApiReq, opts ...http.CallOption) (*emptypb.Empty, error)
func (*AdminHTTPClientImpl) UpdateMenu ¶
func (c *AdminHTTPClientImpl) UpdateMenu(ctx context.Context, in *UpdateMenuReq, opts ...http.CallOption) (*emptypb.Empty, error)
func (*AdminHTTPClientImpl) UpdatePolicies ¶
func (c *AdminHTTPClientImpl) UpdatePolicies(ctx context.Context, in *UpdatePoliciesReq, opts ...http.CallOption) (*emptypb.Empty, error)
func (*AdminHTTPClientImpl) UpdateRole ¶
func (c *AdminHTTPClientImpl) UpdateRole(ctx context.Context, in *UpdateRoleReq, opts ...http.CallOption) (*emptypb.Empty, error)
type AdminHTTPServer ¶
type AdminHTTPServer interface { // ApproveAdministrator 管理员解禁 ApproveAdministrator(context.Context, *IdReq) (*emptypb.Empty, error) // CreateAdministrator 管理员创建 CreateAdministrator(context.Context, *CreateBffAdminReq) (*BffAdmin, error) // CreateApi 权限 —— Api创建 CreateApi(context.Context, *CreateApiReq) (*Api, error) // CreateMenu 权限 —— Menu创建 CreateMenu(context.Context, *CreateMenuReq) (*Menu, error) // CreateRole 权限 —— 角色创建 CreateRole(context.Context, *CreateRoleReq) (*Role, error) // DeleteAdministrator 管理员删除 DeleteAdministrator(context.Context, *IdReq) (*emptypb.Empty, error) // DeleteApi 权限 —— Api删除 DeleteApi(context.Context, *IdReq) (*emptypb.Empty, error) // DeleteMenu 权限 —— Menu删除 DeleteMenu(context.Context, *IdReq) (*emptypb.Empty, error) // DeleteRole 权限 —— 角色删除 DeleteRole(context.Context, *IdReq) (*emptypb.Empty, error) // DeleteRoleForUser 权限 —— 删除用户某个角色 DeleteRoleForUser(context.Context, *DeleteRoleForUserReq) (*emptypb.Empty, error) // DeleteRolesForUser 权限 —— 删除用户所有角色 DeleteRolesForUser(context.Context, *DeleteRolesForUserReq) (*emptypb.Empty, error) // ForbidAdministrator 管理员禁用 ForbidAdministrator(context.Context, *IdReq) (*emptypb.Empty, error) // GetAdministrator 管理员详情 GetAdministrator(context.Context, *IdReq) (*BffAdmin, error) // GetAdministratorInfo 获取当前请求管理员信息 GetAdministratorInfo(context.Context, *emptypb.Empty) (*BffAdmin, error) // GetAdministratorList 管理员列表 GetAdministratorList(context.Context, *GetBffAdminListReq) (*GetBffAdminListPageRes, error) // GetApiAll 权限 —— 所有Api列表 GetApiAll(context.Context, *emptypb.Empty) (*GetApiAllRes, error) // GetApiList 权限 —— Api列表 GetApiList(context.Context, *GetApiListReq) (*GetApiListRes, error) // GetApiLogList-------------------------- 日志服务 ----------------------------------------// // 日志 —— 列表 GetApiLogList(context.Context, *GetApiLogListReq) (*GetApiLogListRes, error) // GetMenuAll 权限 —— 所有Menu列表 GetMenuAll(context.Context, *emptypb.Empty) (*GetMenuTreeRes, error) // GetMenuTree 权限 —— Menu列表 GetMenuTree(context.Context, *emptypb.Empty) (*GetMenuTreeRes, error) // GetOssStsToken 文件 —— OSS STSTOKEN 获取 GetOssStsToken(context.Context, *emptypb.Empty) (*OssStsTokenResponse, error) // GetPolicies 策略授权规则 - 列表 GetPolicies(context.Context, *RoleNameReq) (*GetPoliciesRes, error) // GetRoleAll-------------------------- 权限服务 ----------------------------------------// // 权限 —— 角色列表 GetRoleAll(context.Context, *emptypb.Empty) (*GetRoleAllRes, error) // GetRoleMenu 权限 —— 角色菜单列表 GetRoleMenu(context.Context, *RoleNameReq) (*GetMenuTreeRes, error) // GetRoleMenuBtn 权限 —— 获取角色菜单按钮列表 GetRoleMenuBtn(context.Context, *GetRoleMenuBtnReq) (*GetRoleMenuBtnRes, error) // GetRoleMenuTree 权限 —— 角色菜单列表树 GetRoleMenuTree(context.Context, *RoleNameReq) (*GetMenuTreeRes, error) // GetRolesForUser 权限 —— 获取用户角色列表 GetRolesForUser(context.Context, *GetRolesForUserReq) (*GetRolesForUserRes, error) // GetUsersForRole 权限 —— 获取角色用户列表 GetUsersForRole(context.Context, *RoleNameReq) (*GetUsersForRoleRes, error) // Login-------------------------- 管理员服务 ----------------------------------------// // 管理员登陆 Login(context.Context, *LoginReq) (*LoginRes, error) // LoginOut 管理员退出 LoginOut(context.Context, *emptypb.Empty) (*emptypb.Empty, error) // RecoverAdministrator 管理员恢复 RecoverAdministrator(context.Context, *IdReq) (*emptypb.Empty, error) // SetRoleMenu 权限 —— 角色菜单更新 SetRoleMenu(context.Context, *SetRoleMenuReq) (*emptypb.Empty, error) // SetRoleMenuBtn 权限 —— 保存角色菜单按钮列表 SetRoleMenuBtn(context.Context, *SetRoleMenuBtnReq) (*emptypb.Empty, error) // SetRolesForUser 权限 —— 设置用户角色关系 SetRolesForUser(context.Context, *SetRolesForUserReq) (*emptypb.Empty, error) // UpdateAdministrator 管理员更新 UpdateAdministrator(context.Context, *UpdateBffAdminReq) (*emptypb.Empty, error) // UpdateApi 权限 —— Api更新 UpdateApi(context.Context, *UpdateApiReq) (*emptypb.Empty, error) // UpdateMenu 权限 —— Menu更新 UpdateMenu(context.Context, *UpdateMenuReq) (*emptypb.Empty, error) // UpdatePolicies 权限 —— 策略授权规则 - 更新 UpdatePolicies(context.Context, *UpdatePoliciesReq) (*emptypb.Empty, error) // UpdateRole 权限 —— 角色更新 UpdateRole(context.Context, *UpdateRoleReq) (*emptypb.Empty, error) }
type AdminServer ¶
type AdminServer interface { // -------------------------- 管理员服务 ----------------------------------------// // 管理员登陆 Login(context.Context, *LoginReq) (*LoginRes, error) // 管理员退出 LoginOut(context.Context, *emptypb.Empty) (*emptypb.Empty, error) // 管理员列表 GetAdministratorList(context.Context, *GetBffAdminListReq) (*GetBffAdminListPageRes, error) // 管理员详情 GetAdministrator(context.Context, *IdReq) (*BffAdmin, error) // 获取当前请求管理员信息 GetAdministratorInfo(context.Context, *emptypb.Empty) (*BffAdmin, error) // 管理员创建 CreateAdministrator(context.Context, *CreateBffAdminReq) (*BffAdmin, error) // 管理员更新 UpdateAdministrator(context.Context, *UpdateBffAdminReq) (*emptypb.Empty, error) // 管理员删除 DeleteAdministrator(context.Context, *IdReq) (*emptypb.Empty, error) // 管理员恢复 RecoverAdministrator(context.Context, *IdReq) (*emptypb.Empty, error) // 管理员禁用 ForbidAdministrator(context.Context, *IdReq) (*emptypb.Empty, error) // 管理员解禁 ApproveAdministrator(context.Context, *IdReq) (*emptypb.Empty, error) // -------------------------- 权限服务 ----------------------------------------// // 权限 —— 角色列表 GetRoleAll(context.Context, *emptypb.Empty) (*GetRoleAllRes, error) // 权限 —— 角色创建 CreateRole(context.Context, *CreateRoleReq) (*Role, error) // 权限 —— 角色更新 UpdateRole(context.Context, *UpdateRoleReq) (*emptypb.Empty, error) // 权限 —— 角色删除 DeleteRole(context.Context, *IdReq) (*emptypb.Empty, error) // 权限 —— 设置用户角色关系 SetRolesForUser(context.Context, *SetRolesForUserReq) (*emptypb.Empty, error) // 权限 —— 获取用户角色列表 GetRolesForUser(context.Context, *GetRolesForUserReq) (*GetRolesForUserRes, error) // 权限 —— 获取角色用户列表 GetUsersForRole(context.Context, *RoleNameReq) (*GetUsersForRoleRes, error) // 权限 —— 删除用户某个角色 DeleteRoleForUser(context.Context, *DeleteRoleForUserReq) (*emptypb.Empty, error) // 权限 —— 删除用户所有角色 DeleteRolesForUser(context.Context, *DeleteRolesForUserReq) (*emptypb.Empty, error) // 策略授权规则 - 列表 GetPolicies(context.Context, *RoleNameReq) (*GetPoliciesRes, error) // 权限 —— 策略授权规则 - 更新 UpdatePolicies(context.Context, *UpdatePoliciesReq) (*emptypb.Empty, error) // 权限 —— 所有Api列表 GetApiAll(context.Context, *emptypb.Empty) (*GetApiAllRes, error) // 权限 —— Api列表 GetApiList(context.Context, *GetApiListReq) (*GetApiListRes, error) // 权限 —— Api创建 CreateApi(context.Context, *CreateApiReq) (*Api, error) // 权限 —— Api更新 UpdateApi(context.Context, *UpdateApiReq) (*emptypb.Empty, error) // 权限 —— Api删除 DeleteApi(context.Context, *IdReq) (*emptypb.Empty, error) // 权限 —— 所有Menu列表 GetMenuAll(context.Context, *emptypb.Empty) (*GetMenuTreeRes, error) // 权限 —— Menu列表 GetMenuTree(context.Context, *emptypb.Empty) (*GetMenuTreeRes, error) // 权限 —— Menu创建 CreateMenu(context.Context, *CreateMenuReq) (*Menu, error) // 权限 —— Menu更新 UpdateMenu(context.Context, *UpdateMenuReq) (*emptypb.Empty, error) // 权限 —— Menu删除 DeleteMenu(context.Context, *IdReq) (*emptypb.Empty, error) // 权限 —— 角色菜单列表树 GetRoleMenuTree(context.Context, *RoleNameReq) (*GetMenuTreeRes, error) // 权限 —— 角色菜单列表 GetRoleMenu(context.Context, *RoleNameReq) (*GetMenuTreeRes, error) // 权限 —— 角色菜单更新 SetRoleMenu(context.Context, *SetRoleMenuReq) (*emptypb.Empty, error) // 权限 —— 获取角色菜单按钮列表 GetRoleMenuBtn(context.Context, *GetRoleMenuBtnReq) (*GetRoleMenuBtnRes, error) // 权限 —— 保存角色菜单按钮列表 SetRoleMenuBtn(context.Context, *SetRoleMenuBtnReq) (*emptypb.Empty, error) // -------------------------- 日志服务 ----------------------------------------// // 日志 —— 列表 GetApiLogList(context.Context, *GetApiLogListReq) (*GetApiLogListRes, error) // 文件 —— OSS STSTOKEN 获取 GetOssStsToken(context.Context, *emptypb.Empty) (*OssStsTokenResponse, error) // contains filtered or unexported methods }
AdminServer is the server API for Admin service. All implementations must embed UnimplementedAdminServer for forward compatibility.
管理后台服务
type Api ¶
type Api struct { // 主键id Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // 名称 Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // 分组 Group string `protobuf:"bytes,3,opt,name=group,proto3" json:"group,omitempty"` // 请求方式 Method string `protobuf:"bytes,4,opt,name=method,proto3" json:"method,omitempty"` // 请求路径 Path string `protobuf:"bytes,5,opt,name=path,proto3" json:"path,omitempty"` // 创建时间 CreatedAt string `protobuf:"bytes,6,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` // 更新时间 UpdatedAt string `protobuf:"bytes,7,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` // contains filtered or unexported fields }
响应 - API信息
func (*Api) Descriptor
deprecated
func (*Api) GetCreatedAt ¶
func (*Api) GetUpdatedAt ¶
func (*Api) ProtoMessage ¶
func (*Api) ProtoMessage()
func (*Api) ProtoReflect ¶
func (x *Api) ProtoReflect() protoreflect.Message
type ApiLog ¶
type ApiLog struct { // 日志id Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // trace id TraceId string `protobuf:"bytes,2,opt,name=trace_id,json=traceId,proto3" json:"trace_id,omitempty"` // http/rpc Component string `protobuf:"bytes,3,opt,name=component,proto3" json:"component,omitempty"` // kratos操作路径 Operation string `protobuf:"bytes,5,opt,name=operation,proto3" json:"operation,omitempty"` // 用户id UserId string `protobuf:"bytes,6,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // 请求方式 Method string `protobuf:"bytes,7,opt,name=method,proto3" json:"method,omitempty"` // 请求路径 Path string `protobuf:"bytes,8,opt,name=path,proto3" json:"path,omitempty"` // 请求内容 Request string `protobuf:"bytes,9,opt,name=request,proto3" json:"request,omitempty"` // 响应内容 Code string `protobuf:"bytes,10,opt,name=code,proto3" json:"code,omitempty"` // 提示信息 Reason string `protobuf:"bytes,11,opt,name=reason,proto3" json:"reason,omitempty"` // 请求ip Ip string `protobuf:"bytes,12,opt,name=ip,proto3" json:"ip,omitempty"` // 创建时间 CreatedAt string `protobuf:"bytes,13,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` // 域 Domain string `protobuf:"bytes,14,opt,name=domain,proto3" json:"domain,omitempty"` // 名称 Name string `protobuf:"bytes,15,opt,name=name,proto3" json:"name,omitempty"` // 响应时长 Latency string `protobuf:"bytes,16,opt,name=latency,proto3" json:"latency,omitempty"` // 用户名 Username string `protobuf:"bytes,17,opt,name=username,proto3" json:"username,omitempty"` // 角色 Role string `protobuf:"bytes,18,opt,name=role,proto3" json:"role,omitempty"` // contains filtered or unexported fields }
响应 - 日志
func (*ApiLog) Descriptor
deprecated
func (*ApiLog) GetComponent ¶
func (*ApiLog) GetCreatedAt ¶
func (*ApiLog) GetLatency ¶
func (*ApiLog) GetOperation ¶
func (*ApiLog) GetRequest ¶
func (*ApiLog) GetTraceId ¶
func (*ApiLog) GetUsername ¶
func (*ApiLog) ProtoMessage ¶
func (*ApiLog) ProtoMessage()
func (*ApiLog) ProtoReflect ¶
func (x *ApiLog) ProtoReflect() protoreflect.Message
type BffAdmin ¶
type BffAdmin struct { // id Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // 用户名 Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"` // 手机号 Mobile string `protobuf:"bytes,3,opt,name=mobile,proto3" json:"mobile,omitempty"` // 昵称 Nickname string `protobuf:"bytes,4,opt,name=nickname,proto3" json:"nickname,omitempty"` // 头像 Avatar string `protobuf:"bytes,5,opt,name=avatar,proto3" json:"avatar,omitempty"` // 状态 true正常 false冻结 Status bool `protobuf:"varint,6,opt,name=status,proto3" json:"status,omitempty"` // 角色 Role string `protobuf:"bytes,7,opt,name=role,proto3" json:"role,omitempty"` // 上次登录时间 LastLoginTime string `protobuf:"bytes,8,opt,name=last_login_time,json=lastLoginTime,proto3" json:"last_login_time,omitempty"` // 上次登录ip LastLoginIp string `protobuf:"bytes,9,opt,name=last_login_ip,json=lastLoginIp,proto3" json:"last_login_ip,omitempty"` // 创建时间 CreatedAt string `protobuf:"bytes,10,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` // 更新时间 UpdatedAt string `protobuf:"bytes,11,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` // 删除时间 DeletedAt string `protobuf:"bytes,12,opt,name=deleted_at,json=deletedAt,proto3" json:"deleted_at,omitempty"` // contains filtered or unexported fields }
响应-管理员
func (*BffAdmin) Descriptor
deprecated
func (*BffAdmin) GetCreatedAt ¶
func (*BffAdmin) GetDeletedAt ¶
func (*BffAdmin) GetLastLoginIp ¶
func (*BffAdmin) GetLastLoginTime ¶
func (*BffAdmin) GetNickname ¶
func (*BffAdmin) GetUpdatedAt ¶
func (*BffAdmin) GetUsername ¶
func (*BffAdmin) ProtoMessage ¶
func (*BffAdmin) ProtoMessage()
func (*BffAdmin) ProtoReflect ¶
func (x *BffAdmin) ProtoReflect() protoreflect.Message
type BffErrorReason ¶ added in v0.0.10
type BffErrorReason int32
const ( BffErrorReason_RECORD_NOT_FOUND BffErrorReason = 0 BffErrorReason_RECORD_ALREADY_EXISTS BffErrorReason = 1 BffErrorReason_BAD_REQUEST BffErrorReason = 2 BffErrorReason_SYSTEM_ERROR BffErrorReason = 3 )
func (BffErrorReason) Descriptor ¶ added in v0.0.10
func (BffErrorReason) Descriptor() protoreflect.EnumDescriptor
func (BffErrorReason) Enum ¶ added in v0.0.10
func (x BffErrorReason) Enum() *BffErrorReason
func (BffErrorReason) EnumDescriptor
deprecated
added in
v0.0.10
func (BffErrorReason) EnumDescriptor() ([]byte, []int)
Deprecated: Use BffErrorReason.Descriptor instead.
func (BffErrorReason) Number ¶ added in v0.0.10
func (x BffErrorReason) Number() protoreflect.EnumNumber
func (BffErrorReason) String ¶ added in v0.0.10
func (x BffErrorReason) String() string
func (BffErrorReason) Type ¶ added in v0.0.10
func (BffErrorReason) Type() protoreflect.EnumType
type CreateApiReq ¶
type CreateApiReq struct { // 名称 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // 分组 Group string `protobuf:"bytes,2,opt,name=group,proto3" json:"group,omitempty"` // 请求方式 Method string `protobuf:"bytes,3,opt,name=method,proto3" json:"method,omitempty"` // 请求路径 Path string `protobuf:"bytes,4,opt,name=path,proto3" json:"path,omitempty"` // contains filtered or unexported fields }
请求 - API创建
func (*CreateApiReq) Descriptor
deprecated
func (*CreateApiReq) Descriptor() ([]byte, []int)
Deprecated: Use CreateApiReq.ProtoReflect.Descriptor instead.
func (*CreateApiReq) GetGroup ¶
func (x *CreateApiReq) GetGroup() string
func (*CreateApiReq) GetMethod ¶
func (x *CreateApiReq) GetMethod() string
func (*CreateApiReq) GetName ¶
func (x *CreateApiReq) GetName() string
func (*CreateApiReq) GetPath ¶
func (x *CreateApiReq) GetPath() string
func (*CreateApiReq) ProtoMessage ¶
func (*CreateApiReq) ProtoMessage()
func (*CreateApiReq) ProtoReflect ¶
func (x *CreateApiReq) ProtoReflect() protoreflect.Message
func (*CreateApiReq) Reset ¶
func (x *CreateApiReq) Reset()
func (*CreateApiReq) String ¶
func (x *CreateApiReq) String() string
type CreateBffAdminReq ¶
type CreateBffAdminReq struct { // 用户名 Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"` // 密码 Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` // 手机号 Mobile string `protobuf:"bytes,3,opt,name=mobile,proto3" json:"mobile,omitempty"` // 昵称 Nickname string `protobuf:"bytes,4,opt,name=nickname,proto3" json:"nickname,omitempty"` // 头像 Avatar string `protobuf:"bytes,5,opt,name=avatar,proto3" json:"avatar,omitempty"` // 状态 true正常 false冻结 Status bool `protobuf:"varint,6,opt,name=status,proto3" json:"status,omitempty"` // 当前角色数组,默认第一个为当前角色 Role []string `protobuf:"bytes,7,rep,name=role,proto3" json:"role,omitempty"` // contains filtered or unexported fields }
请求 - 管理员创建
func (*CreateBffAdminReq) Descriptor
deprecated
func (*CreateBffAdminReq) Descriptor() ([]byte, []int)
Deprecated: Use CreateBffAdminReq.ProtoReflect.Descriptor instead.
func (*CreateBffAdminReq) GetAvatar ¶
func (x *CreateBffAdminReq) GetAvatar() string
func (*CreateBffAdminReq) GetMobile ¶
func (x *CreateBffAdminReq) GetMobile() string
func (*CreateBffAdminReq) GetNickname ¶
func (x *CreateBffAdminReq) GetNickname() string
func (*CreateBffAdminReq) GetPassword ¶
func (x *CreateBffAdminReq) GetPassword() string
func (*CreateBffAdminReq) GetRole ¶
func (x *CreateBffAdminReq) GetRole() []string
func (*CreateBffAdminReq) GetStatus ¶
func (x *CreateBffAdminReq) GetStatus() bool
func (*CreateBffAdminReq) GetUsername ¶
func (x *CreateBffAdminReq) GetUsername() string
func (*CreateBffAdminReq) ProtoMessage ¶
func (*CreateBffAdminReq) ProtoMessage()
func (*CreateBffAdminReq) ProtoReflect ¶
func (x *CreateBffAdminReq) ProtoReflect() protoreflect.Message
func (*CreateBffAdminReq) Reset ¶
func (x *CreateBffAdminReq) Reset()
func (*CreateBffAdminReq) String ¶
func (x *CreateBffAdminReq) String() string
type CreateMenuReq ¶
type CreateMenuReq struct { // 父级id ParentId int64 `protobuf:"varint,2,opt,name=parent_id,json=parentId,proto3" json:"parent_id,omitempty"` // 前端路径 Path string `protobuf:"bytes,3,opt,name=path,proto3" json:"path,omitempty"` // 菜单名 Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"` // 是否隐藏 Hidden bool `protobuf:"varint,5,opt,name=hidden,proto3" json:"hidden,omitempty"` // 前端文件路径 Component string `protobuf:"bytes,6,opt,name=component,proto3" json:"component,omitempty"` // 排序 Sort int64 `protobuf:"varint,7,opt,name=sort,proto3" json:"sort,omitempty"` // 页面名称 Title string `protobuf:"bytes,8,opt,name=title,proto3" json:"title,omitempty"` // 菜单图标 Icon string `protobuf:"bytes,9,opt,name=icon,proto3" json:"icon,omitempty"` // 菜单按钮列表 MenuBtns []*MenuBtn `protobuf:"bytes,13,rep,name=menuBtns,proto3" json:"menuBtns,omitempty"` // 父级id字符串 英文逗号分割 ParentIds string `protobuf:"bytes,14,opt,name=parent_ids,json=parentIds,proto3" json:"parent_ids,omitempty"` // contains filtered or unexported fields }
请求 - 菜单创建
func (*CreateMenuReq) Descriptor
deprecated
func (*CreateMenuReq) Descriptor() ([]byte, []int)
Deprecated: Use CreateMenuReq.ProtoReflect.Descriptor instead.
func (*CreateMenuReq) GetComponent ¶
func (x *CreateMenuReq) GetComponent() string
func (*CreateMenuReq) GetHidden ¶
func (x *CreateMenuReq) GetHidden() bool
func (*CreateMenuReq) GetIcon ¶
func (x *CreateMenuReq) GetIcon() string
func (*CreateMenuReq) GetMenuBtns ¶
func (x *CreateMenuReq) GetMenuBtns() []*MenuBtn
func (*CreateMenuReq) GetName ¶
func (x *CreateMenuReq) GetName() string
func (*CreateMenuReq) GetParentId ¶
func (x *CreateMenuReq) GetParentId() int64
func (*CreateMenuReq) GetParentIds ¶
func (x *CreateMenuReq) GetParentIds() string
func (*CreateMenuReq) GetPath ¶
func (x *CreateMenuReq) GetPath() string
func (*CreateMenuReq) GetSort ¶
func (x *CreateMenuReq) GetSort() int64
func (*CreateMenuReq) GetTitle ¶
func (x *CreateMenuReq) GetTitle() string
func (*CreateMenuReq) ProtoMessage ¶
func (*CreateMenuReq) ProtoMessage()
func (*CreateMenuReq) ProtoReflect ¶
func (x *CreateMenuReq) ProtoReflect() protoreflect.Message
func (*CreateMenuReq) Reset ¶
func (x *CreateMenuReq) Reset()
func (*CreateMenuReq) String ¶
func (x *CreateMenuReq) String() string
type CreateRoleReq ¶
type CreateRoleReq struct { // 名称 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
请求 - 角色创建
func (*CreateRoleReq) Descriptor
deprecated
func (*CreateRoleReq) Descriptor() ([]byte, []int)
Deprecated: Use CreateRoleReq.ProtoReflect.Descriptor instead.
func (*CreateRoleReq) GetName ¶
func (x *CreateRoleReq) GetName() string
func (*CreateRoleReq) ProtoMessage ¶
func (*CreateRoleReq) ProtoMessage()
func (*CreateRoleReq) ProtoReflect ¶
func (x *CreateRoleReq) ProtoReflect() protoreflect.Message
func (*CreateRoleReq) Reset ¶
func (x *CreateRoleReq) Reset()
func (*CreateRoleReq) String ¶
func (x *CreateRoleReq) String() string
type DeleteRoleForUserReq ¶
type DeleteRoleForUserReq struct { // 用户名 Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"` // 角色名 Role string `protobuf:"bytes,2,opt,name=role,proto3" json:"role,omitempty"` // contains filtered or unexported fields }
请求 - 删除用户(单个)角色
func (*DeleteRoleForUserReq) Descriptor
deprecated
func (*DeleteRoleForUserReq) Descriptor() ([]byte, []int)
Deprecated: Use DeleteRoleForUserReq.ProtoReflect.Descriptor instead.
func (*DeleteRoleForUserReq) GetRole ¶
func (x *DeleteRoleForUserReq) GetRole() string
func (*DeleteRoleForUserReq) GetUsername ¶
func (x *DeleteRoleForUserReq) GetUsername() string
func (*DeleteRoleForUserReq) ProtoMessage ¶
func (*DeleteRoleForUserReq) ProtoMessage()
func (*DeleteRoleForUserReq) ProtoReflect ¶
func (x *DeleteRoleForUserReq) ProtoReflect() protoreflect.Message
func (*DeleteRoleForUserReq) Reset ¶
func (x *DeleteRoleForUserReq) Reset()
func (*DeleteRoleForUserReq) String ¶
func (x *DeleteRoleForUserReq) String() string
type DeleteRolesForUserReq ¶
type DeleteRolesForUserReq struct { // 用户名 Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"` // contains filtered or unexported fields }
请求 - 删除用户(全部)角色
func (*DeleteRolesForUserReq) Descriptor
deprecated
func (*DeleteRolesForUserReq) Descriptor() ([]byte, []int)
Deprecated: Use DeleteRolesForUserReq.ProtoReflect.Descriptor instead.
func (*DeleteRolesForUserReq) GetUsername ¶
func (x *DeleteRolesForUserReq) GetUsername() string
func (*DeleteRolesForUserReq) ProtoMessage ¶
func (*DeleteRolesForUserReq) ProtoMessage()
func (*DeleteRolesForUserReq) ProtoReflect ¶
func (x *DeleteRolesForUserReq) ProtoReflect() protoreflect.Message
func (*DeleteRolesForUserReq) Reset ¶
func (x *DeleteRolesForUserReq) Reset()
func (*DeleteRolesForUserReq) String ¶
func (x *DeleteRolesForUserReq) String() string
type ErrorMessageRes ¶
type ErrorMessageRes struct { Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` // contains filtered or unexported fields }
func (*ErrorMessageRes) Descriptor
deprecated
func (*ErrorMessageRes) Descriptor() ([]byte, []int)
Deprecated: Use ErrorMessageRes.ProtoReflect.Descriptor instead.
func (*ErrorMessageRes) GetMessage ¶
func (x *ErrorMessageRes) GetMessage() string
func (*ErrorMessageRes) ProtoMessage ¶
func (*ErrorMessageRes) ProtoMessage()
func (*ErrorMessageRes) ProtoReflect ¶
func (x *ErrorMessageRes) ProtoReflect() protoreflect.Message
func (*ErrorMessageRes) Reset ¶
func (x *ErrorMessageRes) Reset()
func (*ErrorMessageRes) String ¶
func (x *ErrorMessageRes) String() string
type GetApiAllRes ¶
type GetApiAllRes struct { // 列表 List []*Api `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"` // contains filtered or unexported fields }
响应 - api列表(全部)
func (*GetApiAllRes) Descriptor
deprecated
func (*GetApiAllRes) Descriptor() ([]byte, []int)
Deprecated: Use GetApiAllRes.ProtoReflect.Descriptor instead.
func (*GetApiAllRes) GetList ¶
func (x *GetApiAllRes) GetList() []*Api
func (*GetApiAllRes) ProtoMessage ¶
func (*GetApiAllRes) ProtoMessage()
func (*GetApiAllRes) ProtoReflect ¶
func (x *GetApiAllRes) ProtoReflect() protoreflect.Message
func (*GetApiAllRes) Reset ¶
func (x *GetApiAllRes) Reset()
func (*GetApiAllRes) String ¶
func (x *GetApiAllRes) String() string
type GetApiListReq ¶
type GetApiListReq struct { // 页码 Page int64 `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"` // 页记录数 PageSize int64 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` // 名称 Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` // 分组 Group string `protobuf:"bytes,4,opt,name=group,proto3" json:"group,omitempty"` // 请求方式 Method string `protobuf:"bytes,5,opt,name=method,proto3" json:"method,omitempty"` // 请求路径 Path string `protobuf:"bytes,6,opt,name=path,proto3" json:"path,omitempty"` // contains filtered or unexported fields }
请求 - API分页列表
func (*GetApiListReq) Descriptor
deprecated
func (*GetApiListReq) Descriptor() ([]byte, []int)
Deprecated: Use GetApiListReq.ProtoReflect.Descriptor instead.
func (*GetApiListReq) GetGroup ¶
func (x *GetApiListReq) GetGroup() string
func (*GetApiListReq) GetMethod ¶
func (x *GetApiListReq) GetMethod() string
func (*GetApiListReq) GetName ¶
func (x *GetApiListReq) GetName() string
func (*GetApiListReq) GetPage ¶
func (x *GetApiListReq) GetPage() int64
func (*GetApiListReq) GetPageSize ¶
func (x *GetApiListReq) GetPageSize() int64
func (*GetApiListReq) GetPath ¶
func (x *GetApiListReq) GetPath() string
func (*GetApiListReq) ProtoMessage ¶
func (*GetApiListReq) ProtoMessage()
func (*GetApiListReq) ProtoReflect ¶
func (x *GetApiListReq) ProtoReflect() protoreflect.Message
func (*GetApiListReq) Reset ¶
func (x *GetApiListReq) Reset()
func (*GetApiListReq) String ¶
func (x *GetApiListReq) String() string
type GetApiListRes ¶
type GetApiListRes struct { // 总数 Total int64 `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"` // 列表 List []*Api `protobuf:"bytes,2,rep,name=list,proto3" json:"list,omitempty"` // contains filtered or unexported fields }
响应 - API分页
func (*GetApiListRes) Descriptor
deprecated
func (*GetApiListRes) Descriptor() ([]byte, []int)
Deprecated: Use GetApiListRes.ProtoReflect.Descriptor instead.
func (*GetApiListRes) GetList ¶
func (x *GetApiListRes) GetList() []*Api
func (*GetApiListRes) GetTotal ¶
func (x *GetApiListRes) GetTotal() int64
func (*GetApiListRes) ProtoMessage ¶
func (*GetApiListRes) ProtoMessage()
func (*GetApiListRes) ProtoReflect ¶
func (x *GetApiListRes) ProtoReflect() protoreflect.Message
func (*GetApiListRes) Reset ¶
func (x *GetApiListRes) Reset()
func (*GetApiListRes) String ¶
func (x *GetApiListRes) String() string
type GetApiLogListReq ¶
type GetApiLogListReq struct { // 页码 Page int64 `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"` // 页记录数 PageSize int64 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` // 名称 Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` // userId UserId string `protobuf:"bytes,4,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // 用户名 Username string `protobuf:"bytes,5,opt,name=username,proto3" json:"username,omitempty"` // 角色 Role string `protobuf:"bytes,6,opt,name=role,proto3" json:"role,omitempty"` // 路径 Operation string `protobuf:"bytes,7,opt,name=operation,proto3" json:"operation,omitempty"` // ip Ip string `protobuf:"bytes,8,opt,name=ip,proto3" json:"ip,omitempty"` // trace_id TraceId string `protobuf:"bytes,9,opt,name=trace_id,json=traceId,proto3" json:"trace_id,omitempty"` // contains filtered or unexported fields }
请求 - 日志列表
func (*GetApiLogListReq) Descriptor
deprecated
func (*GetApiLogListReq) Descriptor() ([]byte, []int)
Deprecated: Use GetApiLogListReq.ProtoReflect.Descriptor instead.
func (*GetApiLogListReq) GetIp ¶
func (x *GetApiLogListReq) GetIp() string
func (*GetApiLogListReq) GetName ¶
func (x *GetApiLogListReq) GetName() string
func (*GetApiLogListReq) GetOperation ¶
func (x *GetApiLogListReq) GetOperation() string
func (*GetApiLogListReq) GetPage ¶
func (x *GetApiLogListReq) GetPage() int64
func (*GetApiLogListReq) GetPageSize ¶
func (x *GetApiLogListReq) GetPageSize() int64
func (*GetApiLogListReq) GetRole ¶
func (x *GetApiLogListReq) GetRole() string
func (*GetApiLogListReq) GetTraceId ¶
func (x *GetApiLogListReq) GetTraceId() string
func (*GetApiLogListReq) GetUserId ¶
func (x *GetApiLogListReq) GetUserId() string
func (*GetApiLogListReq) GetUsername ¶
func (x *GetApiLogListReq) GetUsername() string
func (*GetApiLogListReq) ProtoMessage ¶
func (*GetApiLogListReq) ProtoMessage()
func (*GetApiLogListReq) ProtoReflect ¶
func (x *GetApiLogListReq) ProtoReflect() protoreflect.Message
func (*GetApiLogListReq) Reset ¶
func (x *GetApiLogListReq) Reset()
func (*GetApiLogListReq) String ¶
func (x *GetApiLogListReq) String() string
type GetApiLogListRes ¶
type GetApiLogListRes struct { // 总数 Total int64 `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"` // 列表 List []*ApiLog `protobuf:"bytes,2,rep,name=list,proto3" json:"list,omitempty"` // contains filtered or unexported fields }
响应 - 日志列表
func (*GetApiLogListRes) Descriptor
deprecated
func (*GetApiLogListRes) Descriptor() ([]byte, []int)
Deprecated: Use GetApiLogListRes.ProtoReflect.Descriptor instead.
func (*GetApiLogListRes) GetList ¶
func (x *GetApiLogListRes) GetList() []*ApiLog
func (*GetApiLogListRes) GetTotal ¶
func (x *GetApiLogListRes) GetTotal() int64
func (*GetApiLogListRes) ProtoMessage ¶
func (*GetApiLogListRes) ProtoMessage()
func (*GetApiLogListRes) ProtoReflect ¶
func (x *GetApiLogListRes) ProtoReflect() protoreflect.Message
func (*GetApiLogListRes) Reset ¶
func (x *GetApiLogListRes) Reset()
func (*GetApiLogListRes) String ¶
func (x *GetApiLogListRes) String() string
type GetBffAdminListPageRes ¶
type GetBffAdminListPageRes struct { // 总记录数 Total int64 `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"` // 列表 List []*BffAdmin `protobuf:"bytes,2,rep,name=list,proto3" json:"list,omitempty"` // contains filtered or unexported fields }
请求 - 管理员分页
func (*GetBffAdminListPageRes) Descriptor
deprecated
func (*GetBffAdminListPageRes) Descriptor() ([]byte, []int)
Deprecated: Use GetBffAdminListPageRes.ProtoReflect.Descriptor instead.
func (*GetBffAdminListPageRes) GetList ¶
func (x *GetBffAdminListPageRes) GetList() []*BffAdmin
func (*GetBffAdminListPageRes) GetTotal ¶
func (x *GetBffAdminListPageRes) GetTotal() int64
func (*GetBffAdminListPageRes) ProtoMessage ¶
func (*GetBffAdminListPageRes) ProtoMessage()
func (*GetBffAdminListPageRes) ProtoReflect ¶
func (x *GetBffAdminListPageRes) ProtoReflect() protoreflect.Message
func (*GetBffAdminListPageRes) Reset ¶
func (x *GetBffAdminListPageRes) Reset()
func (*GetBffAdminListPageRes) String ¶
func (x *GetBffAdminListPageRes) String() string
type GetBffAdminListReq ¶
type GetBffAdminListReq struct { // 页码 Page int64 `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"` // 页记录数 PageSize int64 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` // 用户名 Username string `protobuf:"bytes,3,opt,name=username,proto3" json:"username,omitempty"` // 手机号 Mobile string `protobuf:"bytes,4,opt,name=mobile,proto3" json:"mobile,omitempty"` // 昵称 Nickname string `protobuf:"bytes,5,opt,name=nickname,proto3" json:"nickname,omitempty"` // 状态 1正常 0冻结 Status *wrapperspb.BoolValue `protobuf:"bytes,6,opt,name=status,proto3" json:"status,omitempty"` // 创建开始时间 CreatedAtStart string `protobuf:"bytes,7,opt,name=created_at_start,json=createdAtStart,proto3" json:"created_at_start,omitempty"` // 创建结束时间 CreatedAtEnd string `protobuf:"bytes,8,opt,name=created_at_end,json=createdAtEnd,proto3" json:"created_at_end,omitempty"` // contains filtered or unexported fields }
请求 - 管理员列表
func (*GetBffAdminListReq) Descriptor
deprecated
func (*GetBffAdminListReq) Descriptor() ([]byte, []int)
Deprecated: Use GetBffAdminListReq.ProtoReflect.Descriptor instead.
func (*GetBffAdminListReq) GetCreatedAtEnd ¶
func (x *GetBffAdminListReq) GetCreatedAtEnd() string
func (*GetBffAdminListReq) GetCreatedAtStart ¶
func (x *GetBffAdminListReq) GetCreatedAtStart() string
func (*GetBffAdminListReq) GetMobile ¶
func (x *GetBffAdminListReq) GetMobile() string
func (*GetBffAdminListReq) GetNickname ¶
func (x *GetBffAdminListReq) GetNickname() string
func (*GetBffAdminListReq) GetPage ¶
func (x *GetBffAdminListReq) GetPage() int64
func (*GetBffAdminListReq) GetPageSize ¶
func (x *GetBffAdminListReq) GetPageSize() int64
func (*GetBffAdminListReq) GetStatus ¶
func (x *GetBffAdminListReq) GetStatus() *wrapperspb.BoolValue
func (*GetBffAdminListReq) GetUsername ¶
func (x *GetBffAdminListReq) GetUsername() string
func (*GetBffAdminListReq) ProtoMessage ¶
func (*GetBffAdminListReq) ProtoMessage()
func (*GetBffAdminListReq) ProtoReflect ¶
func (x *GetBffAdminListReq) ProtoReflect() protoreflect.Message
func (*GetBffAdminListReq) Reset ¶
func (x *GetBffAdminListReq) Reset()
func (*GetBffAdminListReq) String ¶
func (x *GetBffAdminListReq) String() string
type GetMenuTreeRes ¶
type GetMenuTreeRes struct { // 菜单列表 List []*Menu `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"` // contains filtered or unexported fields }
请求 - 获取菜单树 响应 - 菜单树列表
func (*GetMenuTreeRes) Descriptor
deprecated
func (*GetMenuTreeRes) Descriptor() ([]byte, []int)
Deprecated: Use GetMenuTreeRes.ProtoReflect.Descriptor instead.
func (*GetMenuTreeRes) GetList ¶
func (x *GetMenuTreeRes) GetList() []*Menu
func (*GetMenuTreeRes) ProtoMessage ¶
func (*GetMenuTreeRes) ProtoMessage()
func (*GetMenuTreeRes) ProtoReflect ¶
func (x *GetMenuTreeRes) ProtoReflect() protoreflect.Message
func (*GetMenuTreeRes) Reset ¶
func (x *GetMenuTreeRes) Reset()
func (*GetMenuTreeRes) String ¶
func (x *GetMenuTreeRes) String() string
type GetPoliciesRes ¶
type GetPoliciesRes struct { PolicyRules []*PolicyRules `protobuf:"bytes,1,rep,name=policyRules,proto3" json:"policyRules,omitempty"` // contains filtered or unexported fields }
响应 - 权限策略列表
func (*GetPoliciesRes) Descriptor
deprecated
func (*GetPoliciesRes) Descriptor() ([]byte, []int)
Deprecated: Use GetPoliciesRes.ProtoReflect.Descriptor instead.
func (*GetPoliciesRes) GetPolicyRules ¶
func (x *GetPoliciesRes) GetPolicyRules() []*PolicyRules
func (*GetPoliciesRes) ProtoMessage ¶
func (*GetPoliciesRes) ProtoMessage()
func (*GetPoliciesRes) ProtoReflect ¶
func (x *GetPoliciesRes) ProtoReflect() protoreflect.Message
func (*GetPoliciesRes) Reset ¶
func (x *GetPoliciesRes) Reset()
func (*GetPoliciesRes) String ¶
func (x *GetPoliciesRes) String() string
type GetRoleAllRes ¶
type GetRoleAllRes struct { List []*Role `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"` // contains filtered or unexported fields }
获取角色列表
func (*GetRoleAllRes) Descriptor
deprecated
func (*GetRoleAllRes) Descriptor() ([]byte, []int)
Deprecated: Use GetRoleAllRes.ProtoReflect.Descriptor instead.
func (*GetRoleAllRes) GetList ¶
func (x *GetRoleAllRes) GetList() []*Role
func (*GetRoleAllRes) ProtoMessage ¶
func (*GetRoleAllRes) ProtoMessage()
func (*GetRoleAllRes) ProtoReflect ¶
func (x *GetRoleAllRes) ProtoReflect() protoreflect.Message
func (*GetRoleAllRes) Reset ¶
func (x *GetRoleAllRes) Reset()
func (*GetRoleAllRes) String ¶
func (x *GetRoleAllRes) String() string
type GetRoleMenuBtnReq ¶
type GetRoleMenuBtnReq struct { // 角色id RoleId int64 `protobuf:"varint,1,opt,name=role_id,json=roleId,proto3" json:"role_id,omitempty"` // 角色名称 RoleName string `protobuf:"bytes,2,opt,name=role_name,json=roleName,proto3" json:"role_name,omitempty"` // 菜单id MenuId int64 `protobuf:"varint,3,opt,name=menu_id,json=menuId,proto3" json:"menu_id,omitempty"` // contains filtered or unexported fields }
请求 - 获取角色菜单按钮
func (*GetRoleMenuBtnReq) Descriptor
deprecated
func (*GetRoleMenuBtnReq) Descriptor() ([]byte, []int)
Deprecated: Use GetRoleMenuBtnReq.ProtoReflect.Descriptor instead.
func (*GetRoleMenuBtnReq) GetMenuId ¶
func (x *GetRoleMenuBtnReq) GetMenuId() int64
func (*GetRoleMenuBtnReq) GetRoleId ¶
func (x *GetRoleMenuBtnReq) GetRoleId() int64
func (*GetRoleMenuBtnReq) GetRoleName ¶
func (x *GetRoleMenuBtnReq) GetRoleName() string
func (*GetRoleMenuBtnReq) ProtoMessage ¶
func (*GetRoleMenuBtnReq) ProtoMessage()
func (*GetRoleMenuBtnReq) ProtoReflect ¶
func (x *GetRoleMenuBtnReq) ProtoReflect() protoreflect.Message
func (*GetRoleMenuBtnReq) Reset ¶
func (x *GetRoleMenuBtnReq) Reset()
func (*GetRoleMenuBtnReq) String ¶
func (x *GetRoleMenuBtnReq) String() string
type GetRoleMenuBtnRes ¶
type GetRoleMenuBtnRes struct { // 菜单按钮列表 List []*MenuBtn `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"` // contains filtered or unexported fields }
响应 - 角色菜单按钮列表
func (*GetRoleMenuBtnRes) Descriptor
deprecated
func (*GetRoleMenuBtnRes) Descriptor() ([]byte, []int)
Deprecated: Use GetRoleMenuBtnRes.ProtoReflect.Descriptor instead.
func (*GetRoleMenuBtnRes) GetList ¶
func (x *GetRoleMenuBtnRes) GetList() []*MenuBtn
func (*GetRoleMenuBtnRes) ProtoMessage ¶
func (*GetRoleMenuBtnRes) ProtoMessage()
func (*GetRoleMenuBtnRes) ProtoReflect ¶
func (x *GetRoleMenuBtnRes) ProtoReflect() protoreflect.Message
func (*GetRoleMenuBtnRes) Reset ¶
func (x *GetRoleMenuBtnRes) Reset()
func (*GetRoleMenuBtnRes) String ¶
func (x *GetRoleMenuBtnRes) String() string
type GetRolesForUserReq ¶
type GetRolesForUserReq struct { // 用户名 Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"` // contains filtered or unexported fields }
请求 - 获取用户角色列表
func (*GetRolesForUserReq) Descriptor
deprecated
func (*GetRolesForUserReq) Descriptor() ([]byte, []int)
Deprecated: Use GetRolesForUserReq.ProtoReflect.Descriptor instead.
func (*GetRolesForUserReq) GetUsername ¶
func (x *GetRolesForUserReq) GetUsername() string
func (*GetRolesForUserReq) ProtoMessage ¶
func (*GetRolesForUserReq) ProtoMessage()
func (*GetRolesForUserReq) ProtoReflect ¶
func (x *GetRolesForUserReq) ProtoReflect() protoreflect.Message
func (*GetRolesForUserReq) Reset ¶
func (x *GetRolesForUserReq) Reset()
func (*GetRolesForUserReq) String ¶
func (x *GetRolesForUserReq) String() string
type GetRolesForUserRes ¶
type GetRolesForUserRes struct { // 角色数组 Roles []string `protobuf:"bytes,1,rep,name=roles,proto3" json:"roles,omitempty"` // contains filtered or unexported fields }
响应 - 用户角色列表
func (*GetRolesForUserRes) Descriptor
deprecated
func (*GetRolesForUserRes) Descriptor() ([]byte, []int)
Deprecated: Use GetRolesForUserRes.ProtoReflect.Descriptor instead.
func (*GetRolesForUserRes) GetRoles ¶
func (x *GetRolesForUserRes) GetRoles() []string
func (*GetRolesForUserRes) ProtoMessage ¶
func (*GetRolesForUserRes) ProtoMessage()
func (*GetRolesForUserRes) ProtoReflect ¶
func (x *GetRolesForUserRes) ProtoReflect() protoreflect.Message
func (*GetRolesForUserRes) Reset ¶
func (x *GetRolesForUserRes) Reset()
func (*GetRolesForUserRes) String ¶
func (x *GetRolesForUserRes) String() string
type GetUsersForRoleRes ¶
type GetUsersForRoleRes struct { // 用户列表 Users []string `protobuf:"bytes,1,rep,name=users,proto3" json:"users,omitempty"` // contains filtered or unexported fields }
响应 - 角色用户列表
func (*GetUsersForRoleRes) Descriptor
deprecated
func (*GetUsersForRoleRes) Descriptor() ([]byte, []int)
Deprecated: Use GetUsersForRoleRes.ProtoReflect.Descriptor instead.
func (*GetUsersForRoleRes) GetUsers ¶
func (x *GetUsersForRoleRes) GetUsers() []string
func (*GetUsersForRoleRes) ProtoMessage ¶
func (*GetUsersForRoleRes) ProtoMessage()
func (*GetUsersForRoleRes) ProtoReflect ¶
func (x *GetUsersForRoleRes) ProtoReflect() protoreflect.Message
func (*GetUsersForRoleRes) Reset ¶
func (x *GetUsersForRoleRes) Reset()
func (*GetUsersForRoleRes) String ¶
func (x *GetUsersForRoleRes) String() string
type IdReq ¶
type IdReq struct { // 主键id Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
请求 - id主键
func (*IdReq) Descriptor
deprecated
func (*IdReq) ProtoMessage ¶
func (*IdReq) ProtoMessage()
func (*IdReq) ProtoReflect ¶
func (x *IdReq) ProtoReflect() protoreflect.Message
type LoginReq ¶
type LoginReq struct { // 用户名 Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"` // 密码 Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` // contains filtered or unexported fields }
请求-管理员登录
func (*LoginReq) Descriptor
deprecated
func (*LoginReq) GetPassword ¶
func (*LoginReq) GetUsername ¶
func (*LoginReq) ProtoMessage ¶
func (*LoginReq) ProtoMessage()
func (*LoginReq) ProtoReflect ¶
func (x *LoginReq) ProtoReflect() protoreflect.Message
type LoginRes ¶
type LoginRes struct { // token Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` // contains filtered or unexported fields }
响应-管理员登录Token
func (*LoginRes) Descriptor
deprecated
func (*LoginRes) ProtoMessage ¶
func (*LoginRes) ProtoMessage()
func (*LoginRes) ProtoReflect ¶
func (x *LoginRes) ProtoReflect() protoreflect.Message
type Menu ¶
type Menu struct { // 主键id Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // 父级id ParentId int64 `protobuf:"varint,2,opt,name=parent_id,json=parentId,proto3" json:"parent_id,omitempty"` // 前端路径 Path string `protobuf:"bytes,3,opt,name=path,proto3" json:"path,omitempty"` // 菜单名 Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"` // 是否隐藏 Hidden bool `protobuf:"varint,5,opt,name=hidden,proto3" json:"hidden,omitempty"` // 前端文件路径 Component string `protobuf:"bytes,6,opt,name=component,proto3" json:"component,omitempty"` // 排序 Sort int64 `protobuf:"varint,7,opt,name=sort,proto3" json:"sort,omitempty"` // 页面名称 Title string `protobuf:"bytes,8,opt,name=title,proto3" json:"title,omitempty"` // 菜单图标 Icon string `protobuf:"bytes,9,opt,name=icon,proto3" json:"icon,omitempty"` // 创建时间 CreatedAt string `protobuf:"bytes,10,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` // 更新时间 UpdatedAt string `protobuf:"bytes,11,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` // 子菜单 Children []*Menu `protobuf:"bytes,12,rep,name=children,proto3" json:"children,omitempty"` // 菜单按钮列表 MenuBtns []*MenuBtn `protobuf:"bytes,13,rep,name=menuBtns,proto3" json:"menuBtns,omitempty"` // 父级id字符串 英文逗号分割 ParentIds string `protobuf:"bytes,14,opt,name=parent_ids,json=parentIds,proto3" json:"parent_ids,omitempty"` // contains filtered or unexported fields }
响应 - 菜单详情
func (*Menu) Descriptor
deprecated
func (*Menu) GetChildren ¶
func (*Menu) GetComponent ¶
func (*Menu) GetCreatedAt ¶
func (*Menu) GetMenuBtns ¶
func (*Menu) GetParentId ¶
func (*Menu) GetParentIds ¶
func (*Menu) GetUpdatedAt ¶
func (*Menu) ProtoMessage ¶
func (*Menu) ProtoMessage()
func (*Menu) ProtoReflect ¶
func (x *Menu) ProtoReflect() protoreflect.Message
type MenuBtn ¶
type MenuBtn struct { // 主键id Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // 菜单id MenuId int64 `protobuf:"varint,2,opt,name=menu_id,json=menuId,proto3" json:"menu_id,omitempty"` // 按钮名称 Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` // 描述 Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"` // 英文标识 Identifier string `protobuf:"bytes,5,opt,name=identifier,proto3" json:"identifier,omitempty"` // 创建时间 CreatedAt string `protobuf:"bytes,6,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` // 更新时间 UpdatedAt string `protobuf:"bytes,7,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` // contains filtered or unexported fields }
响应 - 菜单按钮详情
func (*MenuBtn) Descriptor
deprecated
func (*MenuBtn) GetCreatedAt ¶
func (*MenuBtn) GetDescription ¶
func (*MenuBtn) GetIdentifier ¶
func (*MenuBtn) GetUpdatedAt ¶
func (*MenuBtn) ProtoMessage ¶
func (*MenuBtn) ProtoMessage()
func (*MenuBtn) ProtoReflect ¶
func (x *MenuBtn) ProtoReflect() protoreflect.Message
type OssStsTokenResponse ¶
type OssStsTokenResponse struct { // access_key AccessKey string `protobuf:"bytes,1,opt,name=access_key,json=accessKey,proto3" json:"access_key,omitempty"` // access_secret AccessSecret string `protobuf:"bytes,2,opt,name=access_secret,json=accessSecret,proto3" json:"access_secret,omitempty"` // 过期时间 Expiration string `protobuf:"bytes,3,opt,name=expiration,proto3" json:"expiration,omitempty"` // 安全令牌 SecurityToken string `protobuf:"bytes,4,opt,name=security_token,json=securityToken,proto3" json:"security_token,omitempty"` // 终端 EndPoint string `protobuf:"bytes,5,opt,name=end_point,json=endPoint,proto3" json:"end_point,omitempty"` // 存储桶 BucketName string `protobuf:"bytes,6,opt,name=bucket_name,json=bucketName,proto3" json:"bucket_name,omitempty"` // 区域 Region string `protobuf:"bytes,7,opt,name=region,proto3" json:"region,omitempty"` // url Url string `protobuf:"bytes,8,opt,name=url,proto3" json:"url,omitempty"` // contains filtered or unexported fields }
响应 - OSS前端直传信息
func (*OssStsTokenResponse) Descriptor
deprecated
func (*OssStsTokenResponse) Descriptor() ([]byte, []int)
Deprecated: Use OssStsTokenResponse.ProtoReflect.Descriptor instead.
func (*OssStsTokenResponse) GetAccessKey ¶
func (x *OssStsTokenResponse) GetAccessKey() string
func (*OssStsTokenResponse) GetAccessSecret ¶
func (x *OssStsTokenResponse) GetAccessSecret() string
func (*OssStsTokenResponse) GetBucketName ¶
func (x *OssStsTokenResponse) GetBucketName() string
func (*OssStsTokenResponse) GetEndPoint ¶
func (x *OssStsTokenResponse) GetEndPoint() string
func (*OssStsTokenResponse) GetExpiration ¶
func (x *OssStsTokenResponse) GetExpiration() string
func (*OssStsTokenResponse) GetRegion ¶
func (x *OssStsTokenResponse) GetRegion() string
func (*OssStsTokenResponse) GetSecurityToken ¶
func (x *OssStsTokenResponse) GetSecurityToken() string
func (*OssStsTokenResponse) GetUrl ¶
func (x *OssStsTokenResponse) GetUrl() string
func (*OssStsTokenResponse) ProtoMessage ¶
func (*OssStsTokenResponse) ProtoMessage()
func (*OssStsTokenResponse) ProtoReflect ¶
func (x *OssStsTokenResponse) ProtoReflect() protoreflect.Message
func (*OssStsTokenResponse) Reset ¶
func (x *OssStsTokenResponse) Reset()
func (*OssStsTokenResponse) String ¶
func (x *OssStsTokenResponse) String() string
type PolicyRules ¶
type PolicyRules struct { // operation路径 Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` // 请求方式 Method string `protobuf:"bytes,2,opt,name=method,proto3" json:"method,omitempty"` // contains filtered or unexported fields }
响应 - 权限策略
func (*PolicyRules) Descriptor
deprecated
func (*PolicyRules) Descriptor() ([]byte, []int)
Deprecated: Use PolicyRules.ProtoReflect.Descriptor instead.
func (*PolicyRules) GetMethod ¶
func (x *PolicyRules) GetMethod() string
func (*PolicyRules) GetPath ¶
func (x *PolicyRules) GetPath() string
func (*PolicyRules) ProtoMessage ¶
func (*PolicyRules) ProtoMessage()
func (*PolicyRules) ProtoReflect ¶
func (x *PolicyRules) ProtoReflect() protoreflect.Message
func (*PolicyRules) Reset ¶
func (x *PolicyRules) Reset()
func (*PolicyRules) String ¶
func (x *PolicyRules) String() string
type Role ¶
type Role struct { // 主键id Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // 名称 Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` CreatedAt string `protobuf:"bytes,4,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` // 更新时间 UpdatedAt string `protobuf:"bytes,5,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` // contains filtered or unexported fields }
响应 - 角色信息
func (*Role) Descriptor
deprecated
func (*Role) GetCreatedAt ¶
func (*Role) GetUpdatedAt ¶
func (*Role) ProtoMessage ¶
func (*Role) ProtoMessage()
func (*Role) ProtoReflect ¶
func (x *Role) ProtoReflect() protoreflect.Message
type RoleNameReq ¶
type RoleNameReq struct { Role string `protobuf:"bytes,1,opt,name=role,proto3" json:"role,omitempty"` // contains filtered or unexported fields }
请求 - 角色名称
func (*RoleNameReq) Descriptor
deprecated
func (*RoleNameReq) Descriptor() ([]byte, []int)
Deprecated: Use RoleNameReq.ProtoReflect.Descriptor instead.
func (*RoleNameReq) GetRole ¶
func (x *RoleNameReq) GetRole() string
func (*RoleNameReq) ProtoMessage ¶
func (*RoleNameReq) ProtoMessage()
func (*RoleNameReq) ProtoReflect ¶
func (x *RoleNameReq) ProtoReflect() protoreflect.Message
func (*RoleNameReq) Reset ¶
func (x *RoleNameReq) Reset()
func (*RoleNameReq) String ¶
func (x *RoleNameReq) String() string
type SetRoleMenuBtnReq ¶
type SetRoleMenuBtnReq struct { // 角色id RoleId int64 `protobuf:"varint,1,opt,name=role_id,json=roleId,proto3" json:"role_id,omitempty"` // 菜单id MenuId int64 `protobuf:"varint,2,opt,name=menu_id,json=menuId,proto3" json:"menu_id,omitempty"` // 按钮id数组 MenuBtnIds []int64 `protobuf:"varint,3,rep,packed,name=menu_btn_ids,json=menuBtnIds,proto3" json:"menu_btn_ids,omitempty"` // contains filtered or unexported fields }
请求 - 角色菜单按钮保存
func (*SetRoleMenuBtnReq) Descriptor
deprecated
func (*SetRoleMenuBtnReq) Descriptor() ([]byte, []int)
Deprecated: Use SetRoleMenuBtnReq.ProtoReflect.Descriptor instead.
func (*SetRoleMenuBtnReq) GetMenuBtnIds ¶
func (x *SetRoleMenuBtnReq) GetMenuBtnIds() []int64
func (*SetRoleMenuBtnReq) GetMenuId ¶
func (x *SetRoleMenuBtnReq) GetMenuId() int64
func (*SetRoleMenuBtnReq) GetRoleId ¶
func (x *SetRoleMenuBtnReq) GetRoleId() int64
func (*SetRoleMenuBtnReq) ProtoMessage ¶
func (*SetRoleMenuBtnReq) ProtoMessage()
func (*SetRoleMenuBtnReq) ProtoReflect ¶
func (x *SetRoleMenuBtnReq) ProtoReflect() protoreflect.Message
func (*SetRoleMenuBtnReq) Reset ¶
func (x *SetRoleMenuBtnReq) Reset()
func (*SetRoleMenuBtnReq) String ¶
func (x *SetRoleMenuBtnReq) String() string
type SetRoleMenuReq ¶
type SetRoleMenuReq struct { // 角色id RoleId int64 `protobuf:"varint,1,opt,name=role_id,json=roleId,proto3" json:"role_id,omitempty"` // 菜单id数组 MenuIds []int64 `protobuf:"varint,2,rep,packed,name=menu_ids,json=menuIds,proto3" json:"menu_ids,omitempty"` // contains filtered or unexported fields }
请求 - 设置角色菜单
func (*SetRoleMenuReq) Descriptor
deprecated
func (*SetRoleMenuReq) Descriptor() ([]byte, []int)
Deprecated: Use SetRoleMenuReq.ProtoReflect.Descriptor instead.
func (*SetRoleMenuReq) GetMenuIds ¶
func (x *SetRoleMenuReq) GetMenuIds() []int64
func (*SetRoleMenuReq) GetRoleId ¶
func (x *SetRoleMenuReq) GetRoleId() int64
func (*SetRoleMenuReq) ProtoMessage ¶
func (*SetRoleMenuReq) ProtoMessage()
func (*SetRoleMenuReq) ProtoReflect ¶
func (x *SetRoleMenuReq) ProtoReflect() protoreflect.Message
func (*SetRoleMenuReq) Reset ¶
func (x *SetRoleMenuReq) Reset()
func (*SetRoleMenuReq) String ¶
func (x *SetRoleMenuReq) String() string
type SetRolesForUserReq ¶
type SetRolesForUserReq struct { // 用户名 Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"` // 角色数组 Roles []string `protobuf:"bytes,2,rep,name=roles,proto3" json:"roles,omitempty"` // contains filtered or unexported fields }
请求 - 设置用户角色
func (*SetRolesForUserReq) Descriptor
deprecated
func (*SetRolesForUserReq) Descriptor() ([]byte, []int)
Deprecated: Use SetRolesForUserReq.ProtoReflect.Descriptor instead.
func (*SetRolesForUserReq) GetRoles ¶
func (x *SetRolesForUserReq) GetRoles() []string
func (*SetRolesForUserReq) GetUsername ¶
func (x *SetRolesForUserReq) GetUsername() string
func (*SetRolesForUserReq) ProtoMessage ¶
func (*SetRolesForUserReq) ProtoMessage()
func (*SetRolesForUserReq) ProtoReflect ¶
func (x *SetRolesForUserReq) ProtoReflect() protoreflect.Message
func (*SetRolesForUserReq) Reset ¶
func (x *SetRolesForUserReq) Reset()
func (*SetRolesForUserReq) String ¶
func (x *SetRolesForUserReq) String() string
type UnimplementedAdminServer ¶
type UnimplementedAdminServer struct{}
UnimplementedAdminServer must be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedAdminServer) ApproveAdministrator ¶
func (UnimplementedAdminServer) CreateAdministrator ¶
func (UnimplementedAdminServer) CreateAdministrator(context.Context, *CreateBffAdminReq) (*BffAdmin, error)
func (UnimplementedAdminServer) CreateApi ¶
func (UnimplementedAdminServer) CreateApi(context.Context, *CreateApiReq) (*Api, error)
func (UnimplementedAdminServer) CreateMenu ¶
func (UnimplementedAdminServer) CreateMenu(context.Context, *CreateMenuReq) (*Menu, error)
func (UnimplementedAdminServer) CreateRole ¶
func (UnimplementedAdminServer) CreateRole(context.Context, *CreateRoleReq) (*Role, error)
func (UnimplementedAdminServer) DeleteAdministrator ¶
func (UnimplementedAdminServer) DeleteMenu ¶
func (UnimplementedAdminServer) DeleteRole ¶
func (UnimplementedAdminServer) DeleteRoleForUser ¶
func (UnimplementedAdminServer) DeleteRoleForUser(context.Context, *DeleteRoleForUserReq) (*emptypb.Empty, error)
func (UnimplementedAdminServer) DeleteRolesForUser ¶
func (UnimplementedAdminServer) DeleteRolesForUser(context.Context, *DeleteRolesForUserReq) (*emptypb.Empty, error)
func (UnimplementedAdminServer) ForbidAdministrator ¶
func (UnimplementedAdminServer) GetAdministrator ¶
func (UnimplementedAdminServer) GetAdministratorInfo ¶
func (UnimplementedAdminServer) GetAdministratorList ¶
func (UnimplementedAdminServer) GetAdministratorList(context.Context, *GetBffAdminListReq) (*GetBffAdminListPageRes, error)
func (UnimplementedAdminServer) GetApiAll ¶
func (UnimplementedAdminServer) GetApiAll(context.Context, *emptypb.Empty) (*GetApiAllRes, error)
func (UnimplementedAdminServer) GetApiList ¶
func (UnimplementedAdminServer) GetApiList(context.Context, *GetApiListReq) (*GetApiListRes, error)
func (UnimplementedAdminServer) GetApiLogList ¶
func (UnimplementedAdminServer) GetApiLogList(context.Context, *GetApiLogListReq) (*GetApiLogListRes, error)
func (UnimplementedAdminServer) GetMenuAll ¶
func (UnimplementedAdminServer) GetMenuAll(context.Context, *emptypb.Empty) (*GetMenuTreeRes, error)
func (UnimplementedAdminServer) GetMenuTree ¶
func (UnimplementedAdminServer) GetMenuTree(context.Context, *emptypb.Empty) (*GetMenuTreeRes, error)
func (UnimplementedAdminServer) GetOssStsToken ¶
func (UnimplementedAdminServer) GetOssStsToken(context.Context, *emptypb.Empty) (*OssStsTokenResponse, error)
func (UnimplementedAdminServer) GetPolicies ¶
func (UnimplementedAdminServer) GetPolicies(context.Context, *RoleNameReq) (*GetPoliciesRes, error)
func (UnimplementedAdminServer) GetRoleAll ¶
func (UnimplementedAdminServer) GetRoleAll(context.Context, *emptypb.Empty) (*GetRoleAllRes, error)
func (UnimplementedAdminServer) GetRoleMenu ¶
func (UnimplementedAdminServer) GetRoleMenu(context.Context, *RoleNameReq) (*GetMenuTreeRes, error)
func (UnimplementedAdminServer) GetRoleMenuBtn ¶
func (UnimplementedAdminServer) GetRoleMenuBtn(context.Context, *GetRoleMenuBtnReq) (*GetRoleMenuBtnRes, error)
func (UnimplementedAdminServer) GetRoleMenuTree ¶
func (UnimplementedAdminServer) GetRoleMenuTree(context.Context, *RoleNameReq) (*GetMenuTreeRes, error)
func (UnimplementedAdminServer) GetRolesForUser ¶
func (UnimplementedAdminServer) GetRolesForUser(context.Context, *GetRolesForUserReq) (*GetRolesForUserRes, error)
func (UnimplementedAdminServer) GetUsersForRole ¶
func (UnimplementedAdminServer) GetUsersForRole(context.Context, *RoleNameReq) (*GetUsersForRoleRes, error)
func (UnimplementedAdminServer) RecoverAdministrator ¶
func (UnimplementedAdminServer) SetRoleMenu ¶
func (UnimplementedAdminServer) SetRoleMenu(context.Context, *SetRoleMenuReq) (*emptypb.Empty, error)
func (UnimplementedAdminServer) SetRoleMenuBtn ¶
func (UnimplementedAdminServer) SetRoleMenuBtn(context.Context, *SetRoleMenuBtnReq) (*emptypb.Empty, error)
func (UnimplementedAdminServer) SetRolesForUser ¶
func (UnimplementedAdminServer) SetRolesForUser(context.Context, *SetRolesForUserReq) (*emptypb.Empty, error)
func (UnimplementedAdminServer) UpdateAdministrator ¶
func (UnimplementedAdminServer) UpdateAdministrator(context.Context, *UpdateBffAdminReq) (*emptypb.Empty, error)
func (UnimplementedAdminServer) UpdateApi ¶
func (UnimplementedAdminServer) UpdateApi(context.Context, *UpdateApiReq) (*emptypb.Empty, error)
func (UnimplementedAdminServer) UpdateMenu ¶
func (UnimplementedAdminServer) UpdateMenu(context.Context, *UpdateMenuReq) (*emptypb.Empty, error)
func (UnimplementedAdminServer) UpdatePolicies ¶
func (UnimplementedAdminServer) UpdatePolicies(context.Context, *UpdatePoliciesReq) (*emptypb.Empty, error)
func (UnimplementedAdminServer) UpdateRole ¶
func (UnimplementedAdminServer) UpdateRole(context.Context, *UpdateRoleReq) (*emptypb.Empty, error)
type UnsafeAdminServer ¶
type UnsafeAdminServer interface {
// contains filtered or unexported methods
}
UnsafeAdminServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AdminServer will result in compilation errors.
type UpdateApiReq ¶
type UpdateApiReq struct { // 主键id Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // 名称 Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // 分组 Group string `protobuf:"bytes,3,opt,name=group,proto3" json:"group,omitempty"` // 请求方式 Method string `protobuf:"bytes,4,opt,name=method,proto3" json:"method,omitempty"` // 请求路径 Path string `protobuf:"bytes,5,opt,name=path,proto3" json:"path,omitempty"` // contains filtered or unexported fields }
请求 - API更新
func (*UpdateApiReq) Descriptor
deprecated
func (*UpdateApiReq) Descriptor() ([]byte, []int)
Deprecated: Use UpdateApiReq.ProtoReflect.Descriptor instead.
func (*UpdateApiReq) GetGroup ¶
func (x *UpdateApiReq) GetGroup() string
func (*UpdateApiReq) GetId ¶
func (x *UpdateApiReq) GetId() int64
func (*UpdateApiReq) GetMethod ¶
func (x *UpdateApiReq) GetMethod() string
func (*UpdateApiReq) GetName ¶
func (x *UpdateApiReq) GetName() string
func (*UpdateApiReq) GetPath ¶
func (x *UpdateApiReq) GetPath() string
func (*UpdateApiReq) ProtoMessage ¶
func (*UpdateApiReq) ProtoMessage()
func (*UpdateApiReq) ProtoReflect ¶
func (x *UpdateApiReq) ProtoReflect() protoreflect.Message
func (*UpdateApiReq) Reset ¶
func (x *UpdateApiReq) Reset()
func (*UpdateApiReq) String ¶
func (x *UpdateApiReq) String() string
type UpdateBffAdminReq ¶
type UpdateBffAdminReq struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // 用户名 Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"` // 密码 Password string `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"` // 手机号 Mobile string `protobuf:"bytes,4,opt,name=mobile,proto3" json:"mobile,omitempty"` // 昵称 Nickname string `protobuf:"bytes,5,opt,name=nickname,proto3" json:"nickname,omitempty"` // 头像 Avatar string `protobuf:"bytes,6,opt,name=avatar,proto3" json:"avatar,omitempty"` // 状态 true正常 false冻结 Status bool `protobuf:"varint,7,opt,name=status,proto3" json:"status,omitempty"` // 当前角色数组,默认第一个为当前角色 Role []string `protobuf:"bytes,8,rep,name=role,proto3" json:"role,omitempty"` // contains filtered or unexported fields }
请求 - 管理员更新
func (*UpdateBffAdminReq) Descriptor
deprecated
func (*UpdateBffAdminReq) Descriptor() ([]byte, []int)
Deprecated: Use UpdateBffAdminReq.ProtoReflect.Descriptor instead.
func (*UpdateBffAdminReq) GetAvatar ¶
func (x *UpdateBffAdminReq) GetAvatar() string
func (*UpdateBffAdminReq) GetId ¶
func (x *UpdateBffAdminReq) GetId() int64
func (*UpdateBffAdminReq) GetMobile ¶
func (x *UpdateBffAdminReq) GetMobile() string
func (*UpdateBffAdminReq) GetNickname ¶
func (x *UpdateBffAdminReq) GetNickname() string
func (*UpdateBffAdminReq) GetPassword ¶
func (x *UpdateBffAdminReq) GetPassword() string
func (*UpdateBffAdminReq) GetRole ¶
func (x *UpdateBffAdminReq) GetRole() []string
func (*UpdateBffAdminReq) GetStatus ¶
func (x *UpdateBffAdminReq) GetStatus() bool
func (*UpdateBffAdminReq) GetUsername ¶
func (x *UpdateBffAdminReq) GetUsername() string
func (*UpdateBffAdminReq) ProtoMessage ¶
func (*UpdateBffAdminReq) ProtoMessage()
func (*UpdateBffAdminReq) ProtoReflect ¶
func (x *UpdateBffAdminReq) ProtoReflect() protoreflect.Message
func (*UpdateBffAdminReq) Reset ¶
func (x *UpdateBffAdminReq) Reset()
func (*UpdateBffAdminReq) String ¶
func (x *UpdateBffAdminReq) String() string
type UpdateMenuReq ¶
type UpdateMenuReq struct { // 主键id Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // 父级id ParentId int64 `protobuf:"varint,2,opt,name=parent_id,json=parentId,proto3" json:"parent_id,omitempty"` // 前端路径 Path string `protobuf:"bytes,3,opt,name=path,proto3" json:"path,omitempty"` // 菜单名 Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"` // 是否隐藏 Hidden bool `protobuf:"varint,5,opt,name=hidden,proto3" json:"hidden,omitempty"` // 前端文件路径 Component string `protobuf:"bytes,6,opt,name=component,proto3" json:"component,omitempty"` // 排序 Sort int64 `protobuf:"varint,7,opt,name=sort,proto3" json:"sort,omitempty"` // 页面名称 Title string `protobuf:"bytes,8,opt,name=title,proto3" json:"title,omitempty"` // 菜单图标 Icon string `protobuf:"bytes,9,opt,name=icon,proto3" json:"icon,omitempty"` // 菜单按钮列表 MenuBtns []*MenuBtn `protobuf:"bytes,13,rep,name=menuBtns,proto3" json:"menuBtns,omitempty"` // 父级id字符串 英文逗号分割 ParentIds string `protobuf:"bytes,14,opt,name=parent_ids,json=parentIds,proto3" json:"parent_ids,omitempty"` // contains filtered or unexported fields }
请求 - 菜单更新
func (*UpdateMenuReq) Descriptor
deprecated
func (*UpdateMenuReq) Descriptor() ([]byte, []int)
Deprecated: Use UpdateMenuReq.ProtoReflect.Descriptor instead.
func (*UpdateMenuReq) GetComponent ¶
func (x *UpdateMenuReq) GetComponent() string
func (*UpdateMenuReq) GetHidden ¶
func (x *UpdateMenuReq) GetHidden() bool
func (*UpdateMenuReq) GetIcon ¶
func (x *UpdateMenuReq) GetIcon() string
func (*UpdateMenuReq) GetId ¶
func (x *UpdateMenuReq) GetId() int64
func (*UpdateMenuReq) GetMenuBtns ¶
func (x *UpdateMenuReq) GetMenuBtns() []*MenuBtn
func (*UpdateMenuReq) GetName ¶
func (x *UpdateMenuReq) GetName() string
func (*UpdateMenuReq) GetParentId ¶
func (x *UpdateMenuReq) GetParentId() int64
func (*UpdateMenuReq) GetParentIds ¶
func (x *UpdateMenuReq) GetParentIds() string
func (*UpdateMenuReq) GetPath ¶
func (x *UpdateMenuReq) GetPath() string
func (*UpdateMenuReq) GetSort ¶
func (x *UpdateMenuReq) GetSort() int64
func (*UpdateMenuReq) GetTitle ¶
func (x *UpdateMenuReq) GetTitle() string
func (*UpdateMenuReq) ProtoMessage ¶
func (*UpdateMenuReq) ProtoMessage()
func (*UpdateMenuReq) ProtoReflect ¶
func (x *UpdateMenuReq) ProtoReflect() protoreflect.Message
func (*UpdateMenuReq) Reset ¶
func (x *UpdateMenuReq) Reset()
func (*UpdateMenuReq) String ¶
func (x *UpdateMenuReq) String() string
type UpdatePoliciesReq ¶
type UpdatePoliciesReq struct { // 角色名 Role string `protobuf:"bytes,1,opt,name=role,proto3" json:"role,omitempty"` // 权限策略 PolicyRules []*PolicyRules `protobuf:"bytes,2,rep,name=policyRules,proto3" json:"policyRules,omitempty"` // contains filtered or unexported fields }
请求 - 权限策略更新
func (*UpdatePoliciesReq) Descriptor
deprecated
func (*UpdatePoliciesReq) Descriptor() ([]byte, []int)
Deprecated: Use UpdatePoliciesReq.ProtoReflect.Descriptor instead.
func (*UpdatePoliciesReq) GetPolicyRules ¶
func (x *UpdatePoliciesReq) GetPolicyRules() []*PolicyRules
func (*UpdatePoliciesReq) GetRole ¶
func (x *UpdatePoliciesReq) GetRole() string
func (*UpdatePoliciesReq) ProtoMessage ¶
func (*UpdatePoliciesReq) ProtoMessage()
func (*UpdatePoliciesReq) ProtoReflect ¶
func (x *UpdatePoliciesReq) ProtoReflect() protoreflect.Message
func (*UpdatePoliciesReq) Reset ¶
func (x *UpdatePoliciesReq) Reset()
func (*UpdatePoliciesReq) String ¶
func (x *UpdatePoliciesReq) String() string
type UpdateRoleReq ¶
type UpdateRoleReq struct { // 主键id Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // 名称 Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
请求 - 角色更新
func (*UpdateRoleReq) Descriptor
deprecated
func (*UpdateRoleReq) Descriptor() ([]byte, []int)
Deprecated: Use UpdateRoleReq.ProtoReflect.Descriptor instead.
func (*UpdateRoleReq) GetId ¶
func (x *UpdateRoleReq) GetId() int64
func (*UpdateRoleReq) GetName ¶
func (x *UpdateRoleReq) GetName() string
func (*UpdateRoleReq) ProtoMessage ¶
func (*UpdateRoleReq) ProtoMessage()
func (*UpdateRoleReq) ProtoReflect ¶
func (x *UpdateRoleReq) ProtoReflect() protoreflect.Message
func (*UpdateRoleReq) Reset ¶
func (x *UpdateRoleReq) Reset()
func (*UpdateRoleReq) String ¶
func (x *UpdateRoleReq) String() string
type UploadFileRequest ¶
type UploadFileRequest struct { FileName string `protobuf:"bytes,1,opt,name=file_name,json=fileName,proto3" json:"file_name,omitempty"` FileType string `protobuf:"bytes,2,opt,name=file_type,json=fileType,proto3" json:"file_type,omitempty"` Content []byte `protobuf:"bytes,3,opt,name=content,proto3" json:"content,omitempty"` // contains filtered or unexported fields }
请求 - 文件上传
func (*UploadFileRequest) Descriptor
deprecated
func (*UploadFileRequest) Descriptor() ([]byte, []int)
Deprecated: Use UploadFileRequest.ProtoReflect.Descriptor instead.
func (*UploadFileRequest) GetContent ¶
func (x *UploadFileRequest) GetContent() []byte
func (*UploadFileRequest) GetFileName ¶
func (x *UploadFileRequest) GetFileName() string
func (*UploadFileRequest) GetFileType ¶
func (x *UploadFileRequest) GetFileType() string
func (*UploadFileRequest) ProtoMessage ¶
func (*UploadFileRequest) ProtoMessage()
func (*UploadFileRequest) ProtoReflect ¶
func (x *UploadFileRequest) ProtoReflect() protoreflect.Message
func (*UploadFileRequest) Reset ¶
func (x *UploadFileRequest) Reset()
func (*UploadFileRequest) String ¶
func (x *UploadFileRequest) String() string
type UploadFileResponse ¶
type UploadFileResponse struct { Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"` // contains filtered or unexported fields }
响应 - 文件上传url
func (*UploadFileResponse) Descriptor
deprecated
func (*UploadFileResponse) Descriptor() ([]byte, []int)
Deprecated: Use UploadFileResponse.ProtoReflect.Descriptor instead.
func (*UploadFileResponse) GetUrl ¶
func (x *UploadFileResponse) GetUrl() string
func (*UploadFileResponse) ProtoMessage ¶
func (*UploadFileResponse) ProtoMessage()
func (*UploadFileResponse) ProtoReflect ¶
func (x *UploadFileResponse) ProtoReflect() protoreflect.Message
func (*UploadFileResponse) Reset ¶
func (x *UploadFileResponse) Reset()
func (*UploadFileResponse) String ¶
func (x *UploadFileResponse) String() string
type Wallet ¶
type Wallet struct { // 主键id Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // 用户id UserId int64 `protobuf:"varint,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // 状态 Status bool `protobuf:"varint,3,opt,name=status,proto3" json:"status,omitempty"` // 创建时间 CreatedAt string `protobuf:"bytes,4,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` // 更新时间 UpdatedAt string `protobuf:"bytes,5,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` // 删除时间 DeletedAt string `protobuf:"bytes,6,opt,name=deleted_at,json=deletedAt,proto3" json:"deleted_at,omitempty"` // 余额 Balance float32 `protobuf:"fixed32,7,opt,name=balance,proto3" json:"balance,omitempty"` // 冻结金额 FrozenAmount float32 `protobuf:"fixed32,8,opt,name=frozen_amount,json=frozenAmount,proto3" json:"frozen_amount,omitempty"` // contains filtered or unexported fields }
响应 - 钱包信息
func (*Wallet) Descriptor
deprecated
func (*Wallet) GetBalance ¶
func (*Wallet) GetCreatedAt ¶
func (*Wallet) GetDeletedAt ¶
func (*Wallet) GetFrozenAmount ¶
func (*Wallet) GetUpdatedAt ¶
func (*Wallet) ProtoMessage ¶
func (*Wallet) ProtoMessage()
func (*Wallet) ProtoReflect ¶
func (x *Wallet) ProtoReflect() protoreflect.Message