Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterAuthHTTPServer(s *http.Server, srv AuthHTTPServer)
- func RegisterAuthServer(s grpc.ServiceRegistrar, srv AuthServer)
- type Action
- func (*Action) Descriptor() ([]byte, []int)deprecated
- func (x *Action) GetBtn() string
- func (x *Action) GetCode() string
- func (x *Action) GetId() uint64
- func (x *Action) GetMenu() string
- func (x *Action) GetName() string
- func (x *Action) GetResource() string
- func (x *Action) GetWord() string
- func (*Action) ProtoMessage()
- func (x *Action) ProtoReflect() protoreflect.Message
- func (x *Action) Reset()
- func (x *Action) String() string
- func (m *Action) Validate() error
- func (m *Action) ValidateAll() error
- type ActionMultiError
- type ActionValidationError
- type AuthClient
- type AuthHTTPClient
- type AuthHTTPClientImpl
- func (c *AuthHTTPClientImpl) Captcha(ctx context.Context, in *emptypb.Empty, opts ...http.CallOption) (*CaptchaReply, error)
- func (c *AuthHTTPClientImpl) CreateAction(ctx context.Context, in *CreateActionRequest, opts ...http.CallOption) (*emptypb.Empty, error)
- func (c *AuthHTTPClientImpl) CreateRole(ctx context.Context, in *CreateRoleRequest, opts ...http.CallOption) (*emptypb.Empty, error)
- func (c *AuthHTTPClientImpl) CreateUserGroup(ctx context.Context, in *CreateUserGroupRequest, opts ...http.CallOption) (*emptypb.Empty, error)
- func (c *AuthHTTPClientImpl) DeleteAction(ctx context.Context, in *IdsRequest, opts ...http.CallOption) (*emptypb.Empty, error)
- func (c *AuthHTTPClientImpl) DeleteRole(ctx context.Context, in *IdsRequest, opts ...http.CallOption) (*emptypb.Empty, error)
- func (c *AuthHTTPClientImpl) DeleteUser(ctx context.Context, in *IdsRequest, opts ...http.CallOption) (*emptypb.Empty, error)
- func (c *AuthHTTPClientImpl) DeleteUserGroup(ctx context.Context, in *IdsRequest, opts ...http.CallOption) (*emptypb.Empty, error)
- func (c *AuthHTTPClientImpl) FindAction(ctx context.Context, in *FindActionRequest, opts ...http.CallOption) (*FindActionReply, error)
- func (c *AuthHTTPClientImpl) FindRole(ctx context.Context, in *FindRoleRequest, opts ...http.CallOption) (*FindRoleReply, error)
- func (c *AuthHTTPClientImpl) FindUser(ctx context.Context, in *FindUserRequest, opts ...http.CallOption) (*FindUserReply, error)
- func (c *AuthHTTPClientImpl) FindUserGroup(ctx context.Context, in *FindUserGroupRequest, opts ...http.CallOption) (*FindUserGroupReply, error)
- func (c *AuthHTTPClientImpl) Idempotent(ctx context.Context, in *emptypb.Empty, opts ...http.CallOption) (*IdempotentReply, error)
- func (c *AuthHTTPClientImpl) Info(ctx context.Context, in *emptypb.Empty, opts ...http.CallOption) (*InfoReply, error)
- func (c *AuthHTTPClientImpl) Login(ctx context.Context, in *LoginRequest, opts ...http.CallOption) (*LoginReply, error)
- func (c *AuthHTTPClientImpl) Logout(ctx context.Context, in *emptypb.Empty, opts ...http.CallOption) (*emptypb.Empty, error)
- func (c *AuthHTTPClientImpl) Pwd(ctx context.Context, in *PwdRequest, opts ...http.CallOption) (*emptypb.Empty, error)
- func (c *AuthHTTPClientImpl) Refresh(ctx context.Context, in *RefreshRequest, opts ...http.CallOption) (*LoginReply, error)
- func (c *AuthHTTPClientImpl) Register(ctx context.Context, in *RegisterRequest, opts ...http.CallOption) (*emptypb.Empty, error)
- func (c *AuthHTTPClientImpl) Status(ctx context.Context, in *StatusRequest, opts ...http.CallOption) (*StatusReply, error)
- func (c *AuthHTTPClientImpl) UpdateAction(ctx context.Context, in *UpdateActionRequest, opts ...http.CallOption) (*emptypb.Empty, error)
- func (c *AuthHTTPClientImpl) UpdateRole(ctx context.Context, in *UpdateRoleRequest, opts ...http.CallOption) (*emptypb.Empty, error)
- func (c *AuthHTTPClientImpl) UpdateUser(ctx context.Context, in *UpdateUserRequest, opts ...http.CallOption) (*emptypb.Empty, error)
- func (c *AuthHTTPClientImpl) UpdateUserGroup(ctx context.Context, in *UpdateUserGroupRequest, opts ...http.CallOption) (*emptypb.Empty, error)
- type AuthHTTPServer
- type AuthServer
- type Captcha
- func (*Captcha) Descriptor() ([]byte, []int)deprecated
- func (x *Captcha) GetId() string
- func (x *Captcha) GetImg() string
- func (*Captcha) ProtoMessage()
- func (x *Captcha) ProtoReflect() protoreflect.Message
- func (x *Captcha) Reset()
- func (x *Captcha) String() string
- func (m *Captcha) Validate() error
- func (m *Captcha) ValidateAll() error
- type CaptchaMultiError
- type CaptchaReply
- func (*CaptchaReply) Descriptor() ([]byte, []int)deprecated
- func (x *CaptchaReply) GetCaptcha() *Captcha
- func (*CaptchaReply) ProtoMessage()
- func (x *CaptchaReply) ProtoReflect() protoreflect.Message
- func (x *CaptchaReply) Reset()
- func (x *CaptchaReply) String() string
- func (m *CaptchaReply) Validate() error
- func (m *CaptchaReply) ValidateAll() error
- type CaptchaReplyMultiError
- type CaptchaReplyValidationError
- func (e CaptchaReplyValidationError) Cause() error
- func (e CaptchaReplyValidationError) Error() string
- func (e CaptchaReplyValidationError) ErrorName() string
- func (e CaptchaReplyValidationError) Field() string
- func (e CaptchaReplyValidationError) Key() bool
- func (e CaptchaReplyValidationError) Reason() string
- type CaptchaValidationError
- type CreateActionRequest
- func (*CreateActionRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateActionRequest) GetBtn() string
- func (x *CreateActionRequest) GetMenu() string
- func (x *CreateActionRequest) GetName() string
- func (x *CreateActionRequest) GetResource() string
- func (x *CreateActionRequest) GetWord() string
- func (*CreateActionRequest) ProtoMessage()
- func (x *CreateActionRequest) ProtoReflect() protoreflect.Message
- func (x *CreateActionRequest) Reset()
- func (x *CreateActionRequest) String() string
- func (m *CreateActionRequest) Validate() error
- func (m *CreateActionRequest) ValidateAll() error
- type CreateActionRequestMultiError
- type CreateActionRequestValidationError
- func (e CreateActionRequestValidationError) Cause() error
- func (e CreateActionRequestValidationError) Error() string
- func (e CreateActionRequestValidationError) ErrorName() string
- func (e CreateActionRequestValidationError) Field() string
- func (e CreateActionRequestValidationError) Key() bool
- func (e CreateActionRequestValidationError) Reason() string
- type CreateRoleRequest
- func (*CreateRoleRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateRoleRequest) GetAction() string
- func (x *CreateRoleRequest) GetName() string
- func (x *CreateRoleRequest) GetWord() string
- func (*CreateRoleRequest) ProtoMessage()
- func (x *CreateRoleRequest) ProtoReflect() protoreflect.Message
- func (x *CreateRoleRequest) Reset()
- func (x *CreateRoleRequest) String() string
- func (m *CreateRoleRequest) Validate() error
- func (m *CreateRoleRequest) ValidateAll() error
- type CreateRoleRequestMultiError
- type CreateRoleRequestValidationError
- func (e CreateRoleRequestValidationError) Cause() error
- func (e CreateRoleRequestValidationError) Error() string
- func (e CreateRoleRequestValidationError) ErrorName() string
- func (e CreateRoleRequestValidationError) Field() string
- func (e CreateRoleRequestValidationError) Key() bool
- func (e CreateRoleRequestValidationError) Reason() string
- type CreateUserGroupRequest
- func (*CreateUserGroupRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateUserGroupRequest) GetAction() string
- func (x *CreateUserGroupRequest) GetName() string
- func (x *CreateUserGroupRequest) GetUsers() []uint64
- func (x *CreateUserGroupRequest) GetWord() string
- func (*CreateUserGroupRequest) ProtoMessage()
- func (x *CreateUserGroupRequest) ProtoReflect() protoreflect.Message
- func (x *CreateUserGroupRequest) Reset()
- func (x *CreateUserGroupRequest) String() string
- func (m *CreateUserGroupRequest) Validate() error
- func (m *CreateUserGroupRequest) ValidateAll() error
- type CreateUserGroupRequestMultiError
- type CreateUserGroupRequestValidationError
- func (e CreateUserGroupRequestValidationError) Cause() error
- func (e CreateUserGroupRequestValidationError) Error() string
- func (e CreateUserGroupRequestValidationError) ErrorName() string
- func (e CreateUserGroupRequestValidationError) Field() string
- func (e CreateUserGroupRequestValidationError) Key() bool
- func (e CreateUserGroupRequestValidationError) Reason() string
- type FindActionReply
- func (*FindActionReply) Descriptor() ([]byte, []int)deprecated
- func (x *FindActionReply) GetList() []*Action
- func (x *FindActionReply) GetPage() *Page
- func (*FindActionReply) ProtoMessage()
- func (x *FindActionReply) ProtoReflect() protoreflect.Message
- func (x *FindActionReply) Reset()
- func (x *FindActionReply) String() string
- func (m *FindActionReply) Validate() error
- func (m *FindActionReply) ValidateAll() error
- type FindActionReplyMultiError
- type FindActionReplyValidationError
- func (e FindActionReplyValidationError) Cause() error
- func (e FindActionReplyValidationError) Error() string
- func (e FindActionReplyValidationError) ErrorName() string
- func (e FindActionReplyValidationError) Field() string
- func (e FindActionReplyValidationError) Key() bool
- func (e FindActionReplyValidationError) Reason() string
- type FindActionRequest
- func (*FindActionRequest) Descriptor() ([]byte, []int)deprecated
- func (x *FindActionRequest) GetCode() string
- func (x *FindActionRequest) GetName() string
- func (x *FindActionRequest) GetPage() *Page
- func (x *FindActionRequest) GetResource() string
- func (x *FindActionRequest) GetWord() string
- func (*FindActionRequest) ProtoMessage()
- func (x *FindActionRequest) ProtoReflect() protoreflect.Message
- func (x *FindActionRequest) Reset()
- func (x *FindActionRequest) String() string
- func (m *FindActionRequest) Validate() error
- func (m *FindActionRequest) ValidateAll() error
- type FindActionRequestMultiError
- type FindActionRequestValidationError
- func (e FindActionRequestValidationError) Cause() error
- func (e FindActionRequestValidationError) Error() string
- func (e FindActionRequestValidationError) ErrorName() string
- func (e FindActionRequestValidationError) Field() string
- func (e FindActionRequestValidationError) Key() bool
- func (e FindActionRequestValidationError) Reason() string
- type FindRoleReply
- func (*FindRoleReply) Descriptor() ([]byte, []int)deprecated
- func (x *FindRoleReply) GetList() []*Role
- func (x *FindRoleReply) GetPage() *Page
- func (*FindRoleReply) ProtoMessage()
- func (x *FindRoleReply) ProtoReflect() protoreflect.Message
- func (x *FindRoleReply) Reset()
- func (x *FindRoleReply) String() string
- func (m *FindRoleReply) Validate() error
- func (m *FindRoleReply) ValidateAll() error
- type FindRoleReplyMultiError
- type FindRoleReplyValidationError
- func (e FindRoleReplyValidationError) Cause() error
- func (e FindRoleReplyValidationError) Error() string
- func (e FindRoleReplyValidationError) ErrorName() string
- func (e FindRoleReplyValidationError) Field() string
- func (e FindRoleReplyValidationError) Key() bool
- func (e FindRoleReplyValidationError) Reason() string
- type FindRoleRequest
- func (*FindRoleRequest) Descriptor() ([]byte, []int)deprecated
- func (x *FindRoleRequest) GetAction() string
- func (x *FindRoleRequest) GetName() string
- func (x *FindRoleRequest) GetPage() *Page
- func (x *FindRoleRequest) GetWord() string
- func (*FindRoleRequest) ProtoMessage()
- func (x *FindRoleRequest) ProtoReflect() protoreflect.Message
- func (x *FindRoleRequest) Reset()
- func (x *FindRoleRequest) String() string
- func (m *FindRoleRequest) Validate() error
- func (m *FindRoleRequest) ValidateAll() error
- type FindRoleRequestMultiError
- type FindRoleRequestValidationError
- func (e FindRoleRequestValidationError) Cause() error
- func (e FindRoleRequestValidationError) Error() string
- func (e FindRoleRequestValidationError) ErrorName() string
- func (e FindRoleRequestValidationError) Field() string
- func (e FindRoleRequestValidationError) Key() bool
- func (e FindRoleRequestValidationError) Reason() string
- type FindUserGroupReply
- func (*FindUserGroupReply) Descriptor() ([]byte, []int)deprecated
- func (x *FindUserGroupReply) GetList() []*UserGroup
- func (x *FindUserGroupReply) GetPage() *Page
- func (*FindUserGroupReply) ProtoMessage()
- func (x *FindUserGroupReply) ProtoReflect() protoreflect.Message
- func (x *FindUserGroupReply) Reset()
- func (x *FindUserGroupReply) String() string
- func (m *FindUserGroupReply) Validate() error
- func (m *FindUserGroupReply) ValidateAll() error
- type FindUserGroupReplyMultiError
- type FindUserGroupReplyValidationError
- func (e FindUserGroupReplyValidationError) Cause() error
- func (e FindUserGroupReplyValidationError) Error() string
- func (e FindUserGroupReplyValidationError) ErrorName() string
- func (e FindUserGroupReplyValidationError) Field() string
- func (e FindUserGroupReplyValidationError) Key() bool
- func (e FindUserGroupReplyValidationError) Reason() string
- type FindUserGroupRequest
- func (*FindUserGroupRequest) Descriptor() ([]byte, []int)deprecated
- func (x *FindUserGroupRequest) GetAction() string
- func (x *FindUserGroupRequest) GetName() string
- func (x *FindUserGroupRequest) GetPage() *Page
- func (x *FindUserGroupRequest) GetWord() string
- func (*FindUserGroupRequest) ProtoMessage()
- func (x *FindUserGroupRequest) ProtoReflect() protoreflect.Message
- func (x *FindUserGroupRequest) Reset()
- func (x *FindUserGroupRequest) String() string
- func (m *FindUserGroupRequest) Validate() error
- func (m *FindUserGroupRequest) ValidateAll() error
- type FindUserGroupRequestMultiError
- type FindUserGroupRequestValidationError
- func (e FindUserGroupRequestValidationError) Cause() error
- func (e FindUserGroupRequestValidationError) Error() string
- func (e FindUserGroupRequestValidationError) ErrorName() string
- func (e FindUserGroupRequestValidationError) Field() string
- func (e FindUserGroupRequestValidationError) Key() bool
- func (e FindUserGroupRequestValidationError) Reason() string
- type FindUserReply
- func (*FindUserReply) Descriptor() ([]byte, []int)deprecated
- func (x *FindUserReply) GetList() []*User
- func (x *FindUserReply) GetPage() *Page
- func (*FindUserReply) ProtoMessage()
- func (x *FindUserReply) ProtoReflect() protoreflect.Message
- func (x *FindUserReply) Reset()
- func (x *FindUserReply) String() string
- func (m *FindUserReply) Validate() error
- func (m *FindUserReply) ValidateAll() error
- type FindUserReplyMultiError
- type FindUserReplyValidationError
- func (e FindUserReplyValidationError) Cause() error
- func (e FindUserReplyValidationError) Error() string
- func (e FindUserReplyValidationError) ErrorName() string
- func (e FindUserReplyValidationError) Field() string
- func (e FindUserReplyValidationError) Key() bool
- func (e FindUserReplyValidationError) Reason() string
- type FindUserRequest
- func (*FindUserRequest) Descriptor() ([]byte, []int)deprecated
- func (x *FindUserRequest) GetCode() string
- func (x *FindUserRequest) GetEndCreatedAt() string
- func (x *FindUserRequest) GetEndUpdatedAt() string
- func (x *FindUserRequest) GetLocked() uint64
- func (x *FindUserRequest) GetMobile() string
- func (x *FindUserRequest) GetPage() *Page
- func (x *FindUserRequest) GetStartCreatedAt() string
- func (x *FindUserRequest) GetStartUpdatedAt() string
- func (x *FindUserRequest) GetUsername() string
- func (*FindUserRequest) ProtoMessage()
- func (x *FindUserRequest) ProtoReflect() protoreflect.Message
- func (x *FindUserRequest) Reset()
- func (x *FindUserRequest) String() string
- func (m *FindUserRequest) Validate() error
- func (m *FindUserRequest) ValidateAll() error
- type FindUserRequestMultiError
- type FindUserRequestValidationError
- func (e FindUserRequestValidationError) Cause() error
- func (e FindUserRequestValidationError) Error() string
- func (e FindUserRequestValidationError) ErrorName() string
- func (e FindUserRequestValidationError) Field() string
- func (e FindUserRequestValidationError) Key() bool
- func (e FindUserRequestValidationError) Reason() string
- type IdempotentReply
- func (*IdempotentReply) Descriptor() ([]byte, []int)deprecated
- func (x *IdempotentReply) GetToken() string
- func (*IdempotentReply) ProtoMessage()
- func (x *IdempotentReply) ProtoReflect() protoreflect.Message
- func (x *IdempotentReply) Reset()
- func (x *IdempotentReply) String() string
- func (m *IdempotentReply) Validate() error
- func (m *IdempotentReply) ValidateAll() error
- type IdempotentReplyMultiError
- type IdempotentReplyValidationError
- func (e IdempotentReplyValidationError) Cause() error
- func (e IdempotentReplyValidationError) Error() string
- func (e IdempotentReplyValidationError) ErrorName() string
- func (e IdempotentReplyValidationError) Field() string
- func (e IdempotentReplyValidationError) Key() bool
- func (e IdempotentReplyValidationError) Reason() string
- type IdsRequest
- func (*IdsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *IdsRequest) GetIds() string
- func (*IdsRequest) ProtoMessage()
- func (x *IdsRequest) ProtoReflect() protoreflect.Message
- func (x *IdsRequest) Reset()
- func (x *IdsRequest) String() string
- func (m *IdsRequest) Validate() error
- func (m *IdsRequest) ValidateAll() error
- type IdsRequestMultiError
- type IdsRequestValidationError
- type InfoReply
- func (*InfoReply) Descriptor() ([]byte, []int)deprecated
- func (x *InfoReply) GetAvatar() string
- func (x *InfoReply) GetCode() string
- func (x *InfoReply) GetId() uint64
- func (x *InfoReply) GetIntroduction() string
- func (x *InfoReply) GetMobile() string
- func (x *InfoReply) GetNickname() string
- func (x *InfoReply) GetPermission() *Permission
- func (x *InfoReply) GetUsername() string
- func (*InfoReply) ProtoMessage()
- func (x *InfoReply) ProtoReflect() protoreflect.Message
- func (x *InfoReply) Reset()
- func (x *InfoReply) String() string
- func (m *InfoReply) Validate() error
- func (m *InfoReply) ValidateAll() error
- type InfoReplyMultiError
- type InfoReplyValidationError
- type LoginReply
- func (*LoginReply) Descriptor() ([]byte, []int)deprecated
- func (x *LoginReply) GetExpires() string
- func (x *LoginReply) GetToken() string
- func (*LoginReply) ProtoMessage()
- func (x *LoginReply) ProtoReflect() protoreflect.Message
- func (x *LoginReply) Reset()
- func (x *LoginReply) String() string
- func (m *LoginReply) Validate() error
- func (m *LoginReply) ValidateAll() error
- type LoginReplyMultiError
- type LoginReplyValidationError
- type LoginRequest
- func (*LoginRequest) Descriptor() ([]byte, []int)deprecated
- func (x *LoginRequest) GetCaptchaAnswer() string
- func (x *LoginRequest) GetCaptchaId() string
- func (x *LoginRequest) GetPassword() string
- func (x *LoginRequest) GetUsername() string
- func (*LoginRequest) ProtoMessage()
- func (x *LoginRequest) ProtoReflect() protoreflect.Message
- func (x *LoginRequest) Reset()
- func (x *LoginRequest) String() string
- func (m *LoginRequest) Validate() error
- func (m *LoginRequest) ValidateAll() error
- type LoginRequestMultiError
- type LoginRequestValidationError
- func (e LoginRequestValidationError) Cause() error
- func (e LoginRequestValidationError) Error() string
- func (e LoginRequestValidationError) ErrorName() string
- func (e LoginRequestValidationError) Field() string
- func (e LoginRequestValidationError) Key() bool
- func (e LoginRequestValidationError) Reason() string
- type Page
- func (*Page) Descriptor() ([]byte, []int)deprecated
- func (x *Page) GetDisable() bool
- func (x *Page) GetNum() uint64
- func (x *Page) GetSize() uint64
- func (x *Page) GetTotal() int64
- func (*Page) ProtoMessage()
- func (x *Page) ProtoReflect() protoreflect.Message
- func (x *Page) Reset()
- func (x *Page) String() string
- func (m *Page) Validate() error
- func (m *Page) ValidateAll() error
- type PageMultiError
- type PageValidationError
- type Permission
- func (*Permission) Descriptor() ([]byte, []int)deprecated
- func (x *Permission) GetBtns() []string
- func (x *Permission) GetMenus() []string
- func (x *Permission) GetResources() []string
- func (*Permission) ProtoMessage()
- func (x *Permission) ProtoReflect() protoreflect.Message
- func (x *Permission) Reset()
- func (x *Permission) String() string
- func (m *Permission) Validate() error
- func (m *Permission) ValidateAll() error
- type PermissionMultiError
- type PermissionReply
- func (*PermissionReply) Descriptor() ([]byte, []int)deprecated
- func (x *PermissionReply) GetPass() bool
- func (*PermissionReply) ProtoMessage()
- func (x *PermissionReply) ProtoReflect() protoreflect.Message
- func (x *PermissionReply) Reset()
- func (x *PermissionReply) String() string
- func (m *PermissionReply) Validate() error
- func (m *PermissionReply) ValidateAll() error
- type PermissionReplyMultiError
- type PermissionReplyValidationError
- func (e PermissionReplyValidationError) Cause() error
- func (e PermissionReplyValidationError) Error() string
- func (e PermissionReplyValidationError) ErrorName() string
- func (e PermissionReplyValidationError) Field() string
- func (e PermissionReplyValidationError) Key() bool
- func (e PermissionReplyValidationError) Reason() string
- type PermissionRequest
- func (*PermissionRequest) Descriptor() ([]byte, []int)deprecated
- func (x *PermissionRequest) GetResource() string
- func (*PermissionRequest) ProtoMessage()
- func (x *PermissionRequest) ProtoReflect() protoreflect.Message
- func (x *PermissionRequest) Reset()
- func (x *PermissionRequest) String() string
- func (m *PermissionRequest) Validate() error
- func (m *PermissionRequest) ValidateAll() error
- type PermissionRequestMultiError
- type PermissionRequestValidationError
- func (e PermissionRequestValidationError) Cause() error
- func (e PermissionRequestValidationError) Error() string
- func (e PermissionRequestValidationError) ErrorName() string
- func (e PermissionRequestValidationError) Field() string
- func (e PermissionRequestValidationError) Key() bool
- func (e PermissionRequestValidationError) Reason() string
- type PermissionValidationError
- type PwdRequest
- func (*PwdRequest) Descriptor() ([]byte, []int)deprecated
- func (x *PwdRequest) GetNewPassword() string
- func (x *PwdRequest) GetOldPassword() string
- func (x *PwdRequest) GetUsername() string
- func (*PwdRequest) ProtoMessage()
- func (x *PwdRequest) ProtoReflect() protoreflect.Message
- func (x *PwdRequest) Reset()
- func (x *PwdRequest) String() string
- func (m *PwdRequest) Validate() error
- func (m *PwdRequest) ValidateAll() error
- type PwdRequestMultiError
- type PwdRequestValidationError
- type RefreshRequest
- func (*RefreshRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RefreshRequest) GetToken() string
- func (*RefreshRequest) ProtoMessage()
- func (x *RefreshRequest) ProtoReflect() protoreflect.Message
- func (x *RefreshRequest) Reset()
- func (x *RefreshRequest) String() string
- func (m *RefreshRequest) Validate() error
- func (m *RefreshRequest) ValidateAll() error
- type RefreshRequestMultiError
- type RefreshRequestValidationError
- func (e RefreshRequestValidationError) Cause() error
- func (e RefreshRequestValidationError) Error() string
- func (e RefreshRequestValidationError) ErrorName() string
- func (e RefreshRequestValidationError) Field() string
- func (e RefreshRequestValidationError) Key() bool
- func (e RefreshRequestValidationError) Reason() string
- type RegisterRequest
- func (*RegisterRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RegisterRequest) GetAvatar() string
- func (x *RegisterRequest) GetIntroduction() string
- func (x *RegisterRequest) GetMobile() string
- func (x *RegisterRequest) GetNickname() string
- func (x *RegisterRequest) GetPassword() string
- func (x *RegisterRequest) GetUsername() string
- func (*RegisterRequest) ProtoMessage()
- func (x *RegisterRequest) ProtoReflect() protoreflect.Message
- func (x *RegisterRequest) Reset()
- func (x *RegisterRequest) String() string
- func (m *RegisterRequest) Validate() error
- func (m *RegisterRequest) ValidateAll() error
- type RegisterRequestMultiError
- type RegisterRequestValidationError
- func (e RegisterRequestValidationError) Cause() error
- func (e RegisterRequestValidationError) Error() string
- func (e RegisterRequestValidationError) ErrorName() string
- func (e RegisterRequestValidationError) Field() string
- func (e RegisterRequestValidationError) Key() bool
- func (e RegisterRequestValidationError) Reason() string
- type Role
- func (*Role) Descriptor() ([]byte, []int)deprecated
- func (x *Role) GetAction() string
- func (x *Role) GetActions() []*Action
- func (x *Role) GetId() uint64
- func (x *Role) GetName() string
- func (x *Role) GetWord() string
- func (*Role) ProtoMessage()
- func (x *Role) ProtoReflect() protoreflect.Message
- func (x *Role) Reset()
- func (x *Role) String() string
- func (m *Role) Validate() error
- func (m *Role) ValidateAll() error
- type RoleMultiError
- type RoleValidationError
- type StatusReply
- func (*StatusReply) Descriptor() ([]byte, []int)deprecated
- func (x *StatusReply) GetCaptcha() *Captcha
- func (x *StatusReply) GetLockExpire() int64
- func (x *StatusReply) GetLocked() uint64
- func (*StatusReply) ProtoMessage()
- func (x *StatusReply) ProtoReflect() protoreflect.Message
- func (x *StatusReply) Reset()
- func (x *StatusReply) String() string
- func (m *StatusReply) Validate() error
- func (m *StatusReply) ValidateAll() error
- type StatusReplyMultiError
- type StatusReplyValidationError
- func (e StatusReplyValidationError) Cause() error
- func (e StatusReplyValidationError) Error() string
- func (e StatusReplyValidationError) ErrorName() string
- func (e StatusReplyValidationError) Field() string
- func (e StatusReplyValidationError) Key() bool
- func (e StatusReplyValidationError) Reason() string
- type StatusRequest
- func (*StatusRequest) Descriptor() ([]byte, []int)deprecated
- func (x *StatusRequest) GetUsername() string
- func (*StatusRequest) ProtoMessage()
- func (x *StatusRequest) ProtoReflect() protoreflect.Message
- func (x *StatusRequest) Reset()
- func (x *StatusRequest) String() string
- func (m *StatusRequest) Validate() error
- func (m *StatusRequest) ValidateAll() error
- type StatusRequestMultiError
- type StatusRequestValidationError
- func (e StatusRequestValidationError) Cause() error
- func (e StatusRequestValidationError) Error() string
- func (e StatusRequestValidationError) ErrorName() string
- func (e StatusRequestValidationError) Field() string
- func (e StatusRequestValidationError) Key() bool
- func (e StatusRequestValidationError) Reason() string
- type UnimplementedAuthServer
- func (UnimplementedAuthServer) Captcha(context.Context, *emptypb.Empty) (*CaptchaReply, error)
- func (UnimplementedAuthServer) CreateAction(context.Context, *CreateActionRequest) (*emptypb.Empty, error)
- func (UnimplementedAuthServer) CreateRole(context.Context, *CreateRoleRequest) (*emptypb.Empty, error)
- func (UnimplementedAuthServer) CreateUserGroup(context.Context, *CreateUserGroupRequest) (*emptypb.Empty, error)
- func (UnimplementedAuthServer) DeleteAction(context.Context, *IdsRequest) (*emptypb.Empty, error)
- func (UnimplementedAuthServer) DeleteRole(context.Context, *IdsRequest) (*emptypb.Empty, error)
- func (UnimplementedAuthServer) DeleteUser(context.Context, *IdsRequest) (*emptypb.Empty, error)
- func (UnimplementedAuthServer) DeleteUserGroup(context.Context, *IdsRequest) (*emptypb.Empty, error)
- func (UnimplementedAuthServer) FindAction(context.Context, *FindActionRequest) (*FindActionReply, error)
- func (UnimplementedAuthServer) FindRole(context.Context, *FindRoleRequest) (*FindRoleReply, error)
- func (UnimplementedAuthServer) FindUser(context.Context, *FindUserRequest) (*FindUserReply, error)
- func (UnimplementedAuthServer) FindUserGroup(context.Context, *FindUserGroupRequest) (*FindUserGroupReply, error)
- func (UnimplementedAuthServer) Idempotent(context.Context, *emptypb.Empty) (*IdempotentReply, error)
- func (UnimplementedAuthServer) Info(context.Context, *emptypb.Empty) (*InfoReply, error)
- func (UnimplementedAuthServer) Login(context.Context, *LoginRequest) (*LoginReply, error)
- func (UnimplementedAuthServer) Logout(context.Context, *emptypb.Empty) (*emptypb.Empty, error)
- func (UnimplementedAuthServer) Permission(context.Context, *PermissionRequest) (*PermissionReply, error)
- func (UnimplementedAuthServer) Pwd(context.Context, *PwdRequest) (*emptypb.Empty, error)
- func (UnimplementedAuthServer) Refresh(context.Context, *RefreshRequest) (*LoginReply, error)
- func (UnimplementedAuthServer) Register(context.Context, *RegisterRequest) (*emptypb.Empty, error)
- func (UnimplementedAuthServer) Status(context.Context, *StatusRequest) (*StatusReply, error)
- func (UnimplementedAuthServer) UpdateAction(context.Context, *UpdateActionRequest) (*emptypb.Empty, error)
- func (UnimplementedAuthServer) UpdateRole(context.Context, *UpdateRoleRequest) (*emptypb.Empty, error)
- func (UnimplementedAuthServer) UpdateUser(context.Context, *UpdateUserRequest) (*emptypb.Empty, error)
- func (UnimplementedAuthServer) UpdateUserGroup(context.Context, *UpdateUserGroupRequest) (*emptypb.Empty, error)
- type UnsafeAuthServer
- type UpdateActionRequest
- func (*UpdateActionRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateActionRequest) GetBtn() string
- func (x *UpdateActionRequest) GetId() uint64
- func (x *UpdateActionRequest) GetMenu() string
- func (x *UpdateActionRequest) GetName() string
- func (x *UpdateActionRequest) GetResource() string
- func (x *UpdateActionRequest) GetWord() string
- func (*UpdateActionRequest) ProtoMessage()
- func (x *UpdateActionRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateActionRequest) Reset()
- func (x *UpdateActionRequest) String() string
- func (m *UpdateActionRequest) Validate() error
- func (m *UpdateActionRequest) ValidateAll() error
- type UpdateActionRequestMultiError
- type UpdateActionRequestValidationError
- func (e UpdateActionRequestValidationError) Cause() error
- func (e UpdateActionRequestValidationError) Error() string
- func (e UpdateActionRequestValidationError) ErrorName() string
- func (e UpdateActionRequestValidationError) Field() string
- func (e UpdateActionRequestValidationError) Key() bool
- func (e UpdateActionRequestValidationError) Reason() string
- type UpdateRoleRequest
- func (*UpdateRoleRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateRoleRequest) GetAction() string
- func (x *UpdateRoleRequest) GetId() uint64
- func (x *UpdateRoleRequest) GetName() string
- func (x *UpdateRoleRequest) GetWord() string
- func (*UpdateRoleRequest) ProtoMessage()
- func (x *UpdateRoleRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateRoleRequest) Reset()
- func (x *UpdateRoleRequest) String() string
- func (m *UpdateRoleRequest) Validate() error
- func (m *UpdateRoleRequest) ValidateAll() error
- type UpdateRoleRequestMultiError
- type UpdateRoleRequestValidationError
- func (e UpdateRoleRequestValidationError) Cause() error
- func (e UpdateRoleRequestValidationError) Error() string
- func (e UpdateRoleRequestValidationError) ErrorName() string
- func (e UpdateRoleRequestValidationError) Field() string
- func (e UpdateRoleRequestValidationError) Key() bool
- func (e UpdateRoleRequestValidationError) Reason() string
- type UpdateUserGroupRequest
- func (*UpdateUserGroupRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateUserGroupRequest) GetAction() string
- func (x *UpdateUserGroupRequest) GetId() uint64
- func (x *UpdateUserGroupRequest) GetName() string
- func (x *UpdateUserGroupRequest) GetUsers() string
- func (x *UpdateUserGroupRequest) GetWord() string
- func (*UpdateUserGroupRequest) ProtoMessage()
- func (x *UpdateUserGroupRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateUserGroupRequest) Reset()
- func (x *UpdateUserGroupRequest) String() string
- func (m *UpdateUserGroupRequest) Validate() error
- func (m *UpdateUserGroupRequest) ValidateAll() error
- type UpdateUserGroupRequestMultiError
- type UpdateUserGroupRequestValidationError
- func (e UpdateUserGroupRequestValidationError) Cause() error
- func (e UpdateUserGroupRequestValidationError) Error() string
- func (e UpdateUserGroupRequestValidationError) ErrorName() string
- func (e UpdateUserGroupRequestValidationError) Field() string
- func (e UpdateUserGroupRequestValidationError) Key() bool
- func (e UpdateUserGroupRequestValidationError) Reason() string
- type UpdateUserRequest
- func (*UpdateUserRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateUserRequest) GetAction() string
- func (x *UpdateUserRequest) GetAvatar() string
- func (x *UpdateUserRequest) GetId() uint64
- func (x *UpdateUserRequest) GetIntroduction() string
- func (x *UpdateUserRequest) GetLockExpireTime() string
- func (x *UpdateUserRequest) GetLocked() uint64
- func (x *UpdateUserRequest) GetMobile() string
- func (x *UpdateUserRequest) GetNickname() string
- func (x *UpdateUserRequest) GetPassword() string
- func (x *UpdateUserRequest) GetUsername() string
- func (*UpdateUserRequest) ProtoMessage()
- func (x *UpdateUserRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateUserRequest) Reset()
- func (x *UpdateUserRequest) String() string
- func (m *UpdateUserRequest) Validate() error
- func (m *UpdateUserRequest) ValidateAll() error
- type UpdateUserRequestMultiError
- type UpdateUserRequestValidationError
- func (e UpdateUserRequestValidationError) Cause() error
- func (e UpdateUserRequestValidationError) Error() string
- func (e UpdateUserRequestValidationError) ErrorName() string
- func (e UpdateUserRequestValidationError) Field() string
- func (e UpdateUserRequestValidationError) Key() bool
- func (e UpdateUserRequestValidationError) Reason() string
- type User
- func (*User) Descriptor() ([]byte, []int)deprecated
- func (x *User) GetActions() []*Action
- func (x *User) GetAvatar() string
- func (x *User) GetCode() string
- func (x *User) GetCreatedAt() string
- func (x *User) GetId() uint64
- func (x *User) GetIntroduction() string
- func (x *User) GetLastLogin() string
- func (x *User) GetLockExpire() int64
- func (x *User) GetLockMsg() string
- func (x *User) GetLocked() uint64
- func (x *User) GetMobile() string
- func (x *User) GetNickname() string
- func (x *User) GetUpdatedAt() string
- func (x *User) GetUsername() string
- func (*User) ProtoMessage()
- func (x *User) ProtoReflect() protoreflect.Message
- func (x *User) Reset()
- func (x *User) String() string
- func (m *User) Validate() error
- func (m *User) ValidateAll() error
- type UserGroup
- func (*UserGroup) Descriptor() ([]byte, []int)deprecated
- func (x *UserGroup) GetActions() []*Action
- func (x *UserGroup) GetId() uint64
- func (x *UserGroup) GetName() string
- func (x *UserGroup) GetUsers() []*User
- func (x *UserGroup) GetWord() string
- func (*UserGroup) ProtoMessage()
- func (x *UserGroup) ProtoReflect() protoreflect.Message
- func (x *UserGroup) Reset()
- func (x *UserGroup) String() string
- func (m *UserGroup) Validate() error
- func (m *UserGroup) ValidateAll() error
- type UserGroupMultiError
- type UserGroupValidationError
- type UserMultiError
- type UserValidationError
Constants ¶
const OperationAuthCaptcha = "/auth.v1.Auth/Captcha"
const OperationAuthCreateAction = "/auth.v1.Auth/CreateAction"
const OperationAuthCreateRole = "/auth.v1.Auth/CreateRole"
const OperationAuthCreateUserGroup = "/auth.v1.Auth/CreateUserGroup"
const OperationAuthDeleteAction = "/auth.v1.Auth/DeleteAction"
const OperationAuthDeleteRole = "/auth.v1.Auth/DeleteRole"
const OperationAuthDeleteUser = "/auth.v1.Auth/DeleteUser"
const OperationAuthDeleteUserGroup = "/auth.v1.Auth/DeleteUserGroup"
const OperationAuthFindAction = "/auth.v1.Auth/FindAction"
const OperationAuthFindRole = "/auth.v1.Auth/FindRole"
const OperationAuthFindUser = "/auth.v1.Auth/FindUser"
const OperationAuthFindUserGroup = "/auth.v1.Auth/FindUserGroup"
const OperationAuthIdempotent = "/auth.v1.Auth/Idempotent"
const OperationAuthInfo = "/auth.v1.Auth/Info"
const OperationAuthLogin = "/auth.v1.Auth/Login"
const OperationAuthLogout = "/auth.v1.Auth/Logout"
const OperationAuthPwd = "/auth.v1.Auth/Pwd"
const OperationAuthRefresh = "/auth.v1.Auth/Refresh"
const OperationAuthRegister = "/auth.v1.Auth/Register"
const OperationAuthStatus = "/auth.v1.Auth/Status"
const OperationAuthUpdateAction = "/auth.v1.Auth/UpdateAction"
const OperationAuthUpdateRole = "/auth.v1.Auth/UpdateRole"
const OperationAuthUpdateUser = "/auth.v1.Auth/UpdateUser"
const OperationAuthUpdateUserGroup = "/auth.v1.Auth/UpdateUserGroup"
Variables ¶
var Auth_ServiceDesc = grpc.ServiceDesc{ ServiceName: "auth.v1.Auth", HandlerType: (*AuthServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Register", Handler: _Auth_Register_Handler, }, { MethodName: "Pwd", Handler: _Auth_Pwd_Handler, }, { MethodName: "Login", Handler: _Auth_Login_Handler, }, { MethodName: "Status", Handler: _Auth_Status_Handler, }, { MethodName: "Captcha", Handler: _Auth_Captcha_Handler, }, { MethodName: "Refresh", Handler: _Auth_Refresh_Handler, }, { MethodName: "Logout", Handler: _Auth_Logout_Handler, }, { MethodName: "Info", Handler: _Auth_Info_Handler, }, { MethodName: "Idempotent", Handler: _Auth_Idempotent_Handler, }, { MethodName: "FindUser", Handler: _Auth_FindUser_Handler, }, { MethodName: "UpdateUser", Handler: _Auth_UpdateUser_Handler, }, { MethodName: "DeleteUser", Handler: _Auth_DeleteUser_Handler, }, { MethodName: "Permission", Handler: _Auth_Permission_Handler, }, { MethodName: "CreateAction", Handler: _Auth_CreateAction_Handler, }, { MethodName: "FindAction", Handler: _Auth_FindAction_Handler, }, { MethodName: "UpdateAction", Handler: _Auth_UpdateAction_Handler, }, { MethodName: "DeleteAction", Handler: _Auth_DeleteAction_Handler, }, { MethodName: "CreateRole", Handler: _Auth_CreateRole_Handler, }, { MethodName: "FindRole", Handler: _Auth_FindRole_Handler, }, { MethodName: "UpdateRole", Handler: _Auth_UpdateRole_Handler, }, { MethodName: "DeleteRole", Handler: _Auth_DeleteRole_Handler, }, { MethodName: "CreateUserGroup", Handler: _Auth_CreateUserGroup_Handler, }, { MethodName: "FindUserGroup", Handler: _Auth_FindUserGroup_Handler, }, { MethodName: "UpdateUserGroup", Handler: _Auth_UpdateUserGroup_Handler, }, { MethodName: "DeleteUserGroup", Handler: _Auth_DeleteUserGroup_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "auth-proto/auth.proto", }
Auth_ServiceDesc is the grpc.ServiceDesc for Auth service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_auth_proto_auth_proto protoreflect.FileDescriptor
Functions ¶
func RegisterAuthHTTPServer ¶
func RegisterAuthHTTPServer(s *http.Server, srv AuthHTTPServer)
func RegisterAuthServer ¶
func RegisterAuthServer(s grpc.ServiceRegistrar, srv AuthServer)
Types ¶
type Action ¶
type Action struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Code string `protobuf:"bytes,2,opt,name=code,proto3" json:"code,omitempty"` Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` Word string `protobuf:"bytes,4,opt,name=word,proto3" json:"word,omitempty"` Resource string `protobuf:"bytes,5,opt,name=resource,proto3" json:"resource,omitempty"` Menu string `protobuf:"bytes,6,opt,name=menu,proto3" json:"menu,omitempty"` Btn string `protobuf:"bytes,7,opt,name=btn,proto3" json:"btn,omitempty"` // contains filtered or unexported fields }
func (*Action) Descriptor
deprecated
func (*Action) GetResource ¶
func (*Action) ProtoMessage ¶
func (*Action) ProtoMessage()
func (*Action) ProtoReflect ¶
func (x *Action) ProtoReflect() protoreflect.Message
func (*Action) Validate ¶
Validate checks the field values on Action with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*Action) ValidateAll ¶
ValidateAll checks the field values on Action with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ActionMultiError, or nil if none found.
type ActionMultiError ¶
type ActionMultiError []error
ActionMultiError is an error wrapping multiple validation errors returned by Action.ValidateAll() if the designated constraints aren't met.
func (ActionMultiError) AllErrors ¶
func (m ActionMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ActionMultiError) Error ¶
func (m ActionMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ActionValidationError ¶
type ActionValidationError struct {
// contains filtered or unexported fields
}
ActionValidationError is the validation error returned by Action.Validate if the designated constraints aren't met.
func (ActionValidationError) Cause ¶
func (e ActionValidationError) Cause() error
Cause function returns cause value.
func (ActionValidationError) Error ¶
func (e ActionValidationError) Error() string
Error satisfies the builtin error interface
func (ActionValidationError) ErrorName ¶
func (e ActionValidationError) ErrorName() string
ErrorName returns error name.
func (ActionValidationError) Field ¶
func (e ActionValidationError) Field() string
Field function returns field value.
func (ActionValidationError) Key ¶
func (e ActionValidationError) Key() bool
Key function returns key value.
func (ActionValidationError) Reason ¶
func (e ActionValidationError) Reason() string
Reason function returns reason value.
type AuthClient ¶
type AuthClient interface { Register(ctx context.Context, in *RegisterRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) Pwd(ctx context.Context, in *PwdRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) Login(ctx context.Context, in *LoginRequest, opts ...grpc.CallOption) (*LoginReply, error) Status(ctx context.Context, in *StatusRequest, opts ...grpc.CallOption) (*StatusReply, error) Captcha(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*CaptchaReply, error) Refresh(ctx context.Context, in *RefreshRequest, opts ...grpc.CallOption) (*LoginReply, error) Logout(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*emptypb.Empty, error) Info(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*InfoReply, error) Idempotent(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*IdempotentReply, error) FindUser(ctx context.Context, in *FindUserRequest, opts ...grpc.CallOption) (*FindUserReply, error) UpdateUser(ctx context.Context, in *UpdateUserRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) DeleteUser(ctx context.Context, in *IdsRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) Permission(ctx context.Context, in *PermissionRequest, opts ...grpc.CallOption) (*PermissionReply, error) CreateAction(ctx context.Context, in *CreateActionRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) FindAction(ctx context.Context, in *FindActionRequest, opts ...grpc.CallOption) (*FindActionReply, error) UpdateAction(ctx context.Context, in *UpdateActionRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) DeleteAction(ctx context.Context, in *IdsRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) CreateRole(ctx context.Context, in *CreateRoleRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) FindRole(ctx context.Context, in *FindRoleRequest, opts ...grpc.CallOption) (*FindRoleReply, error) UpdateRole(ctx context.Context, in *UpdateRoleRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) DeleteRole(ctx context.Context, in *IdsRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) CreateUserGroup(ctx context.Context, in *CreateUserGroupRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) FindUserGroup(ctx context.Context, in *FindUserGroupRequest, opts ...grpc.CallOption) (*FindUserGroupReply, error) UpdateUserGroup(ctx context.Context, in *UpdateUserGroupRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) DeleteUserGroup(ctx context.Context, in *IdsRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) }
AuthClient is the client API for Auth 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 NewAuthClient ¶
func NewAuthClient(cc grpc.ClientConnInterface) AuthClient
type AuthHTTPClient ¶
type AuthHTTPClient interface { Captcha(ctx context.Context, req *emptypb.Empty, opts ...http.CallOption) (rsp *CaptchaReply, err error) CreateAction(ctx context.Context, req *CreateActionRequest, opts ...http.CallOption) (rsp *emptypb.Empty, err error) CreateRole(ctx context.Context, req *CreateRoleRequest, opts ...http.CallOption) (rsp *emptypb.Empty, err error) CreateUserGroup(ctx context.Context, req *CreateUserGroupRequest, opts ...http.CallOption) (rsp *emptypb.Empty, err error) DeleteAction(ctx context.Context, req *IdsRequest, opts ...http.CallOption) (rsp *emptypb.Empty, err error) DeleteRole(ctx context.Context, req *IdsRequest, opts ...http.CallOption) (rsp *emptypb.Empty, err error) DeleteUser(ctx context.Context, req *IdsRequest, opts ...http.CallOption) (rsp *emptypb.Empty, err error) DeleteUserGroup(ctx context.Context, req *IdsRequest, opts ...http.CallOption) (rsp *emptypb.Empty, err error) FindAction(ctx context.Context, req *FindActionRequest, opts ...http.CallOption) (rsp *FindActionReply, err error) FindRole(ctx context.Context, req *FindRoleRequest, opts ...http.CallOption) (rsp *FindRoleReply, err error) FindUser(ctx context.Context, req *FindUserRequest, opts ...http.CallOption) (rsp *FindUserReply, err error) FindUserGroup(ctx context.Context, req *FindUserGroupRequest, opts ...http.CallOption) (rsp *FindUserGroupReply, err error) Idempotent(ctx context.Context, req *emptypb.Empty, opts ...http.CallOption) (rsp *IdempotentReply, err error) Info(ctx context.Context, req *emptypb.Empty, opts ...http.CallOption) (rsp *InfoReply, err error) Login(ctx context.Context, req *LoginRequest, opts ...http.CallOption) (rsp *LoginReply, err error) Logout(ctx context.Context, req *emptypb.Empty, opts ...http.CallOption) (rsp *emptypb.Empty, err error) Pwd(ctx context.Context, req *PwdRequest, opts ...http.CallOption) (rsp *emptypb.Empty, err error) Refresh(ctx context.Context, req *RefreshRequest, opts ...http.CallOption) (rsp *LoginReply, err error) Register(ctx context.Context, req *RegisterRequest, opts ...http.CallOption) (rsp *emptypb.Empty, err error) Status(ctx context.Context, req *StatusRequest, opts ...http.CallOption) (rsp *StatusReply, err error) UpdateAction(ctx context.Context, req *UpdateActionRequest, opts ...http.CallOption) (rsp *emptypb.Empty, err error) UpdateRole(ctx context.Context, req *UpdateRoleRequest, opts ...http.CallOption) (rsp *emptypb.Empty, err error) UpdateUser(ctx context.Context, req *UpdateUserRequest, opts ...http.CallOption) (rsp *emptypb.Empty, err error) UpdateUserGroup(ctx context.Context, req *UpdateUserGroupRequest, opts ...http.CallOption) (rsp *emptypb.Empty, err error) }
func NewAuthHTTPClient ¶
func NewAuthHTTPClient(client *http.Client) AuthHTTPClient
type AuthHTTPClientImpl ¶
type AuthHTTPClientImpl struct {
// contains filtered or unexported fields
}
func (*AuthHTTPClientImpl) Captcha ¶
func (c *AuthHTTPClientImpl) Captcha(ctx context.Context, in *emptypb.Empty, opts ...http.CallOption) (*CaptchaReply, error)
func (*AuthHTTPClientImpl) CreateAction ¶
func (c *AuthHTTPClientImpl) CreateAction(ctx context.Context, in *CreateActionRequest, opts ...http.CallOption) (*emptypb.Empty, error)
func (*AuthHTTPClientImpl) CreateRole ¶
func (c *AuthHTTPClientImpl) CreateRole(ctx context.Context, in *CreateRoleRequest, opts ...http.CallOption) (*emptypb.Empty, error)
func (*AuthHTTPClientImpl) CreateUserGroup ¶
func (c *AuthHTTPClientImpl) CreateUserGroup(ctx context.Context, in *CreateUserGroupRequest, opts ...http.CallOption) (*emptypb.Empty, error)
func (*AuthHTTPClientImpl) DeleteAction ¶
func (c *AuthHTTPClientImpl) DeleteAction(ctx context.Context, in *IdsRequest, opts ...http.CallOption) (*emptypb.Empty, error)
func (*AuthHTTPClientImpl) DeleteRole ¶
func (c *AuthHTTPClientImpl) DeleteRole(ctx context.Context, in *IdsRequest, opts ...http.CallOption) (*emptypb.Empty, error)
func (*AuthHTTPClientImpl) DeleteUser ¶
func (c *AuthHTTPClientImpl) DeleteUser(ctx context.Context, in *IdsRequest, opts ...http.CallOption) (*emptypb.Empty, error)
func (*AuthHTTPClientImpl) DeleteUserGroup ¶
func (c *AuthHTTPClientImpl) DeleteUserGroup(ctx context.Context, in *IdsRequest, opts ...http.CallOption) (*emptypb.Empty, error)
func (*AuthHTTPClientImpl) FindAction ¶
func (c *AuthHTTPClientImpl) FindAction(ctx context.Context, in *FindActionRequest, opts ...http.CallOption) (*FindActionReply, error)
func (*AuthHTTPClientImpl) FindRole ¶
func (c *AuthHTTPClientImpl) FindRole(ctx context.Context, in *FindRoleRequest, opts ...http.CallOption) (*FindRoleReply, error)
func (*AuthHTTPClientImpl) FindUser ¶
func (c *AuthHTTPClientImpl) FindUser(ctx context.Context, in *FindUserRequest, opts ...http.CallOption) (*FindUserReply, error)
func (*AuthHTTPClientImpl) FindUserGroup ¶
func (c *AuthHTTPClientImpl) FindUserGroup(ctx context.Context, in *FindUserGroupRequest, opts ...http.CallOption) (*FindUserGroupReply, error)
func (*AuthHTTPClientImpl) Idempotent ¶
func (c *AuthHTTPClientImpl) Idempotent(ctx context.Context, in *emptypb.Empty, opts ...http.CallOption) (*IdempotentReply, error)
func (*AuthHTTPClientImpl) Info ¶
func (c *AuthHTTPClientImpl) Info(ctx context.Context, in *emptypb.Empty, opts ...http.CallOption) (*InfoReply, error)
func (*AuthHTTPClientImpl) Login ¶
func (c *AuthHTTPClientImpl) Login(ctx context.Context, in *LoginRequest, opts ...http.CallOption) (*LoginReply, error)
func (*AuthHTTPClientImpl) Logout ¶
func (c *AuthHTTPClientImpl) Logout(ctx context.Context, in *emptypb.Empty, opts ...http.CallOption) (*emptypb.Empty, error)
func (*AuthHTTPClientImpl) Pwd ¶
func (c *AuthHTTPClientImpl) Pwd(ctx context.Context, in *PwdRequest, opts ...http.CallOption) (*emptypb.Empty, error)
func (*AuthHTTPClientImpl) Refresh ¶
func (c *AuthHTTPClientImpl) Refresh(ctx context.Context, in *RefreshRequest, opts ...http.CallOption) (*LoginReply, error)
func (*AuthHTTPClientImpl) Register ¶
func (c *AuthHTTPClientImpl) Register(ctx context.Context, in *RegisterRequest, opts ...http.CallOption) (*emptypb.Empty, error)
func (*AuthHTTPClientImpl) Status ¶
func (c *AuthHTTPClientImpl) Status(ctx context.Context, in *StatusRequest, opts ...http.CallOption) (*StatusReply, error)
func (*AuthHTTPClientImpl) UpdateAction ¶
func (c *AuthHTTPClientImpl) UpdateAction(ctx context.Context, in *UpdateActionRequest, opts ...http.CallOption) (*emptypb.Empty, error)
func (*AuthHTTPClientImpl) UpdateRole ¶
func (c *AuthHTTPClientImpl) UpdateRole(ctx context.Context, in *UpdateRoleRequest, opts ...http.CallOption) (*emptypb.Empty, error)
func (*AuthHTTPClientImpl) UpdateUser ¶
func (c *AuthHTTPClientImpl) UpdateUser(ctx context.Context, in *UpdateUserRequest, opts ...http.CallOption) (*emptypb.Empty, error)
func (*AuthHTTPClientImpl) UpdateUserGroup ¶
func (c *AuthHTTPClientImpl) UpdateUserGroup(ctx context.Context, in *UpdateUserGroupRequest, opts ...http.CallOption) (*emptypb.Empty, error)
type AuthHTTPServer ¶
type AuthHTTPServer interface { Captcha(context.Context, *emptypb.Empty) (*CaptchaReply, error) CreateAction(context.Context, *CreateActionRequest) (*emptypb.Empty, error) CreateRole(context.Context, *CreateRoleRequest) (*emptypb.Empty, error) CreateUserGroup(context.Context, *CreateUserGroupRequest) (*emptypb.Empty, error) DeleteAction(context.Context, *IdsRequest) (*emptypb.Empty, error) DeleteRole(context.Context, *IdsRequest) (*emptypb.Empty, error) DeleteUser(context.Context, *IdsRequest) (*emptypb.Empty, error) DeleteUserGroup(context.Context, *IdsRequest) (*emptypb.Empty, error) FindAction(context.Context, *FindActionRequest) (*FindActionReply, error) FindRole(context.Context, *FindRoleRequest) (*FindRoleReply, error) FindUser(context.Context, *FindUserRequest) (*FindUserReply, error) FindUserGroup(context.Context, *FindUserGroupRequest) (*FindUserGroupReply, error) Idempotent(context.Context, *emptypb.Empty) (*IdempotentReply, error) Info(context.Context, *emptypb.Empty) (*InfoReply, error) Login(context.Context, *LoginRequest) (*LoginReply, error) Logout(context.Context, *emptypb.Empty) (*emptypb.Empty, error) Pwd(context.Context, *PwdRequest) (*emptypb.Empty, error) Refresh(context.Context, *RefreshRequest) (*LoginReply, error) Register(context.Context, *RegisterRequest) (*emptypb.Empty, error) Status(context.Context, *StatusRequest) (*StatusReply, error) UpdateAction(context.Context, *UpdateActionRequest) (*emptypb.Empty, error) UpdateRole(context.Context, *UpdateRoleRequest) (*emptypb.Empty, error) UpdateUser(context.Context, *UpdateUserRequest) (*emptypb.Empty, error) UpdateUserGroup(context.Context, *UpdateUserGroupRequest) (*emptypb.Empty, error) }
type AuthServer ¶
type AuthServer interface { Register(context.Context, *RegisterRequest) (*emptypb.Empty, error) Pwd(context.Context, *PwdRequest) (*emptypb.Empty, error) Login(context.Context, *LoginRequest) (*LoginReply, error) Status(context.Context, *StatusRequest) (*StatusReply, error) Captcha(context.Context, *emptypb.Empty) (*CaptchaReply, error) Refresh(context.Context, *RefreshRequest) (*LoginReply, error) Logout(context.Context, *emptypb.Empty) (*emptypb.Empty, error) Info(context.Context, *emptypb.Empty) (*InfoReply, error) Idempotent(context.Context, *emptypb.Empty) (*IdempotentReply, error) FindUser(context.Context, *FindUserRequest) (*FindUserReply, error) UpdateUser(context.Context, *UpdateUserRequest) (*emptypb.Empty, error) DeleteUser(context.Context, *IdsRequest) (*emptypb.Empty, error) Permission(context.Context, *PermissionRequest) (*PermissionReply, error) CreateAction(context.Context, *CreateActionRequest) (*emptypb.Empty, error) FindAction(context.Context, *FindActionRequest) (*FindActionReply, error) UpdateAction(context.Context, *UpdateActionRequest) (*emptypb.Empty, error) DeleteAction(context.Context, *IdsRequest) (*emptypb.Empty, error) CreateRole(context.Context, *CreateRoleRequest) (*emptypb.Empty, error) FindRole(context.Context, *FindRoleRequest) (*FindRoleReply, error) UpdateRole(context.Context, *UpdateRoleRequest) (*emptypb.Empty, error) DeleteRole(context.Context, *IdsRequest) (*emptypb.Empty, error) CreateUserGroup(context.Context, *CreateUserGroupRequest) (*emptypb.Empty, error) FindUserGroup(context.Context, *FindUserGroupRequest) (*FindUserGroupReply, error) UpdateUserGroup(context.Context, *UpdateUserGroupRequest) (*emptypb.Empty, error) DeleteUserGroup(context.Context, *IdsRequest) (*emptypb.Empty, error) // contains filtered or unexported methods }
AuthServer is the server API for Auth service. All implementations must embed UnimplementedAuthServer for forward compatibility
type Captcha ¶
type Captcha struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Img string `protobuf:"bytes,2,opt,name=img,proto3" json:"img,omitempty"` // contains filtered or unexported fields }
func (*Captcha) Descriptor
deprecated
func (*Captcha) ProtoMessage ¶
func (*Captcha) ProtoMessage()
func (*Captcha) ProtoReflect ¶
func (x *Captcha) ProtoReflect() protoreflect.Message
func (*Captcha) Validate ¶
Validate checks the field values on Captcha with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*Captcha) ValidateAll ¶
ValidateAll checks the field values on Captcha with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in CaptchaMultiError, or nil if none found.
type CaptchaMultiError ¶
type CaptchaMultiError []error
CaptchaMultiError is an error wrapping multiple validation errors returned by Captcha.ValidateAll() if the designated constraints aren't met.
func (CaptchaMultiError) AllErrors ¶
func (m CaptchaMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CaptchaMultiError) Error ¶
func (m CaptchaMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CaptchaReply ¶
type CaptchaReply struct { Captcha *Captcha `protobuf:"bytes,1,opt,name=captcha,proto3" json:"captcha,omitempty"` // contains filtered or unexported fields }
func (*CaptchaReply) Descriptor
deprecated
func (*CaptchaReply) Descriptor() ([]byte, []int)
Deprecated: Use CaptchaReply.ProtoReflect.Descriptor instead.
func (*CaptchaReply) GetCaptcha ¶
func (x *CaptchaReply) GetCaptcha() *Captcha
func (*CaptchaReply) ProtoMessage ¶
func (*CaptchaReply) ProtoMessage()
func (*CaptchaReply) ProtoReflect ¶
func (x *CaptchaReply) ProtoReflect() protoreflect.Message
func (*CaptchaReply) Reset ¶
func (x *CaptchaReply) Reset()
func (*CaptchaReply) String ¶
func (x *CaptchaReply) String() string
func (*CaptchaReply) Validate ¶
func (m *CaptchaReply) Validate() error
Validate checks the field values on CaptchaReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*CaptchaReply) ValidateAll ¶
func (m *CaptchaReply) ValidateAll() error
ValidateAll checks the field values on CaptchaReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in CaptchaReplyMultiError, or nil if none found.
type CaptchaReplyMultiError ¶
type CaptchaReplyMultiError []error
CaptchaReplyMultiError is an error wrapping multiple validation errors returned by CaptchaReply.ValidateAll() if the designated constraints aren't met.
func (CaptchaReplyMultiError) AllErrors ¶
func (m CaptchaReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CaptchaReplyMultiError) Error ¶
func (m CaptchaReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CaptchaReplyValidationError ¶
type CaptchaReplyValidationError struct {
// contains filtered or unexported fields
}
CaptchaReplyValidationError is the validation error returned by CaptchaReply.Validate if the designated constraints aren't met.
func (CaptchaReplyValidationError) Cause ¶
func (e CaptchaReplyValidationError) Cause() error
Cause function returns cause value.
func (CaptchaReplyValidationError) Error ¶
func (e CaptchaReplyValidationError) Error() string
Error satisfies the builtin error interface
func (CaptchaReplyValidationError) ErrorName ¶
func (e CaptchaReplyValidationError) ErrorName() string
ErrorName returns error name.
func (CaptchaReplyValidationError) Field ¶
func (e CaptchaReplyValidationError) Field() string
Field function returns field value.
func (CaptchaReplyValidationError) Key ¶
func (e CaptchaReplyValidationError) Key() bool
Key function returns key value.
func (CaptchaReplyValidationError) Reason ¶
func (e CaptchaReplyValidationError) Reason() string
Reason function returns reason value.
type CaptchaValidationError ¶
type CaptchaValidationError struct {
// contains filtered or unexported fields
}
CaptchaValidationError is the validation error returned by Captcha.Validate if the designated constraints aren't met.
func (CaptchaValidationError) Cause ¶
func (e CaptchaValidationError) Cause() error
Cause function returns cause value.
func (CaptchaValidationError) Error ¶
func (e CaptchaValidationError) Error() string
Error satisfies the builtin error interface
func (CaptchaValidationError) ErrorName ¶
func (e CaptchaValidationError) ErrorName() string
ErrorName returns error name.
func (CaptchaValidationError) Field ¶
func (e CaptchaValidationError) Field() string
Field function returns field value.
func (CaptchaValidationError) Key ¶
func (e CaptchaValidationError) Key() bool
Key function returns key value.
func (CaptchaValidationError) Reason ¶
func (e CaptchaValidationError) Reason() string
Reason function returns reason value.
type CreateActionRequest ¶
type CreateActionRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Word string `protobuf:"bytes,2,opt,name=word,proto3" json:"word,omitempty"` Resource string `protobuf:"bytes,3,opt,name=resource,proto3" json:"resource,omitempty"` Menu string `protobuf:"bytes,4,opt,name=menu,proto3" json:"menu,omitempty"` Btn string `protobuf:"bytes,5,opt,name=btn,proto3" json:"btn,omitempty"` // contains filtered or unexported fields }
func (*CreateActionRequest) Descriptor
deprecated
func (*CreateActionRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateActionRequest.ProtoReflect.Descriptor instead.
func (*CreateActionRequest) GetBtn ¶
func (x *CreateActionRequest) GetBtn() string
func (*CreateActionRequest) GetMenu ¶
func (x *CreateActionRequest) GetMenu() string
func (*CreateActionRequest) GetName ¶
func (x *CreateActionRequest) GetName() string
func (*CreateActionRequest) GetResource ¶
func (x *CreateActionRequest) GetResource() string
func (*CreateActionRequest) GetWord ¶
func (x *CreateActionRequest) GetWord() string
func (*CreateActionRequest) ProtoMessage ¶
func (*CreateActionRequest) ProtoMessage()
func (*CreateActionRequest) ProtoReflect ¶
func (x *CreateActionRequest) ProtoReflect() protoreflect.Message
func (*CreateActionRequest) Reset ¶
func (x *CreateActionRequest) Reset()
func (*CreateActionRequest) String ¶
func (x *CreateActionRequest) String() string
func (*CreateActionRequest) Validate ¶
func (m *CreateActionRequest) Validate() error
Validate checks the field values on CreateActionRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*CreateActionRequest) ValidateAll ¶
func (m *CreateActionRequest) ValidateAll() error
ValidateAll checks the field values on CreateActionRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in CreateActionRequestMultiError, or nil if none found.
type CreateActionRequestMultiError ¶
type CreateActionRequestMultiError []error
CreateActionRequestMultiError is an error wrapping multiple validation errors returned by CreateActionRequest.ValidateAll() if the designated constraints aren't met.
func (CreateActionRequestMultiError) AllErrors ¶
func (m CreateActionRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CreateActionRequestMultiError) Error ¶
func (m CreateActionRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CreateActionRequestValidationError ¶
type CreateActionRequestValidationError struct {
// contains filtered or unexported fields
}
CreateActionRequestValidationError is the validation error returned by CreateActionRequest.Validate if the designated constraints aren't met.
func (CreateActionRequestValidationError) Cause ¶
func (e CreateActionRequestValidationError) Cause() error
Cause function returns cause value.
func (CreateActionRequestValidationError) Error ¶
func (e CreateActionRequestValidationError) Error() string
Error satisfies the builtin error interface
func (CreateActionRequestValidationError) ErrorName ¶
func (e CreateActionRequestValidationError) ErrorName() string
ErrorName returns error name.
func (CreateActionRequestValidationError) Field ¶
func (e CreateActionRequestValidationError) Field() string
Field function returns field value.
func (CreateActionRequestValidationError) Key ¶
func (e CreateActionRequestValidationError) Key() bool
Key function returns key value.
func (CreateActionRequestValidationError) Reason ¶
func (e CreateActionRequestValidationError) Reason() string
Reason function returns reason value.
type CreateRoleRequest ¶
type CreateRoleRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Word string `protobuf:"bytes,2,opt,name=word,proto3" json:"word,omitempty"` Action *string `protobuf:"bytes,3,opt,name=action,proto3,oneof" json:"action,omitempty"` // contains filtered or unexported fields }
func (*CreateRoleRequest) Descriptor
deprecated
func (*CreateRoleRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateRoleRequest.ProtoReflect.Descriptor instead.
func (*CreateRoleRequest) GetAction ¶
func (x *CreateRoleRequest) GetAction() string
func (*CreateRoleRequest) GetName ¶
func (x *CreateRoleRequest) GetName() string
func (*CreateRoleRequest) GetWord ¶
func (x *CreateRoleRequest) GetWord() string
func (*CreateRoleRequest) ProtoMessage ¶
func (*CreateRoleRequest) ProtoMessage()
func (*CreateRoleRequest) ProtoReflect ¶
func (x *CreateRoleRequest) ProtoReflect() protoreflect.Message
func (*CreateRoleRequest) Reset ¶
func (x *CreateRoleRequest) Reset()
func (*CreateRoleRequest) String ¶
func (x *CreateRoleRequest) String() string
func (*CreateRoleRequest) Validate ¶
func (m *CreateRoleRequest) Validate() error
Validate checks the field values on CreateRoleRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*CreateRoleRequest) ValidateAll ¶
func (m *CreateRoleRequest) ValidateAll() error
ValidateAll checks the field values on CreateRoleRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in CreateRoleRequestMultiError, or nil if none found.
type CreateRoleRequestMultiError ¶
type CreateRoleRequestMultiError []error
CreateRoleRequestMultiError is an error wrapping multiple validation errors returned by CreateRoleRequest.ValidateAll() if the designated constraints aren't met.
func (CreateRoleRequestMultiError) AllErrors ¶
func (m CreateRoleRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CreateRoleRequestMultiError) Error ¶
func (m CreateRoleRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CreateRoleRequestValidationError ¶
type CreateRoleRequestValidationError struct {
// contains filtered or unexported fields
}
CreateRoleRequestValidationError is the validation error returned by CreateRoleRequest.Validate if the designated constraints aren't met.
func (CreateRoleRequestValidationError) Cause ¶
func (e CreateRoleRequestValidationError) Cause() error
Cause function returns cause value.
func (CreateRoleRequestValidationError) Error ¶
func (e CreateRoleRequestValidationError) Error() string
Error satisfies the builtin error interface
func (CreateRoleRequestValidationError) ErrorName ¶
func (e CreateRoleRequestValidationError) ErrorName() string
ErrorName returns error name.
func (CreateRoleRequestValidationError) Field ¶
func (e CreateRoleRequestValidationError) Field() string
Field function returns field value.
func (CreateRoleRequestValidationError) Key ¶
func (e CreateRoleRequestValidationError) Key() bool
Key function returns key value.
func (CreateRoleRequestValidationError) Reason ¶
func (e CreateRoleRequestValidationError) Reason() string
Reason function returns reason value.
type CreateUserGroupRequest ¶
type CreateUserGroupRequest struct { Users []uint64 `protobuf:"varint,1,rep,packed,name=users,proto3" json:"users,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Word string `protobuf:"bytes,3,opt,name=word,proto3" json:"word,omitempty"` Action *string `protobuf:"bytes,4,opt,name=action,proto3,oneof" json:"action,omitempty"` // contains filtered or unexported fields }
func (*CreateUserGroupRequest) Descriptor
deprecated
func (*CreateUserGroupRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateUserGroupRequest.ProtoReflect.Descriptor instead.
func (*CreateUserGroupRequest) GetAction ¶
func (x *CreateUserGroupRequest) GetAction() string
func (*CreateUserGroupRequest) GetName ¶
func (x *CreateUserGroupRequest) GetName() string
func (*CreateUserGroupRequest) GetUsers ¶
func (x *CreateUserGroupRequest) GetUsers() []uint64
func (*CreateUserGroupRequest) GetWord ¶
func (x *CreateUserGroupRequest) GetWord() string
func (*CreateUserGroupRequest) ProtoMessage ¶
func (*CreateUserGroupRequest) ProtoMessage()
func (*CreateUserGroupRequest) ProtoReflect ¶
func (x *CreateUserGroupRequest) ProtoReflect() protoreflect.Message
func (*CreateUserGroupRequest) Reset ¶
func (x *CreateUserGroupRequest) Reset()
func (*CreateUserGroupRequest) String ¶
func (x *CreateUserGroupRequest) String() string
func (*CreateUserGroupRequest) Validate ¶
func (m *CreateUserGroupRequest) Validate() error
Validate checks the field values on CreateUserGroupRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*CreateUserGroupRequest) ValidateAll ¶
func (m *CreateUserGroupRequest) ValidateAll() error
ValidateAll checks the field values on CreateUserGroupRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in CreateUserGroupRequestMultiError, or nil if none found.
type CreateUserGroupRequestMultiError ¶
type CreateUserGroupRequestMultiError []error
CreateUserGroupRequestMultiError is an error wrapping multiple validation errors returned by CreateUserGroupRequest.ValidateAll() if the designated constraints aren't met.
func (CreateUserGroupRequestMultiError) AllErrors ¶
func (m CreateUserGroupRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CreateUserGroupRequestMultiError) Error ¶
func (m CreateUserGroupRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CreateUserGroupRequestValidationError ¶
type CreateUserGroupRequestValidationError struct {
// contains filtered or unexported fields
}
CreateUserGroupRequestValidationError is the validation error returned by CreateUserGroupRequest.Validate if the designated constraints aren't met.
func (CreateUserGroupRequestValidationError) Cause ¶
func (e CreateUserGroupRequestValidationError) Cause() error
Cause function returns cause value.
func (CreateUserGroupRequestValidationError) Error ¶
func (e CreateUserGroupRequestValidationError) Error() string
Error satisfies the builtin error interface
func (CreateUserGroupRequestValidationError) ErrorName ¶
func (e CreateUserGroupRequestValidationError) ErrorName() string
ErrorName returns error name.
func (CreateUserGroupRequestValidationError) Field ¶
func (e CreateUserGroupRequestValidationError) Field() string
Field function returns field value.
func (CreateUserGroupRequestValidationError) Key ¶
func (e CreateUserGroupRequestValidationError) Key() bool
Key function returns key value.
func (CreateUserGroupRequestValidationError) Reason ¶
func (e CreateUserGroupRequestValidationError) Reason() string
Reason function returns reason value.
type FindActionReply ¶
type FindActionReply struct { Page *Page `protobuf:"bytes,1,opt,name=page,proto3" json:"page,omitempty"` List []*Action `protobuf:"bytes,2,rep,name=list,proto3" json:"list,omitempty"` // contains filtered or unexported fields }
func (*FindActionReply) Descriptor
deprecated
func (*FindActionReply) Descriptor() ([]byte, []int)
Deprecated: Use FindActionReply.ProtoReflect.Descriptor instead.
func (*FindActionReply) GetList ¶
func (x *FindActionReply) GetList() []*Action
func (*FindActionReply) GetPage ¶
func (x *FindActionReply) GetPage() *Page
func (*FindActionReply) ProtoMessage ¶
func (*FindActionReply) ProtoMessage()
func (*FindActionReply) ProtoReflect ¶
func (x *FindActionReply) ProtoReflect() protoreflect.Message
func (*FindActionReply) Reset ¶
func (x *FindActionReply) Reset()
func (*FindActionReply) String ¶
func (x *FindActionReply) String() string
func (*FindActionReply) Validate ¶
func (m *FindActionReply) Validate() error
Validate checks the field values on FindActionReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*FindActionReply) ValidateAll ¶
func (m *FindActionReply) ValidateAll() error
ValidateAll checks the field values on FindActionReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in FindActionReplyMultiError, or nil if none found.
type FindActionReplyMultiError ¶
type FindActionReplyMultiError []error
FindActionReplyMultiError is an error wrapping multiple validation errors returned by FindActionReply.ValidateAll() if the designated constraints aren't met.
func (FindActionReplyMultiError) AllErrors ¶
func (m FindActionReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (FindActionReplyMultiError) Error ¶
func (m FindActionReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type FindActionReplyValidationError ¶
type FindActionReplyValidationError struct {
// contains filtered or unexported fields
}
FindActionReplyValidationError is the validation error returned by FindActionReply.Validate if the designated constraints aren't met.
func (FindActionReplyValidationError) Cause ¶
func (e FindActionReplyValidationError) Cause() error
Cause function returns cause value.
func (FindActionReplyValidationError) Error ¶
func (e FindActionReplyValidationError) Error() string
Error satisfies the builtin error interface
func (FindActionReplyValidationError) ErrorName ¶
func (e FindActionReplyValidationError) ErrorName() string
ErrorName returns error name.
func (FindActionReplyValidationError) Field ¶
func (e FindActionReplyValidationError) Field() string
Field function returns field value.
func (FindActionReplyValidationError) Key ¶
func (e FindActionReplyValidationError) Key() bool
Key function returns key value.
func (FindActionReplyValidationError) Reason ¶
func (e FindActionReplyValidationError) Reason() string
Reason function returns reason value.
type FindActionRequest ¶
type FindActionRequest struct { Page *Page `protobuf:"bytes,1,opt,name=page,proto3" json:"page,omitempty"` Code *string `protobuf:"bytes,2,opt,name=code,proto3,oneof" json:"code,omitempty"` Name *string `protobuf:"bytes,3,opt,name=name,proto3,oneof" json:"name,omitempty"` Word *string `protobuf:"bytes,4,opt,name=word,proto3,oneof" json:"word,omitempty"` Resource *string `protobuf:"bytes,5,opt,name=resource,proto3,oneof" json:"resource,omitempty"` // contains filtered or unexported fields }
func (*FindActionRequest) Descriptor
deprecated
func (*FindActionRequest) Descriptor() ([]byte, []int)
Deprecated: Use FindActionRequest.ProtoReflect.Descriptor instead.
func (*FindActionRequest) GetCode ¶
func (x *FindActionRequest) GetCode() string
func (*FindActionRequest) GetName ¶
func (x *FindActionRequest) GetName() string
func (*FindActionRequest) GetPage ¶
func (x *FindActionRequest) GetPage() *Page
func (*FindActionRequest) GetResource ¶
func (x *FindActionRequest) GetResource() string
func (*FindActionRequest) GetWord ¶
func (x *FindActionRequest) GetWord() string
func (*FindActionRequest) ProtoMessage ¶
func (*FindActionRequest) ProtoMessage()
func (*FindActionRequest) ProtoReflect ¶
func (x *FindActionRequest) ProtoReflect() protoreflect.Message
func (*FindActionRequest) Reset ¶
func (x *FindActionRequest) Reset()
func (*FindActionRequest) String ¶
func (x *FindActionRequest) String() string
func (*FindActionRequest) Validate ¶
func (m *FindActionRequest) Validate() error
Validate checks the field values on FindActionRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*FindActionRequest) ValidateAll ¶
func (m *FindActionRequest) ValidateAll() error
ValidateAll checks the field values on FindActionRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in FindActionRequestMultiError, or nil if none found.
type FindActionRequestMultiError ¶
type FindActionRequestMultiError []error
FindActionRequestMultiError is an error wrapping multiple validation errors returned by FindActionRequest.ValidateAll() if the designated constraints aren't met.
func (FindActionRequestMultiError) AllErrors ¶
func (m FindActionRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (FindActionRequestMultiError) Error ¶
func (m FindActionRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type FindActionRequestValidationError ¶
type FindActionRequestValidationError struct {
// contains filtered or unexported fields
}
FindActionRequestValidationError is the validation error returned by FindActionRequest.Validate if the designated constraints aren't met.
func (FindActionRequestValidationError) Cause ¶
func (e FindActionRequestValidationError) Cause() error
Cause function returns cause value.
func (FindActionRequestValidationError) Error ¶
func (e FindActionRequestValidationError) Error() string
Error satisfies the builtin error interface
func (FindActionRequestValidationError) ErrorName ¶
func (e FindActionRequestValidationError) ErrorName() string
ErrorName returns error name.
func (FindActionRequestValidationError) Field ¶
func (e FindActionRequestValidationError) Field() string
Field function returns field value.
func (FindActionRequestValidationError) Key ¶
func (e FindActionRequestValidationError) Key() bool
Key function returns key value.
func (FindActionRequestValidationError) Reason ¶
func (e FindActionRequestValidationError) Reason() string
Reason function returns reason value.
type FindRoleReply ¶
type FindRoleReply struct { Page *Page `protobuf:"bytes,1,opt,name=page,proto3" json:"page,omitempty"` List []*Role `protobuf:"bytes,2,rep,name=list,proto3" json:"list,omitempty"` // contains filtered or unexported fields }
func (*FindRoleReply) Descriptor
deprecated
func (*FindRoleReply) Descriptor() ([]byte, []int)
Deprecated: Use FindRoleReply.ProtoReflect.Descriptor instead.
func (*FindRoleReply) GetList ¶
func (x *FindRoleReply) GetList() []*Role
func (*FindRoleReply) GetPage ¶
func (x *FindRoleReply) GetPage() *Page
func (*FindRoleReply) ProtoMessage ¶
func (*FindRoleReply) ProtoMessage()
func (*FindRoleReply) ProtoReflect ¶
func (x *FindRoleReply) ProtoReflect() protoreflect.Message
func (*FindRoleReply) Reset ¶
func (x *FindRoleReply) Reset()
func (*FindRoleReply) String ¶
func (x *FindRoleReply) String() string
func (*FindRoleReply) Validate ¶
func (m *FindRoleReply) Validate() error
Validate checks the field values on FindRoleReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*FindRoleReply) ValidateAll ¶
func (m *FindRoleReply) ValidateAll() error
ValidateAll checks the field values on FindRoleReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in FindRoleReplyMultiError, or nil if none found.
type FindRoleReplyMultiError ¶
type FindRoleReplyMultiError []error
FindRoleReplyMultiError is an error wrapping multiple validation errors returned by FindRoleReply.ValidateAll() if the designated constraints aren't met.
func (FindRoleReplyMultiError) AllErrors ¶
func (m FindRoleReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (FindRoleReplyMultiError) Error ¶
func (m FindRoleReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type FindRoleReplyValidationError ¶
type FindRoleReplyValidationError struct {
// contains filtered or unexported fields
}
FindRoleReplyValidationError is the validation error returned by FindRoleReply.Validate if the designated constraints aren't met.
func (FindRoleReplyValidationError) Cause ¶
func (e FindRoleReplyValidationError) Cause() error
Cause function returns cause value.
func (FindRoleReplyValidationError) Error ¶
func (e FindRoleReplyValidationError) Error() string
Error satisfies the builtin error interface
func (FindRoleReplyValidationError) ErrorName ¶
func (e FindRoleReplyValidationError) ErrorName() string
ErrorName returns error name.
func (FindRoleReplyValidationError) Field ¶
func (e FindRoleReplyValidationError) Field() string
Field function returns field value.
func (FindRoleReplyValidationError) Key ¶
func (e FindRoleReplyValidationError) Key() bool
Key function returns key value.
func (FindRoleReplyValidationError) Reason ¶
func (e FindRoleReplyValidationError) Reason() string
Reason function returns reason value.
type FindRoleRequest ¶
type FindRoleRequest struct { Page *Page `protobuf:"bytes,1,opt,name=page,proto3" json:"page,omitempty"` Name *string `protobuf:"bytes,2,opt,name=name,proto3,oneof" json:"name,omitempty"` Word *string `protobuf:"bytes,3,opt,name=word,proto3,oneof" json:"word,omitempty"` Action *string `protobuf:"bytes,4,opt,name=action,proto3,oneof" json:"action,omitempty"` // contains filtered or unexported fields }
func (*FindRoleRequest) Descriptor
deprecated
func (*FindRoleRequest) Descriptor() ([]byte, []int)
Deprecated: Use FindRoleRequest.ProtoReflect.Descriptor instead.
func (*FindRoleRequest) GetAction ¶
func (x *FindRoleRequest) GetAction() string
func (*FindRoleRequest) GetName ¶
func (x *FindRoleRequest) GetName() string
func (*FindRoleRequest) GetPage ¶
func (x *FindRoleRequest) GetPage() *Page
func (*FindRoleRequest) GetWord ¶
func (x *FindRoleRequest) GetWord() string
func (*FindRoleRequest) ProtoMessage ¶
func (*FindRoleRequest) ProtoMessage()
func (*FindRoleRequest) ProtoReflect ¶
func (x *FindRoleRequest) ProtoReflect() protoreflect.Message
func (*FindRoleRequest) Reset ¶
func (x *FindRoleRequest) Reset()
func (*FindRoleRequest) String ¶
func (x *FindRoleRequest) String() string
func (*FindRoleRequest) Validate ¶
func (m *FindRoleRequest) Validate() error
Validate checks the field values on FindRoleRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*FindRoleRequest) ValidateAll ¶
func (m *FindRoleRequest) ValidateAll() error
ValidateAll checks the field values on FindRoleRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in FindRoleRequestMultiError, or nil if none found.
type FindRoleRequestMultiError ¶
type FindRoleRequestMultiError []error
FindRoleRequestMultiError is an error wrapping multiple validation errors returned by FindRoleRequest.ValidateAll() if the designated constraints aren't met.
func (FindRoleRequestMultiError) AllErrors ¶
func (m FindRoleRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (FindRoleRequestMultiError) Error ¶
func (m FindRoleRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type FindRoleRequestValidationError ¶
type FindRoleRequestValidationError struct {
// contains filtered or unexported fields
}
FindRoleRequestValidationError is the validation error returned by FindRoleRequest.Validate if the designated constraints aren't met.
func (FindRoleRequestValidationError) Cause ¶
func (e FindRoleRequestValidationError) Cause() error
Cause function returns cause value.
func (FindRoleRequestValidationError) Error ¶
func (e FindRoleRequestValidationError) Error() string
Error satisfies the builtin error interface
func (FindRoleRequestValidationError) ErrorName ¶
func (e FindRoleRequestValidationError) ErrorName() string
ErrorName returns error name.
func (FindRoleRequestValidationError) Field ¶
func (e FindRoleRequestValidationError) Field() string
Field function returns field value.
func (FindRoleRequestValidationError) Key ¶
func (e FindRoleRequestValidationError) Key() bool
Key function returns key value.
func (FindRoleRequestValidationError) Reason ¶
func (e FindRoleRequestValidationError) Reason() string
Reason function returns reason value.
type FindUserGroupReply ¶
type FindUserGroupReply struct { Page *Page `protobuf:"bytes,1,opt,name=page,proto3" json:"page,omitempty"` List []*UserGroup `protobuf:"bytes,2,rep,name=list,proto3" json:"list,omitempty"` // contains filtered or unexported fields }
func (*FindUserGroupReply) Descriptor
deprecated
func (*FindUserGroupReply) Descriptor() ([]byte, []int)
Deprecated: Use FindUserGroupReply.ProtoReflect.Descriptor instead.
func (*FindUserGroupReply) GetList ¶
func (x *FindUserGroupReply) GetList() []*UserGroup
func (*FindUserGroupReply) GetPage ¶
func (x *FindUserGroupReply) GetPage() *Page
func (*FindUserGroupReply) ProtoMessage ¶
func (*FindUserGroupReply) ProtoMessage()
func (*FindUserGroupReply) ProtoReflect ¶
func (x *FindUserGroupReply) ProtoReflect() protoreflect.Message
func (*FindUserGroupReply) Reset ¶
func (x *FindUserGroupReply) Reset()
func (*FindUserGroupReply) String ¶
func (x *FindUserGroupReply) String() string
func (*FindUserGroupReply) Validate ¶
func (m *FindUserGroupReply) Validate() error
Validate checks the field values on FindUserGroupReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*FindUserGroupReply) ValidateAll ¶
func (m *FindUserGroupReply) ValidateAll() error
ValidateAll checks the field values on FindUserGroupReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in FindUserGroupReplyMultiError, or nil if none found.
type FindUserGroupReplyMultiError ¶
type FindUserGroupReplyMultiError []error
FindUserGroupReplyMultiError is an error wrapping multiple validation errors returned by FindUserGroupReply.ValidateAll() if the designated constraints aren't met.
func (FindUserGroupReplyMultiError) AllErrors ¶
func (m FindUserGroupReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (FindUserGroupReplyMultiError) Error ¶
func (m FindUserGroupReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type FindUserGroupReplyValidationError ¶
type FindUserGroupReplyValidationError struct {
// contains filtered or unexported fields
}
FindUserGroupReplyValidationError is the validation error returned by FindUserGroupReply.Validate if the designated constraints aren't met.
func (FindUserGroupReplyValidationError) Cause ¶
func (e FindUserGroupReplyValidationError) Cause() error
Cause function returns cause value.
func (FindUserGroupReplyValidationError) Error ¶
func (e FindUserGroupReplyValidationError) Error() string
Error satisfies the builtin error interface
func (FindUserGroupReplyValidationError) ErrorName ¶
func (e FindUserGroupReplyValidationError) ErrorName() string
ErrorName returns error name.
func (FindUserGroupReplyValidationError) Field ¶
func (e FindUserGroupReplyValidationError) Field() string
Field function returns field value.
func (FindUserGroupReplyValidationError) Key ¶
func (e FindUserGroupReplyValidationError) Key() bool
Key function returns key value.
func (FindUserGroupReplyValidationError) Reason ¶
func (e FindUserGroupReplyValidationError) Reason() string
Reason function returns reason value.
type FindUserGroupRequest ¶
type FindUserGroupRequest struct { Page *Page `protobuf:"bytes,1,opt,name=page,proto3" json:"page,omitempty"` Name *string `protobuf:"bytes,2,opt,name=name,proto3,oneof" json:"name,omitempty"` Word *string `protobuf:"bytes,3,opt,name=word,proto3,oneof" json:"word,omitempty"` Action *string `protobuf:"bytes,4,opt,name=action,proto3,oneof" json:"action,omitempty"` // contains filtered or unexported fields }
func (*FindUserGroupRequest) Descriptor
deprecated
func (*FindUserGroupRequest) Descriptor() ([]byte, []int)
Deprecated: Use FindUserGroupRequest.ProtoReflect.Descriptor instead.
func (*FindUserGroupRequest) GetAction ¶
func (x *FindUserGroupRequest) GetAction() string
func (*FindUserGroupRequest) GetName ¶
func (x *FindUserGroupRequest) GetName() string
func (*FindUserGroupRequest) GetPage ¶
func (x *FindUserGroupRequest) GetPage() *Page
func (*FindUserGroupRequest) GetWord ¶
func (x *FindUserGroupRequest) GetWord() string
func (*FindUserGroupRequest) ProtoMessage ¶
func (*FindUserGroupRequest) ProtoMessage()
func (*FindUserGroupRequest) ProtoReflect ¶
func (x *FindUserGroupRequest) ProtoReflect() protoreflect.Message
func (*FindUserGroupRequest) Reset ¶
func (x *FindUserGroupRequest) Reset()
func (*FindUserGroupRequest) String ¶
func (x *FindUserGroupRequest) String() string
func (*FindUserGroupRequest) Validate ¶
func (m *FindUserGroupRequest) Validate() error
Validate checks the field values on FindUserGroupRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*FindUserGroupRequest) ValidateAll ¶
func (m *FindUserGroupRequest) ValidateAll() error
ValidateAll checks the field values on FindUserGroupRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in FindUserGroupRequestMultiError, or nil if none found.
type FindUserGroupRequestMultiError ¶
type FindUserGroupRequestMultiError []error
FindUserGroupRequestMultiError is an error wrapping multiple validation errors returned by FindUserGroupRequest.ValidateAll() if the designated constraints aren't met.
func (FindUserGroupRequestMultiError) AllErrors ¶
func (m FindUserGroupRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (FindUserGroupRequestMultiError) Error ¶
func (m FindUserGroupRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type FindUserGroupRequestValidationError ¶
type FindUserGroupRequestValidationError struct {
// contains filtered or unexported fields
}
FindUserGroupRequestValidationError is the validation error returned by FindUserGroupRequest.Validate if the designated constraints aren't met.
func (FindUserGroupRequestValidationError) Cause ¶
func (e FindUserGroupRequestValidationError) Cause() error
Cause function returns cause value.
func (FindUserGroupRequestValidationError) Error ¶
func (e FindUserGroupRequestValidationError) Error() string
Error satisfies the builtin error interface
func (FindUserGroupRequestValidationError) ErrorName ¶
func (e FindUserGroupRequestValidationError) ErrorName() string
ErrorName returns error name.
func (FindUserGroupRequestValidationError) Field ¶
func (e FindUserGroupRequestValidationError) Field() string
Field function returns field value.
func (FindUserGroupRequestValidationError) Key ¶
func (e FindUserGroupRequestValidationError) Key() bool
Key function returns key value.
func (FindUserGroupRequestValidationError) Reason ¶
func (e FindUserGroupRequestValidationError) Reason() string
Reason function returns reason value.
type FindUserReply ¶
type FindUserReply struct { Page *Page `protobuf:"bytes,1,opt,name=page,proto3" json:"page,omitempty"` List []*User `protobuf:"bytes,2,rep,name=list,proto3" json:"list,omitempty"` // contains filtered or unexported fields }
func (*FindUserReply) Descriptor
deprecated
func (*FindUserReply) Descriptor() ([]byte, []int)
Deprecated: Use FindUserReply.ProtoReflect.Descriptor instead.
func (*FindUserReply) GetList ¶
func (x *FindUserReply) GetList() []*User
func (*FindUserReply) GetPage ¶
func (x *FindUserReply) GetPage() *Page
func (*FindUserReply) ProtoMessage ¶
func (*FindUserReply) ProtoMessage()
func (*FindUserReply) ProtoReflect ¶
func (x *FindUserReply) ProtoReflect() protoreflect.Message
func (*FindUserReply) Reset ¶
func (x *FindUserReply) Reset()
func (*FindUserReply) String ¶
func (x *FindUserReply) String() string
func (*FindUserReply) Validate ¶
func (m *FindUserReply) Validate() error
Validate checks the field values on FindUserReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*FindUserReply) ValidateAll ¶
func (m *FindUserReply) ValidateAll() error
ValidateAll checks the field values on FindUserReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in FindUserReplyMultiError, or nil if none found.
type FindUserReplyMultiError ¶
type FindUserReplyMultiError []error
FindUserReplyMultiError is an error wrapping multiple validation errors returned by FindUserReply.ValidateAll() if the designated constraints aren't met.
func (FindUserReplyMultiError) AllErrors ¶
func (m FindUserReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (FindUserReplyMultiError) Error ¶
func (m FindUserReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type FindUserReplyValidationError ¶
type FindUserReplyValidationError struct {
// contains filtered or unexported fields
}
FindUserReplyValidationError is the validation error returned by FindUserReply.Validate if the designated constraints aren't met.
func (FindUserReplyValidationError) Cause ¶
func (e FindUserReplyValidationError) Cause() error
Cause function returns cause value.
func (FindUserReplyValidationError) Error ¶
func (e FindUserReplyValidationError) Error() string
Error satisfies the builtin error interface
func (FindUserReplyValidationError) ErrorName ¶
func (e FindUserReplyValidationError) ErrorName() string
ErrorName returns error name.
func (FindUserReplyValidationError) Field ¶
func (e FindUserReplyValidationError) Field() string
Field function returns field value.
func (FindUserReplyValidationError) Key ¶
func (e FindUserReplyValidationError) Key() bool
Key function returns key value.
func (FindUserReplyValidationError) Reason ¶
func (e FindUserReplyValidationError) Reason() string
Reason function returns reason value.
type FindUserRequest ¶
type FindUserRequest struct { Page *Page `protobuf:"bytes,1,opt,name=page,proto3" json:"page,omitempty"` StartCreatedAt *string `protobuf:"bytes,2,opt,name=start_created_at,json=startCreatedAt,proto3,oneof" json:"start_created_at,omitempty"` EndCreatedAt *string `protobuf:"bytes,3,opt,name=end_created_at,json=endCreatedAt,proto3,oneof" json:"end_created_at,omitempty"` StartUpdatedAt *string `protobuf:"bytes,4,opt,name=start_updated_at,json=startUpdatedAt,proto3,oneof" json:"start_updated_at,omitempty"` EndUpdatedAt *string `protobuf:"bytes,5,opt,name=end_updated_at,json=endUpdatedAt,proto3,oneof" json:"end_updated_at,omitempty"` Username *string `protobuf:"bytes,6,opt,name=username,proto3,oneof" json:"username,omitempty"` Code *string `protobuf:"bytes,7,opt,name=code,proto3,oneof" json:"code,omitempty"` Mobile *string `protobuf:"bytes,8,opt,name=mobile,proto3,oneof" json:"mobile,omitempty"` Locked *uint64 `protobuf:"varint,9,opt,name=locked,proto3,oneof" json:"locked,omitempty"` // contains filtered or unexported fields }
func (*FindUserRequest) Descriptor
deprecated
func (*FindUserRequest) Descriptor() ([]byte, []int)
Deprecated: Use FindUserRequest.ProtoReflect.Descriptor instead.
func (*FindUserRequest) GetCode ¶
func (x *FindUserRequest) GetCode() string
func (*FindUserRequest) GetEndCreatedAt ¶
func (x *FindUserRequest) GetEndCreatedAt() string
func (*FindUserRequest) GetEndUpdatedAt ¶
func (x *FindUserRequest) GetEndUpdatedAt() string
func (*FindUserRequest) GetLocked ¶
func (x *FindUserRequest) GetLocked() uint64
func (*FindUserRequest) GetMobile ¶
func (x *FindUserRequest) GetMobile() string
func (*FindUserRequest) GetPage ¶
func (x *FindUserRequest) GetPage() *Page
func (*FindUserRequest) GetStartCreatedAt ¶
func (x *FindUserRequest) GetStartCreatedAt() string
func (*FindUserRequest) GetStartUpdatedAt ¶
func (x *FindUserRequest) GetStartUpdatedAt() string
func (*FindUserRequest) GetUsername ¶
func (x *FindUserRequest) GetUsername() string
func (*FindUserRequest) ProtoMessage ¶
func (*FindUserRequest) ProtoMessage()
func (*FindUserRequest) ProtoReflect ¶
func (x *FindUserRequest) ProtoReflect() protoreflect.Message
func (*FindUserRequest) Reset ¶
func (x *FindUserRequest) Reset()
func (*FindUserRequest) String ¶
func (x *FindUserRequest) String() string
func (*FindUserRequest) Validate ¶
func (m *FindUserRequest) Validate() error
Validate checks the field values on FindUserRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*FindUserRequest) ValidateAll ¶
func (m *FindUserRequest) ValidateAll() error
ValidateAll checks the field values on FindUserRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in FindUserRequestMultiError, or nil if none found.
type FindUserRequestMultiError ¶
type FindUserRequestMultiError []error
FindUserRequestMultiError is an error wrapping multiple validation errors returned by FindUserRequest.ValidateAll() if the designated constraints aren't met.
func (FindUserRequestMultiError) AllErrors ¶
func (m FindUserRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (FindUserRequestMultiError) Error ¶
func (m FindUserRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type FindUserRequestValidationError ¶
type FindUserRequestValidationError struct {
// contains filtered or unexported fields
}
FindUserRequestValidationError is the validation error returned by FindUserRequest.Validate if the designated constraints aren't met.
func (FindUserRequestValidationError) Cause ¶
func (e FindUserRequestValidationError) Cause() error
Cause function returns cause value.
func (FindUserRequestValidationError) Error ¶
func (e FindUserRequestValidationError) Error() string
Error satisfies the builtin error interface
func (FindUserRequestValidationError) ErrorName ¶
func (e FindUserRequestValidationError) ErrorName() string
ErrorName returns error name.
func (FindUserRequestValidationError) Field ¶
func (e FindUserRequestValidationError) Field() string
Field function returns field value.
func (FindUserRequestValidationError) Key ¶
func (e FindUserRequestValidationError) Key() bool
Key function returns key value.
func (FindUserRequestValidationError) Reason ¶
func (e FindUserRequestValidationError) Reason() string
Reason function returns reason value.
type IdempotentReply ¶
type IdempotentReply struct { Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` // contains filtered or unexported fields }
func (*IdempotentReply) Descriptor
deprecated
func (*IdempotentReply) Descriptor() ([]byte, []int)
Deprecated: Use IdempotentReply.ProtoReflect.Descriptor instead.
func (*IdempotentReply) GetToken ¶
func (x *IdempotentReply) GetToken() string
func (*IdempotentReply) ProtoMessage ¶
func (*IdempotentReply) ProtoMessage()
func (*IdempotentReply) ProtoReflect ¶
func (x *IdempotentReply) ProtoReflect() protoreflect.Message
func (*IdempotentReply) Reset ¶
func (x *IdempotentReply) Reset()
func (*IdempotentReply) String ¶
func (x *IdempotentReply) String() string
func (*IdempotentReply) Validate ¶
func (m *IdempotentReply) Validate() error
Validate checks the field values on IdempotentReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*IdempotentReply) ValidateAll ¶
func (m *IdempotentReply) ValidateAll() error
ValidateAll checks the field values on IdempotentReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in IdempotentReplyMultiError, or nil if none found.
type IdempotentReplyMultiError ¶
type IdempotentReplyMultiError []error
IdempotentReplyMultiError is an error wrapping multiple validation errors returned by IdempotentReply.ValidateAll() if the designated constraints aren't met.
func (IdempotentReplyMultiError) AllErrors ¶
func (m IdempotentReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (IdempotentReplyMultiError) Error ¶
func (m IdempotentReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type IdempotentReplyValidationError ¶
type IdempotentReplyValidationError struct {
// contains filtered or unexported fields
}
IdempotentReplyValidationError is the validation error returned by IdempotentReply.Validate if the designated constraints aren't met.
func (IdempotentReplyValidationError) Cause ¶
func (e IdempotentReplyValidationError) Cause() error
Cause function returns cause value.
func (IdempotentReplyValidationError) Error ¶
func (e IdempotentReplyValidationError) Error() string
Error satisfies the builtin error interface
func (IdempotentReplyValidationError) ErrorName ¶
func (e IdempotentReplyValidationError) ErrorName() string
ErrorName returns error name.
func (IdempotentReplyValidationError) Field ¶
func (e IdempotentReplyValidationError) Field() string
Field function returns field value.
func (IdempotentReplyValidationError) Key ¶
func (e IdempotentReplyValidationError) Key() bool
Key function returns key value.
func (IdempotentReplyValidationError) Reason ¶
func (e IdempotentReplyValidationError) Reason() string
Reason function returns reason value.
type IdsRequest ¶
type IdsRequest struct { Ids string `protobuf:"bytes,1,opt,name=ids,proto3" json:"ids,omitempty"` // contains filtered or unexported fields }
func (*IdsRequest) Descriptor
deprecated
func (*IdsRequest) Descriptor() ([]byte, []int)
Deprecated: Use IdsRequest.ProtoReflect.Descriptor instead.
func (*IdsRequest) GetIds ¶
func (x *IdsRequest) GetIds() string
func (*IdsRequest) ProtoMessage ¶
func (*IdsRequest) ProtoMessage()
func (*IdsRequest) ProtoReflect ¶
func (x *IdsRequest) ProtoReflect() protoreflect.Message
func (*IdsRequest) Reset ¶
func (x *IdsRequest) Reset()
func (*IdsRequest) String ¶
func (x *IdsRequest) String() string
func (*IdsRequest) Validate ¶
func (m *IdsRequest) Validate() error
Validate checks the field values on IdsRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*IdsRequest) ValidateAll ¶
func (m *IdsRequest) ValidateAll() error
ValidateAll checks the field values on IdsRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in IdsRequestMultiError, or nil if none found.
type IdsRequestMultiError ¶
type IdsRequestMultiError []error
IdsRequestMultiError is an error wrapping multiple validation errors returned by IdsRequest.ValidateAll() if the designated constraints aren't met.
func (IdsRequestMultiError) AllErrors ¶
func (m IdsRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (IdsRequestMultiError) Error ¶
func (m IdsRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type IdsRequestValidationError ¶
type IdsRequestValidationError struct {
// contains filtered or unexported fields
}
IdsRequestValidationError is the validation error returned by IdsRequest.Validate if the designated constraints aren't met.
func (IdsRequestValidationError) Cause ¶
func (e IdsRequestValidationError) Cause() error
Cause function returns cause value.
func (IdsRequestValidationError) Error ¶
func (e IdsRequestValidationError) Error() string
Error satisfies the builtin error interface
func (IdsRequestValidationError) ErrorName ¶
func (e IdsRequestValidationError) ErrorName() string
ErrorName returns error name.
func (IdsRequestValidationError) Field ¶
func (e IdsRequestValidationError) Field() string
Field function returns field value.
func (IdsRequestValidationError) Key ¶
func (e IdsRequestValidationError) Key() bool
Key function returns key value.
func (IdsRequestValidationError) Reason ¶
func (e IdsRequestValidationError) Reason() string
Reason function returns reason value.
type InfoReply ¶
type InfoReply struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"` Code string `protobuf:"bytes,3,opt,name=code,proto3" json:"code,omitempty"` Mobile string `protobuf:"bytes,4,opt,name=mobile,proto3" json:"mobile,omitempty"` Avatar string `protobuf:"bytes,5,opt,name=avatar,proto3" json:"avatar,omitempty"` Nickname string `protobuf:"bytes,6,opt,name=nickname,proto3" json:"nickname,omitempty"` Introduction string `protobuf:"bytes,7,opt,name=introduction,proto3" json:"introduction,omitempty"` Permission *Permission `protobuf:"bytes,8,opt,name=permission,proto3" json:"permission,omitempty"` // contains filtered or unexported fields }
func (*InfoReply) Descriptor
deprecated
func (*InfoReply) GetIntroduction ¶
func (*InfoReply) GetNickname ¶
func (*InfoReply) GetPermission ¶
func (x *InfoReply) GetPermission() *Permission
func (*InfoReply) GetUsername ¶
func (*InfoReply) ProtoMessage ¶
func (*InfoReply) ProtoMessage()
func (*InfoReply) ProtoReflect ¶
func (x *InfoReply) ProtoReflect() protoreflect.Message
func (*InfoReply) Validate ¶
Validate checks the field values on InfoReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*InfoReply) ValidateAll ¶
ValidateAll checks the field values on InfoReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in InfoReplyMultiError, or nil if none found.
type InfoReplyMultiError ¶
type InfoReplyMultiError []error
InfoReplyMultiError is an error wrapping multiple validation errors returned by InfoReply.ValidateAll() if the designated constraints aren't met.
func (InfoReplyMultiError) AllErrors ¶
func (m InfoReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (InfoReplyMultiError) Error ¶
func (m InfoReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type InfoReplyValidationError ¶
type InfoReplyValidationError struct {
// contains filtered or unexported fields
}
InfoReplyValidationError is the validation error returned by InfoReply.Validate if the designated constraints aren't met.
func (InfoReplyValidationError) Cause ¶
func (e InfoReplyValidationError) Cause() error
Cause function returns cause value.
func (InfoReplyValidationError) Error ¶
func (e InfoReplyValidationError) Error() string
Error satisfies the builtin error interface
func (InfoReplyValidationError) ErrorName ¶
func (e InfoReplyValidationError) ErrorName() string
ErrorName returns error name.
func (InfoReplyValidationError) Field ¶
func (e InfoReplyValidationError) Field() string
Field function returns field value.
func (InfoReplyValidationError) Key ¶
func (e InfoReplyValidationError) Key() bool
Key function returns key value.
func (InfoReplyValidationError) Reason ¶
func (e InfoReplyValidationError) Reason() string
Reason function returns reason value.
type LoginReply ¶
type LoginReply struct { Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` Expires string `protobuf:"bytes,2,opt,name=expires,proto3" json:"expires,omitempty"` // contains filtered or unexported fields }
func (*LoginReply) Descriptor
deprecated
func (*LoginReply) Descriptor() ([]byte, []int)
Deprecated: Use LoginReply.ProtoReflect.Descriptor instead.
func (*LoginReply) GetExpires ¶
func (x *LoginReply) GetExpires() string
func (*LoginReply) GetToken ¶
func (x *LoginReply) GetToken() string
func (*LoginReply) ProtoMessage ¶
func (*LoginReply) ProtoMessage()
func (*LoginReply) ProtoReflect ¶
func (x *LoginReply) ProtoReflect() protoreflect.Message
func (*LoginReply) Reset ¶
func (x *LoginReply) Reset()
func (*LoginReply) String ¶
func (x *LoginReply) String() string
func (*LoginReply) Validate ¶
func (m *LoginReply) Validate() error
Validate checks the field values on LoginReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*LoginReply) ValidateAll ¶
func (m *LoginReply) ValidateAll() error
ValidateAll checks the field values on LoginReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in LoginReplyMultiError, or nil if none found.
type LoginReplyMultiError ¶
type LoginReplyMultiError []error
LoginReplyMultiError is an error wrapping multiple validation errors returned by LoginReply.ValidateAll() if the designated constraints aren't met.
func (LoginReplyMultiError) AllErrors ¶
func (m LoginReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (LoginReplyMultiError) Error ¶
func (m LoginReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type LoginReplyValidationError ¶
type LoginReplyValidationError struct {
// contains filtered or unexported fields
}
LoginReplyValidationError is the validation error returned by LoginReply.Validate if the designated constraints aren't met.
func (LoginReplyValidationError) Cause ¶
func (e LoginReplyValidationError) Cause() error
Cause function returns cause value.
func (LoginReplyValidationError) Error ¶
func (e LoginReplyValidationError) Error() string
Error satisfies the builtin error interface
func (LoginReplyValidationError) ErrorName ¶
func (e LoginReplyValidationError) ErrorName() string
ErrorName returns error name.
func (LoginReplyValidationError) Field ¶
func (e LoginReplyValidationError) Field() string
Field function returns field value.
func (LoginReplyValidationError) Key ¶
func (e LoginReplyValidationError) Key() bool
Key function returns key value.
func (LoginReplyValidationError) Reason ¶
func (e LoginReplyValidationError) Reason() string
Reason function returns reason value.
type LoginRequest ¶
type LoginRequest 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"` CaptchaId *string `protobuf:"bytes,3,opt,name=captcha_id,json=captchaId,proto3,oneof" json:"captcha_id,omitempty"` CaptchaAnswer *string `protobuf:"bytes,4,opt,name=captcha_answer,json=captchaAnswer,proto3,oneof" json:"captcha_answer,omitempty"` // contains filtered or unexported fields }
func (*LoginRequest) Descriptor
deprecated
func (*LoginRequest) Descriptor() ([]byte, []int)
Deprecated: Use LoginRequest.ProtoReflect.Descriptor instead.
func (*LoginRequest) GetCaptchaAnswer ¶
func (x *LoginRequest) GetCaptchaAnswer() string
func (*LoginRequest) GetCaptchaId ¶
func (x *LoginRequest) GetCaptchaId() string
func (*LoginRequest) GetPassword ¶
func (x *LoginRequest) GetPassword() string
func (*LoginRequest) GetUsername ¶
func (x *LoginRequest) GetUsername() string
func (*LoginRequest) ProtoMessage ¶
func (*LoginRequest) ProtoMessage()
func (*LoginRequest) ProtoReflect ¶
func (x *LoginRequest) ProtoReflect() protoreflect.Message
func (*LoginRequest) Reset ¶
func (x *LoginRequest) Reset()
func (*LoginRequest) String ¶
func (x *LoginRequest) String() string
func (*LoginRequest) Validate ¶
func (m *LoginRequest) Validate() error
Validate checks the field values on LoginRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*LoginRequest) ValidateAll ¶
func (m *LoginRequest) ValidateAll() error
ValidateAll checks the field values on LoginRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in LoginRequestMultiError, or nil if none found.
type LoginRequestMultiError ¶
type LoginRequestMultiError []error
LoginRequestMultiError is an error wrapping multiple validation errors returned by LoginRequest.ValidateAll() if the designated constraints aren't met.
func (LoginRequestMultiError) AllErrors ¶
func (m LoginRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (LoginRequestMultiError) Error ¶
func (m LoginRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type LoginRequestValidationError ¶
type LoginRequestValidationError struct {
// contains filtered or unexported fields
}
LoginRequestValidationError is the validation error returned by LoginRequest.Validate if the designated constraints aren't met.
func (LoginRequestValidationError) Cause ¶
func (e LoginRequestValidationError) Cause() error
Cause function returns cause value.
func (LoginRequestValidationError) Error ¶
func (e LoginRequestValidationError) Error() string
Error satisfies the builtin error interface
func (LoginRequestValidationError) ErrorName ¶
func (e LoginRequestValidationError) ErrorName() string
ErrorName returns error name.
func (LoginRequestValidationError) Field ¶
func (e LoginRequestValidationError) Field() string
Field function returns field value.
func (LoginRequestValidationError) Key ¶
func (e LoginRequestValidationError) Key() bool
Key function returns key value.
func (LoginRequestValidationError) Reason ¶
func (e LoginRequestValidationError) Reason() string
Reason function returns reason value.
type Page ¶
type Page struct { Num uint64 `protobuf:"varint,1,opt,name=num,proto3" json:"num,omitempty"` Size uint64 `protobuf:"varint,2,opt,name=size,proto3" json:"size,omitempty"` Total int64 `protobuf:"varint,3,opt,name=total,proto3" json:"total,omitempty"` Disable bool `protobuf:"varint,4,opt,name=disable,proto3" json:"disable,omitempty"` // contains filtered or unexported fields }
func (*Page) Descriptor
deprecated
func (*Page) GetDisable ¶
func (*Page) ProtoMessage ¶
func (*Page) ProtoMessage()
func (*Page) ProtoReflect ¶
func (x *Page) ProtoReflect() protoreflect.Message
func (*Page) Validate ¶
Validate checks the field values on Page with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*Page) ValidateAll ¶
ValidateAll checks the field values on Page with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in PageMultiError, or nil if none found.
type PageMultiError ¶
type PageMultiError []error
PageMultiError is an error wrapping multiple validation errors returned by Page.ValidateAll() if the designated constraints aren't met.
func (PageMultiError) AllErrors ¶
func (m PageMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (PageMultiError) Error ¶
func (m PageMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type PageValidationError ¶
type PageValidationError struct {
// contains filtered or unexported fields
}
PageValidationError is the validation error returned by Page.Validate if the designated constraints aren't met.
func (PageValidationError) Cause ¶
func (e PageValidationError) Cause() error
Cause function returns cause value.
func (PageValidationError) Error ¶
func (e PageValidationError) Error() string
Error satisfies the builtin error interface
func (PageValidationError) ErrorName ¶
func (e PageValidationError) ErrorName() string
ErrorName returns error name.
func (PageValidationError) Field ¶
func (e PageValidationError) Field() string
Field function returns field value.
func (PageValidationError) Key ¶
func (e PageValidationError) Key() bool
Key function returns key value.
func (PageValidationError) Reason ¶
func (e PageValidationError) Reason() string
Reason function returns reason value.
type Permission ¶
type Permission struct { Resources []string `protobuf:"bytes,1,rep,name=resources,proto3" json:"resources,omitempty"` Menus []string `protobuf:"bytes,2,rep,name=menus,proto3" json:"menus,omitempty"` Btns []string `protobuf:"bytes,3,rep,name=btns,proto3" json:"btns,omitempty"` // contains filtered or unexported fields }
func (*Permission) Descriptor
deprecated
func (*Permission) Descriptor() ([]byte, []int)
Deprecated: Use Permission.ProtoReflect.Descriptor instead.
func (*Permission) GetBtns ¶
func (x *Permission) GetBtns() []string
func (*Permission) GetMenus ¶
func (x *Permission) GetMenus() []string
func (*Permission) GetResources ¶
func (x *Permission) GetResources() []string
func (*Permission) ProtoMessage ¶
func (*Permission) ProtoMessage()
func (*Permission) ProtoReflect ¶
func (x *Permission) ProtoReflect() protoreflect.Message
func (*Permission) Reset ¶
func (x *Permission) Reset()
func (*Permission) String ¶
func (x *Permission) String() string
func (*Permission) Validate ¶
func (m *Permission) Validate() error
Validate checks the field values on Permission with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*Permission) ValidateAll ¶
func (m *Permission) ValidateAll() error
ValidateAll checks the field values on Permission with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in PermissionMultiError, or nil if none found.
type PermissionMultiError ¶
type PermissionMultiError []error
PermissionMultiError is an error wrapping multiple validation errors returned by Permission.ValidateAll() if the designated constraints aren't met.
func (PermissionMultiError) AllErrors ¶
func (m PermissionMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (PermissionMultiError) Error ¶
func (m PermissionMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type PermissionReply ¶
type PermissionReply struct { Pass bool `protobuf:"varint,1,opt,name=pass,proto3" json:"pass,omitempty"` // contains filtered or unexported fields }
func (*PermissionReply) Descriptor
deprecated
func (*PermissionReply) Descriptor() ([]byte, []int)
Deprecated: Use PermissionReply.ProtoReflect.Descriptor instead.
func (*PermissionReply) GetPass ¶
func (x *PermissionReply) GetPass() bool
func (*PermissionReply) ProtoMessage ¶
func (*PermissionReply) ProtoMessage()
func (*PermissionReply) ProtoReflect ¶
func (x *PermissionReply) ProtoReflect() protoreflect.Message
func (*PermissionReply) Reset ¶
func (x *PermissionReply) Reset()
func (*PermissionReply) String ¶
func (x *PermissionReply) String() string
func (*PermissionReply) Validate ¶
func (m *PermissionReply) Validate() error
Validate checks the field values on PermissionReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*PermissionReply) ValidateAll ¶
func (m *PermissionReply) ValidateAll() error
ValidateAll checks the field values on PermissionReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in PermissionReplyMultiError, or nil if none found.
type PermissionReplyMultiError ¶
type PermissionReplyMultiError []error
PermissionReplyMultiError is an error wrapping multiple validation errors returned by PermissionReply.ValidateAll() if the designated constraints aren't met.
func (PermissionReplyMultiError) AllErrors ¶
func (m PermissionReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (PermissionReplyMultiError) Error ¶
func (m PermissionReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type PermissionReplyValidationError ¶
type PermissionReplyValidationError struct {
// contains filtered or unexported fields
}
PermissionReplyValidationError is the validation error returned by PermissionReply.Validate if the designated constraints aren't met.
func (PermissionReplyValidationError) Cause ¶
func (e PermissionReplyValidationError) Cause() error
Cause function returns cause value.
func (PermissionReplyValidationError) Error ¶
func (e PermissionReplyValidationError) Error() string
Error satisfies the builtin error interface
func (PermissionReplyValidationError) ErrorName ¶
func (e PermissionReplyValidationError) ErrorName() string
ErrorName returns error name.
func (PermissionReplyValidationError) Field ¶
func (e PermissionReplyValidationError) Field() string
Field function returns field value.
func (PermissionReplyValidationError) Key ¶
func (e PermissionReplyValidationError) Key() bool
Key function returns key value.
func (PermissionReplyValidationError) Reason ¶
func (e PermissionReplyValidationError) Reason() string
Reason function returns reason value.
type PermissionRequest ¶
type PermissionRequest struct { Resource string `protobuf:"bytes,1,opt,name=resource,proto3" json:"resource,omitempty"` // contains filtered or unexported fields }
func (*PermissionRequest) Descriptor
deprecated
func (*PermissionRequest) Descriptor() ([]byte, []int)
Deprecated: Use PermissionRequest.ProtoReflect.Descriptor instead.
func (*PermissionRequest) GetResource ¶
func (x *PermissionRequest) GetResource() string
func (*PermissionRequest) ProtoMessage ¶
func (*PermissionRequest) ProtoMessage()
func (*PermissionRequest) ProtoReflect ¶
func (x *PermissionRequest) ProtoReflect() protoreflect.Message
func (*PermissionRequest) Reset ¶
func (x *PermissionRequest) Reset()
func (*PermissionRequest) String ¶
func (x *PermissionRequest) String() string
func (*PermissionRequest) Validate ¶
func (m *PermissionRequest) Validate() error
Validate checks the field values on PermissionRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*PermissionRequest) ValidateAll ¶
func (m *PermissionRequest) ValidateAll() error
ValidateAll checks the field values on PermissionRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in PermissionRequestMultiError, or nil if none found.
type PermissionRequestMultiError ¶
type PermissionRequestMultiError []error
PermissionRequestMultiError is an error wrapping multiple validation errors returned by PermissionRequest.ValidateAll() if the designated constraints aren't met.
func (PermissionRequestMultiError) AllErrors ¶
func (m PermissionRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (PermissionRequestMultiError) Error ¶
func (m PermissionRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type PermissionRequestValidationError ¶
type PermissionRequestValidationError struct {
// contains filtered or unexported fields
}
PermissionRequestValidationError is the validation error returned by PermissionRequest.Validate if the designated constraints aren't met.
func (PermissionRequestValidationError) Cause ¶
func (e PermissionRequestValidationError) Cause() error
Cause function returns cause value.
func (PermissionRequestValidationError) Error ¶
func (e PermissionRequestValidationError) Error() string
Error satisfies the builtin error interface
func (PermissionRequestValidationError) ErrorName ¶
func (e PermissionRequestValidationError) ErrorName() string
ErrorName returns error name.
func (PermissionRequestValidationError) Field ¶
func (e PermissionRequestValidationError) Field() string
Field function returns field value.
func (PermissionRequestValidationError) Key ¶
func (e PermissionRequestValidationError) Key() bool
Key function returns key value.
func (PermissionRequestValidationError) Reason ¶
func (e PermissionRequestValidationError) Reason() string
Reason function returns reason value.
type PermissionValidationError ¶
type PermissionValidationError struct {
// contains filtered or unexported fields
}
PermissionValidationError is the validation error returned by Permission.Validate if the designated constraints aren't met.
func (PermissionValidationError) Cause ¶
func (e PermissionValidationError) Cause() error
Cause function returns cause value.
func (PermissionValidationError) Error ¶
func (e PermissionValidationError) Error() string
Error satisfies the builtin error interface
func (PermissionValidationError) ErrorName ¶
func (e PermissionValidationError) ErrorName() string
ErrorName returns error name.
func (PermissionValidationError) Field ¶
func (e PermissionValidationError) Field() string
Field function returns field value.
func (PermissionValidationError) Key ¶
func (e PermissionValidationError) Key() bool
Key function returns key value.
func (PermissionValidationError) Reason ¶
func (e PermissionValidationError) Reason() string
Reason function returns reason value.
type PwdRequest ¶
type PwdRequest struct { Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"` OldPassword string `protobuf:"bytes,2,opt,name=old_password,json=oldPassword,proto3" json:"old_password,omitempty"` NewPassword string `protobuf:"bytes,3,opt,name=new_password,json=newPassword,proto3" json:"new_password,omitempty"` // contains filtered or unexported fields }
func (*PwdRequest) Descriptor
deprecated
func (*PwdRequest) Descriptor() ([]byte, []int)
Deprecated: Use PwdRequest.ProtoReflect.Descriptor instead.
func (*PwdRequest) GetNewPassword ¶
func (x *PwdRequest) GetNewPassword() string
func (*PwdRequest) GetOldPassword ¶
func (x *PwdRequest) GetOldPassword() string
func (*PwdRequest) GetUsername ¶
func (x *PwdRequest) GetUsername() string
func (*PwdRequest) ProtoMessage ¶
func (*PwdRequest) ProtoMessage()
func (*PwdRequest) ProtoReflect ¶
func (x *PwdRequest) ProtoReflect() protoreflect.Message
func (*PwdRequest) Reset ¶
func (x *PwdRequest) Reset()
func (*PwdRequest) String ¶
func (x *PwdRequest) String() string
func (*PwdRequest) Validate ¶
func (m *PwdRequest) Validate() error
Validate checks the field values on PwdRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*PwdRequest) ValidateAll ¶
func (m *PwdRequest) ValidateAll() error
ValidateAll checks the field values on PwdRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in PwdRequestMultiError, or nil if none found.
type PwdRequestMultiError ¶
type PwdRequestMultiError []error
PwdRequestMultiError is an error wrapping multiple validation errors returned by PwdRequest.ValidateAll() if the designated constraints aren't met.
func (PwdRequestMultiError) AllErrors ¶
func (m PwdRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (PwdRequestMultiError) Error ¶
func (m PwdRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type PwdRequestValidationError ¶
type PwdRequestValidationError struct {
// contains filtered or unexported fields
}
PwdRequestValidationError is the validation error returned by PwdRequest.Validate if the designated constraints aren't met.
func (PwdRequestValidationError) Cause ¶
func (e PwdRequestValidationError) Cause() error
Cause function returns cause value.
func (PwdRequestValidationError) Error ¶
func (e PwdRequestValidationError) Error() string
Error satisfies the builtin error interface
func (PwdRequestValidationError) ErrorName ¶
func (e PwdRequestValidationError) ErrorName() string
ErrorName returns error name.
func (PwdRequestValidationError) Field ¶
func (e PwdRequestValidationError) Field() string
Field function returns field value.
func (PwdRequestValidationError) Key ¶
func (e PwdRequestValidationError) Key() bool
Key function returns key value.
func (PwdRequestValidationError) Reason ¶
func (e PwdRequestValidationError) Reason() string
Reason function returns reason value.
type RefreshRequest ¶
type RefreshRequest struct { Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` // contains filtered or unexported fields }
func (*RefreshRequest) Descriptor
deprecated
func (*RefreshRequest) Descriptor() ([]byte, []int)
Deprecated: Use RefreshRequest.ProtoReflect.Descriptor instead.
func (*RefreshRequest) GetToken ¶
func (x *RefreshRequest) GetToken() string
func (*RefreshRequest) ProtoMessage ¶
func (*RefreshRequest) ProtoMessage()
func (*RefreshRequest) ProtoReflect ¶
func (x *RefreshRequest) ProtoReflect() protoreflect.Message
func (*RefreshRequest) Reset ¶
func (x *RefreshRequest) Reset()
func (*RefreshRequest) String ¶
func (x *RefreshRequest) String() string
func (*RefreshRequest) Validate ¶
func (m *RefreshRequest) Validate() error
Validate checks the field values on RefreshRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*RefreshRequest) ValidateAll ¶
func (m *RefreshRequest) ValidateAll() error
ValidateAll checks the field values on RefreshRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in RefreshRequestMultiError, or nil if none found.
type RefreshRequestMultiError ¶
type RefreshRequestMultiError []error
RefreshRequestMultiError is an error wrapping multiple validation errors returned by RefreshRequest.ValidateAll() if the designated constraints aren't met.
func (RefreshRequestMultiError) AllErrors ¶
func (m RefreshRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (RefreshRequestMultiError) Error ¶
func (m RefreshRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type RefreshRequestValidationError ¶
type RefreshRequestValidationError struct {
// contains filtered or unexported fields
}
RefreshRequestValidationError is the validation error returned by RefreshRequest.Validate if the designated constraints aren't met.
func (RefreshRequestValidationError) Cause ¶
func (e RefreshRequestValidationError) Cause() error
Cause function returns cause value.
func (RefreshRequestValidationError) Error ¶
func (e RefreshRequestValidationError) Error() string
Error satisfies the builtin error interface
func (RefreshRequestValidationError) ErrorName ¶
func (e RefreshRequestValidationError) ErrorName() string
ErrorName returns error name.
func (RefreshRequestValidationError) Field ¶
func (e RefreshRequestValidationError) Field() string
Field function returns field value.
func (RefreshRequestValidationError) Key ¶
func (e RefreshRequestValidationError) Key() bool
Key function returns key value.
func (RefreshRequestValidationError) Reason ¶
func (e RefreshRequestValidationError) Reason() string
Reason function returns reason value.
type RegisterRequest ¶
type RegisterRequest 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"` Avatar string `protobuf:"bytes,4,opt,name=avatar,proto3" json:"avatar,omitempty"` Nickname string `protobuf:"bytes,5,opt,name=nickname,proto3" json:"nickname,omitempty"` Introduction string `protobuf:"bytes,6,opt,name=introduction,proto3" json:"introduction,omitempty"` // contains filtered or unexported fields }
func (*RegisterRequest) Descriptor
deprecated
func (*RegisterRequest) Descriptor() ([]byte, []int)
Deprecated: Use RegisterRequest.ProtoReflect.Descriptor instead.
func (*RegisterRequest) GetAvatar ¶
func (x *RegisterRequest) GetAvatar() string
func (*RegisterRequest) GetIntroduction ¶
func (x *RegisterRequest) GetIntroduction() string
func (*RegisterRequest) GetMobile ¶
func (x *RegisterRequest) GetMobile() string
func (*RegisterRequest) GetNickname ¶
func (x *RegisterRequest) GetNickname() string
func (*RegisterRequest) GetPassword ¶
func (x *RegisterRequest) GetPassword() string
func (*RegisterRequest) GetUsername ¶
func (x *RegisterRequest) GetUsername() string
func (*RegisterRequest) ProtoMessage ¶
func (*RegisterRequest) ProtoMessage()
func (*RegisterRequest) ProtoReflect ¶
func (x *RegisterRequest) ProtoReflect() protoreflect.Message
func (*RegisterRequest) Reset ¶
func (x *RegisterRequest) Reset()
func (*RegisterRequest) String ¶
func (x *RegisterRequest) String() string
func (*RegisterRequest) Validate ¶
func (m *RegisterRequest) Validate() error
Validate checks the field values on RegisterRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*RegisterRequest) ValidateAll ¶
func (m *RegisterRequest) ValidateAll() error
ValidateAll checks the field values on RegisterRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in RegisterRequestMultiError, or nil if none found.
type RegisterRequestMultiError ¶
type RegisterRequestMultiError []error
RegisterRequestMultiError is an error wrapping multiple validation errors returned by RegisterRequest.ValidateAll() if the designated constraints aren't met.
func (RegisterRequestMultiError) AllErrors ¶
func (m RegisterRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (RegisterRequestMultiError) Error ¶
func (m RegisterRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type RegisterRequestValidationError ¶
type RegisterRequestValidationError struct {
// contains filtered or unexported fields
}
RegisterRequestValidationError is the validation error returned by RegisterRequest.Validate if the designated constraints aren't met.
func (RegisterRequestValidationError) Cause ¶
func (e RegisterRequestValidationError) Cause() error
Cause function returns cause value.
func (RegisterRequestValidationError) Error ¶
func (e RegisterRequestValidationError) Error() string
Error satisfies the builtin error interface
func (RegisterRequestValidationError) ErrorName ¶
func (e RegisterRequestValidationError) ErrorName() string
ErrorName returns error name.
func (RegisterRequestValidationError) Field ¶
func (e RegisterRequestValidationError) Field() string
Field function returns field value.
func (RegisterRequestValidationError) Key ¶
func (e RegisterRequestValidationError) Key() bool
Key function returns key value.
func (RegisterRequestValidationError) Reason ¶
func (e RegisterRequestValidationError) Reason() string
Reason function returns reason value.
type Role ¶
type Role struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Word string `protobuf:"bytes,3,opt,name=word,proto3" json:"word,omitempty"` Action string `protobuf:"bytes,4,opt,name=action,proto3" json:"action,omitempty"` Actions []*Action `protobuf:"bytes,5,rep,name=actions,proto3" json:"actions,omitempty"` // contains filtered or unexported fields }
func (*Role) Descriptor
deprecated
func (*Role) GetActions ¶
func (*Role) ProtoMessage ¶
func (*Role) ProtoMessage()
func (*Role) ProtoReflect ¶
func (x *Role) ProtoReflect() protoreflect.Message
func (*Role) Validate ¶
Validate checks the field values on Role with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*Role) ValidateAll ¶
ValidateAll checks the field values on Role with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in RoleMultiError, or nil if none found.
type RoleMultiError ¶
type RoleMultiError []error
RoleMultiError is an error wrapping multiple validation errors returned by Role.ValidateAll() if the designated constraints aren't met.
func (RoleMultiError) AllErrors ¶
func (m RoleMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (RoleMultiError) Error ¶
func (m RoleMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type RoleValidationError ¶
type RoleValidationError struct {
// contains filtered or unexported fields
}
RoleValidationError is the validation error returned by Role.Validate if the designated constraints aren't met.
func (RoleValidationError) Cause ¶
func (e RoleValidationError) Cause() error
Cause function returns cause value.
func (RoleValidationError) Error ¶
func (e RoleValidationError) Error() string
Error satisfies the builtin error interface
func (RoleValidationError) ErrorName ¶
func (e RoleValidationError) ErrorName() string
ErrorName returns error name.
func (RoleValidationError) Field ¶
func (e RoleValidationError) Field() string
Field function returns field value.
func (RoleValidationError) Key ¶
func (e RoleValidationError) Key() bool
Key function returns key value.
func (RoleValidationError) Reason ¶
func (e RoleValidationError) Reason() string
Reason function returns reason value.
type StatusReply ¶
type StatusReply struct { Captcha *Captcha `protobuf:"bytes,1,opt,name=captcha,proto3" json:"captcha,omitempty"` Locked uint64 `protobuf:"varint,2,opt,name=locked,proto3" json:"locked,omitempty"` LockExpire int64 `protobuf:"varint,3,opt,name=lock_expire,json=lockExpire,proto3" json:"lock_expire,omitempty"` // contains filtered or unexported fields }
func (*StatusReply) Descriptor
deprecated
func (*StatusReply) Descriptor() ([]byte, []int)
Deprecated: Use StatusReply.ProtoReflect.Descriptor instead.
func (*StatusReply) GetCaptcha ¶
func (x *StatusReply) GetCaptcha() *Captcha
func (*StatusReply) GetLockExpire ¶
func (x *StatusReply) GetLockExpire() int64
func (*StatusReply) GetLocked ¶
func (x *StatusReply) GetLocked() uint64
func (*StatusReply) ProtoMessage ¶
func (*StatusReply) ProtoMessage()
func (*StatusReply) ProtoReflect ¶
func (x *StatusReply) ProtoReflect() protoreflect.Message
func (*StatusReply) Reset ¶
func (x *StatusReply) Reset()
func (*StatusReply) String ¶
func (x *StatusReply) String() string
func (*StatusReply) Validate ¶
func (m *StatusReply) Validate() error
Validate checks the field values on StatusReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*StatusReply) ValidateAll ¶
func (m *StatusReply) ValidateAll() error
ValidateAll checks the field values on StatusReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in StatusReplyMultiError, or nil if none found.
type StatusReplyMultiError ¶
type StatusReplyMultiError []error
StatusReplyMultiError is an error wrapping multiple validation errors returned by StatusReply.ValidateAll() if the designated constraints aren't met.
func (StatusReplyMultiError) AllErrors ¶
func (m StatusReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (StatusReplyMultiError) Error ¶
func (m StatusReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type StatusReplyValidationError ¶
type StatusReplyValidationError struct {
// contains filtered or unexported fields
}
StatusReplyValidationError is the validation error returned by StatusReply.Validate if the designated constraints aren't met.
func (StatusReplyValidationError) Cause ¶
func (e StatusReplyValidationError) Cause() error
Cause function returns cause value.
func (StatusReplyValidationError) Error ¶
func (e StatusReplyValidationError) Error() string
Error satisfies the builtin error interface
func (StatusReplyValidationError) ErrorName ¶
func (e StatusReplyValidationError) ErrorName() string
ErrorName returns error name.
func (StatusReplyValidationError) Field ¶
func (e StatusReplyValidationError) Field() string
Field function returns field value.
func (StatusReplyValidationError) Key ¶
func (e StatusReplyValidationError) Key() bool
Key function returns key value.
func (StatusReplyValidationError) Reason ¶
func (e StatusReplyValidationError) Reason() string
Reason function returns reason value.
type StatusRequest ¶
type StatusRequest struct { Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"` // contains filtered or unexported fields }
func (*StatusRequest) Descriptor
deprecated
func (*StatusRequest) Descriptor() ([]byte, []int)
Deprecated: Use StatusRequest.ProtoReflect.Descriptor instead.
func (*StatusRequest) GetUsername ¶
func (x *StatusRequest) GetUsername() string
func (*StatusRequest) ProtoMessage ¶
func (*StatusRequest) ProtoMessage()
func (*StatusRequest) ProtoReflect ¶
func (x *StatusRequest) ProtoReflect() protoreflect.Message
func (*StatusRequest) Reset ¶
func (x *StatusRequest) Reset()
func (*StatusRequest) String ¶
func (x *StatusRequest) String() string
func (*StatusRequest) Validate ¶
func (m *StatusRequest) Validate() error
Validate checks the field values on StatusRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*StatusRequest) ValidateAll ¶
func (m *StatusRequest) ValidateAll() error
ValidateAll checks the field values on StatusRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in StatusRequestMultiError, or nil if none found.
type StatusRequestMultiError ¶
type StatusRequestMultiError []error
StatusRequestMultiError is an error wrapping multiple validation errors returned by StatusRequest.ValidateAll() if the designated constraints aren't met.
func (StatusRequestMultiError) AllErrors ¶
func (m StatusRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (StatusRequestMultiError) Error ¶
func (m StatusRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type StatusRequestValidationError ¶
type StatusRequestValidationError struct {
// contains filtered or unexported fields
}
StatusRequestValidationError is the validation error returned by StatusRequest.Validate if the designated constraints aren't met.
func (StatusRequestValidationError) Cause ¶
func (e StatusRequestValidationError) Cause() error
Cause function returns cause value.
func (StatusRequestValidationError) Error ¶
func (e StatusRequestValidationError) Error() string
Error satisfies the builtin error interface
func (StatusRequestValidationError) ErrorName ¶
func (e StatusRequestValidationError) ErrorName() string
ErrorName returns error name.
func (StatusRequestValidationError) Field ¶
func (e StatusRequestValidationError) Field() string
Field function returns field value.
func (StatusRequestValidationError) Key ¶
func (e StatusRequestValidationError) Key() bool
Key function returns key value.
func (StatusRequestValidationError) Reason ¶
func (e StatusRequestValidationError) Reason() string
Reason function returns reason value.
type UnimplementedAuthServer ¶
type UnimplementedAuthServer struct { }
UnimplementedAuthServer must be embedded to have forward compatible implementations.
func (UnimplementedAuthServer) Captcha ¶
func (UnimplementedAuthServer) Captcha(context.Context, *emptypb.Empty) (*CaptchaReply, error)
func (UnimplementedAuthServer) CreateAction ¶
func (UnimplementedAuthServer) CreateAction(context.Context, *CreateActionRequest) (*emptypb.Empty, error)
func (UnimplementedAuthServer) CreateRole ¶
func (UnimplementedAuthServer) CreateRole(context.Context, *CreateRoleRequest) (*emptypb.Empty, error)
func (UnimplementedAuthServer) CreateUserGroup ¶
func (UnimplementedAuthServer) CreateUserGroup(context.Context, *CreateUserGroupRequest) (*emptypb.Empty, error)
func (UnimplementedAuthServer) DeleteAction ¶
func (UnimplementedAuthServer) DeleteAction(context.Context, *IdsRequest) (*emptypb.Empty, error)
func (UnimplementedAuthServer) DeleteRole ¶
func (UnimplementedAuthServer) DeleteRole(context.Context, *IdsRequest) (*emptypb.Empty, error)
func (UnimplementedAuthServer) DeleteUser ¶
func (UnimplementedAuthServer) DeleteUser(context.Context, *IdsRequest) (*emptypb.Empty, error)
func (UnimplementedAuthServer) DeleteUserGroup ¶
func (UnimplementedAuthServer) DeleteUserGroup(context.Context, *IdsRequest) (*emptypb.Empty, error)
func (UnimplementedAuthServer) FindAction ¶
func (UnimplementedAuthServer) FindAction(context.Context, *FindActionRequest) (*FindActionReply, error)
func (UnimplementedAuthServer) FindRole ¶
func (UnimplementedAuthServer) FindRole(context.Context, *FindRoleRequest) (*FindRoleReply, error)
func (UnimplementedAuthServer) FindUser ¶
func (UnimplementedAuthServer) FindUser(context.Context, *FindUserRequest) (*FindUserReply, error)
func (UnimplementedAuthServer) FindUserGroup ¶
func (UnimplementedAuthServer) FindUserGroup(context.Context, *FindUserGroupRequest) (*FindUserGroupReply, error)
func (UnimplementedAuthServer) Idempotent ¶
func (UnimplementedAuthServer) Idempotent(context.Context, *emptypb.Empty) (*IdempotentReply, error)
func (UnimplementedAuthServer) Login ¶
func (UnimplementedAuthServer) Login(context.Context, *LoginRequest) (*LoginReply, error)
func (UnimplementedAuthServer) Permission ¶
func (UnimplementedAuthServer) Permission(context.Context, *PermissionRequest) (*PermissionReply, error)
func (UnimplementedAuthServer) Pwd ¶
func (UnimplementedAuthServer) Pwd(context.Context, *PwdRequest) (*emptypb.Empty, error)
func (UnimplementedAuthServer) Refresh ¶
func (UnimplementedAuthServer) Refresh(context.Context, *RefreshRequest) (*LoginReply, error)
func (UnimplementedAuthServer) Register ¶
func (UnimplementedAuthServer) Register(context.Context, *RegisterRequest) (*emptypb.Empty, error)
func (UnimplementedAuthServer) Status ¶
func (UnimplementedAuthServer) Status(context.Context, *StatusRequest) (*StatusReply, error)
func (UnimplementedAuthServer) UpdateAction ¶
func (UnimplementedAuthServer) UpdateAction(context.Context, *UpdateActionRequest) (*emptypb.Empty, error)
func (UnimplementedAuthServer) UpdateRole ¶
func (UnimplementedAuthServer) UpdateRole(context.Context, *UpdateRoleRequest) (*emptypb.Empty, error)
func (UnimplementedAuthServer) UpdateUser ¶
func (UnimplementedAuthServer) UpdateUser(context.Context, *UpdateUserRequest) (*emptypb.Empty, error)
func (UnimplementedAuthServer) UpdateUserGroup ¶
func (UnimplementedAuthServer) UpdateUserGroup(context.Context, *UpdateUserGroupRequest) (*emptypb.Empty, error)
type UnsafeAuthServer ¶
type UnsafeAuthServer interface {
// contains filtered or unexported methods
}
UnsafeAuthServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AuthServer will result in compilation errors.
type UpdateActionRequest ¶
type UpdateActionRequest struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Name *string `protobuf:"bytes,2,opt,name=name,proto3,oneof" json:"name,omitempty"` Word *string `protobuf:"bytes,3,opt,name=word,proto3,oneof" json:"word,omitempty"` Resource *string `protobuf:"bytes,4,opt,name=resource,proto3,oneof" json:"resource,omitempty"` Menu *string `protobuf:"bytes,5,opt,name=menu,proto3,oneof" json:"menu,omitempty"` Btn *string `protobuf:"bytes,6,opt,name=btn,proto3,oneof" json:"btn,omitempty"` // contains filtered or unexported fields }
func (*UpdateActionRequest) Descriptor
deprecated
func (*UpdateActionRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateActionRequest.ProtoReflect.Descriptor instead.
func (*UpdateActionRequest) GetBtn ¶
func (x *UpdateActionRequest) GetBtn() string
func (*UpdateActionRequest) GetId ¶
func (x *UpdateActionRequest) GetId() uint64
func (*UpdateActionRequest) GetMenu ¶
func (x *UpdateActionRequest) GetMenu() string
func (*UpdateActionRequest) GetName ¶
func (x *UpdateActionRequest) GetName() string
func (*UpdateActionRequest) GetResource ¶
func (x *UpdateActionRequest) GetResource() string
func (*UpdateActionRequest) GetWord ¶
func (x *UpdateActionRequest) GetWord() string
func (*UpdateActionRequest) ProtoMessage ¶
func (*UpdateActionRequest) ProtoMessage()
func (*UpdateActionRequest) ProtoReflect ¶
func (x *UpdateActionRequest) ProtoReflect() protoreflect.Message
func (*UpdateActionRequest) Reset ¶
func (x *UpdateActionRequest) Reset()
func (*UpdateActionRequest) String ¶
func (x *UpdateActionRequest) String() string
func (*UpdateActionRequest) Validate ¶
func (m *UpdateActionRequest) Validate() error
Validate checks the field values on UpdateActionRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*UpdateActionRequest) ValidateAll ¶
func (m *UpdateActionRequest) ValidateAll() error
ValidateAll checks the field values on UpdateActionRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in UpdateActionRequestMultiError, or nil if none found.
type UpdateActionRequestMultiError ¶
type UpdateActionRequestMultiError []error
UpdateActionRequestMultiError is an error wrapping multiple validation errors returned by UpdateActionRequest.ValidateAll() if the designated constraints aren't met.
func (UpdateActionRequestMultiError) AllErrors ¶
func (m UpdateActionRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UpdateActionRequestMultiError) Error ¶
func (m UpdateActionRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UpdateActionRequestValidationError ¶
type UpdateActionRequestValidationError struct {
// contains filtered or unexported fields
}
UpdateActionRequestValidationError is the validation error returned by UpdateActionRequest.Validate if the designated constraints aren't met.
func (UpdateActionRequestValidationError) Cause ¶
func (e UpdateActionRequestValidationError) Cause() error
Cause function returns cause value.
func (UpdateActionRequestValidationError) Error ¶
func (e UpdateActionRequestValidationError) Error() string
Error satisfies the builtin error interface
func (UpdateActionRequestValidationError) ErrorName ¶
func (e UpdateActionRequestValidationError) ErrorName() string
ErrorName returns error name.
func (UpdateActionRequestValidationError) Field ¶
func (e UpdateActionRequestValidationError) Field() string
Field function returns field value.
func (UpdateActionRequestValidationError) Key ¶
func (e UpdateActionRequestValidationError) Key() bool
Key function returns key value.
func (UpdateActionRequestValidationError) Reason ¶
func (e UpdateActionRequestValidationError) Reason() string
Reason function returns reason value.
type UpdateRoleRequest ¶
type UpdateRoleRequest struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Name *string `protobuf:"bytes,2,opt,name=name,proto3,oneof" json:"name,omitempty"` Word *string `protobuf:"bytes,3,opt,name=word,proto3,oneof" json:"word,omitempty"` Action *string `protobuf:"bytes,4,opt,name=action,proto3,oneof" json:"action,omitempty"` // contains filtered or unexported fields }
func (*UpdateRoleRequest) Descriptor
deprecated
func (*UpdateRoleRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateRoleRequest.ProtoReflect.Descriptor instead.
func (*UpdateRoleRequest) GetAction ¶
func (x *UpdateRoleRequest) GetAction() string
func (*UpdateRoleRequest) GetId ¶
func (x *UpdateRoleRequest) GetId() uint64
func (*UpdateRoleRequest) GetName ¶
func (x *UpdateRoleRequest) GetName() string
func (*UpdateRoleRequest) GetWord ¶
func (x *UpdateRoleRequest) GetWord() string
func (*UpdateRoleRequest) ProtoMessage ¶
func (*UpdateRoleRequest) ProtoMessage()
func (*UpdateRoleRequest) ProtoReflect ¶
func (x *UpdateRoleRequest) ProtoReflect() protoreflect.Message
func (*UpdateRoleRequest) Reset ¶
func (x *UpdateRoleRequest) Reset()
func (*UpdateRoleRequest) String ¶
func (x *UpdateRoleRequest) String() string
func (*UpdateRoleRequest) Validate ¶
func (m *UpdateRoleRequest) Validate() error
Validate checks the field values on UpdateRoleRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*UpdateRoleRequest) ValidateAll ¶
func (m *UpdateRoleRequest) ValidateAll() error
ValidateAll checks the field values on UpdateRoleRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in UpdateRoleRequestMultiError, or nil if none found.
type UpdateRoleRequestMultiError ¶
type UpdateRoleRequestMultiError []error
UpdateRoleRequestMultiError is an error wrapping multiple validation errors returned by UpdateRoleRequest.ValidateAll() if the designated constraints aren't met.
func (UpdateRoleRequestMultiError) AllErrors ¶
func (m UpdateRoleRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UpdateRoleRequestMultiError) Error ¶
func (m UpdateRoleRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UpdateRoleRequestValidationError ¶
type UpdateRoleRequestValidationError struct {
// contains filtered or unexported fields
}
UpdateRoleRequestValidationError is the validation error returned by UpdateRoleRequest.Validate if the designated constraints aren't met.
func (UpdateRoleRequestValidationError) Cause ¶
func (e UpdateRoleRequestValidationError) Cause() error
Cause function returns cause value.
func (UpdateRoleRequestValidationError) Error ¶
func (e UpdateRoleRequestValidationError) Error() string
Error satisfies the builtin error interface
func (UpdateRoleRequestValidationError) ErrorName ¶
func (e UpdateRoleRequestValidationError) ErrorName() string
ErrorName returns error name.
func (UpdateRoleRequestValidationError) Field ¶
func (e UpdateRoleRequestValidationError) Field() string
Field function returns field value.
func (UpdateRoleRequestValidationError) Key ¶
func (e UpdateRoleRequestValidationError) Key() bool
Key function returns key value.
func (UpdateRoleRequestValidationError) Reason ¶
func (e UpdateRoleRequestValidationError) Reason() string
Reason function returns reason value.
type UpdateUserGroupRequest ¶
type UpdateUserGroupRequest struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Name *string `protobuf:"bytes,2,opt,name=name,proto3,oneof" json:"name,omitempty"` Word *string `protobuf:"bytes,3,opt,name=word,proto3,oneof" json:"word,omitempty"` Action *string `protobuf:"bytes,4,opt,name=action,proto3,oneof" json:"action,omitempty"` Users *string `protobuf:"bytes,5,opt,name=users,proto3,oneof" json:"users,omitempty"` // contains filtered or unexported fields }
func (*UpdateUserGroupRequest) Descriptor
deprecated
func (*UpdateUserGroupRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateUserGroupRequest.ProtoReflect.Descriptor instead.
func (*UpdateUserGroupRequest) GetAction ¶
func (x *UpdateUserGroupRequest) GetAction() string
func (*UpdateUserGroupRequest) GetId ¶
func (x *UpdateUserGroupRequest) GetId() uint64
func (*UpdateUserGroupRequest) GetName ¶
func (x *UpdateUserGroupRequest) GetName() string
func (*UpdateUserGroupRequest) GetUsers ¶
func (x *UpdateUserGroupRequest) GetUsers() string
func (*UpdateUserGroupRequest) GetWord ¶
func (x *UpdateUserGroupRequest) GetWord() string
func (*UpdateUserGroupRequest) ProtoMessage ¶
func (*UpdateUserGroupRequest) ProtoMessage()
func (*UpdateUserGroupRequest) ProtoReflect ¶
func (x *UpdateUserGroupRequest) ProtoReflect() protoreflect.Message
func (*UpdateUserGroupRequest) Reset ¶
func (x *UpdateUserGroupRequest) Reset()
func (*UpdateUserGroupRequest) String ¶
func (x *UpdateUserGroupRequest) String() string
func (*UpdateUserGroupRequest) Validate ¶
func (m *UpdateUserGroupRequest) Validate() error
Validate checks the field values on UpdateUserGroupRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*UpdateUserGroupRequest) ValidateAll ¶
func (m *UpdateUserGroupRequest) ValidateAll() error
ValidateAll checks the field values on UpdateUserGroupRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in UpdateUserGroupRequestMultiError, or nil if none found.
type UpdateUserGroupRequestMultiError ¶
type UpdateUserGroupRequestMultiError []error
UpdateUserGroupRequestMultiError is an error wrapping multiple validation errors returned by UpdateUserGroupRequest.ValidateAll() if the designated constraints aren't met.
func (UpdateUserGroupRequestMultiError) AllErrors ¶
func (m UpdateUserGroupRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UpdateUserGroupRequestMultiError) Error ¶
func (m UpdateUserGroupRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UpdateUserGroupRequestValidationError ¶
type UpdateUserGroupRequestValidationError struct {
// contains filtered or unexported fields
}
UpdateUserGroupRequestValidationError is the validation error returned by UpdateUserGroupRequest.Validate if the designated constraints aren't met.
func (UpdateUserGroupRequestValidationError) Cause ¶
func (e UpdateUserGroupRequestValidationError) Cause() error
Cause function returns cause value.
func (UpdateUserGroupRequestValidationError) Error ¶
func (e UpdateUserGroupRequestValidationError) Error() string
Error satisfies the builtin error interface
func (UpdateUserGroupRequestValidationError) ErrorName ¶
func (e UpdateUserGroupRequestValidationError) ErrorName() string
ErrorName returns error name.
func (UpdateUserGroupRequestValidationError) Field ¶
func (e UpdateUserGroupRequestValidationError) Field() string
Field function returns field value.
func (UpdateUserGroupRequestValidationError) Key ¶
func (e UpdateUserGroupRequestValidationError) Key() bool
Key function returns key value.
func (UpdateUserGroupRequestValidationError) Reason ¶
func (e UpdateUserGroupRequestValidationError) Reason() string
Reason function returns reason value.
type UpdateUserRequest ¶
type UpdateUserRequest struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Username *string `protobuf:"bytes,2,opt,name=username,proto3,oneof" json:"username,omitempty"` Password *string `protobuf:"bytes,3,opt,name=password,proto3,oneof" json:"password,omitempty"` Mobile *string `protobuf:"bytes,4,opt,name=mobile,proto3,oneof" json:"mobile,omitempty"` Avatar *string `protobuf:"bytes,5,opt,name=avatar,proto3,oneof" json:"avatar,omitempty"` Nickname *string `protobuf:"bytes,6,opt,name=nickname,proto3,oneof" json:"nickname,omitempty"` Introduction *string `protobuf:"bytes,7,opt,name=introduction,proto3,oneof" json:"introduction,omitempty"` Locked *uint64 `protobuf:"varint,8,opt,name=locked,proto3,oneof" json:"locked,omitempty"` LockExpireTime *string `protobuf:"bytes,9,opt,name=lock_expire_time,json=lockExpireTime,proto3,oneof" json:"lock_expire_time,omitempty"` Action *string `protobuf:"bytes,10,opt,name=action,proto3,oneof" json:"action,omitempty"` // contains filtered or unexported fields }
func (*UpdateUserRequest) Descriptor
deprecated
func (*UpdateUserRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateUserRequest.ProtoReflect.Descriptor instead.
func (*UpdateUserRequest) GetAction ¶
func (x *UpdateUserRequest) GetAction() string
func (*UpdateUserRequest) GetAvatar ¶
func (x *UpdateUserRequest) GetAvatar() string
func (*UpdateUserRequest) GetId ¶
func (x *UpdateUserRequest) GetId() uint64
func (*UpdateUserRequest) GetIntroduction ¶
func (x *UpdateUserRequest) GetIntroduction() string
func (*UpdateUserRequest) GetLockExpireTime ¶
func (x *UpdateUserRequest) GetLockExpireTime() string
func (*UpdateUserRequest) GetLocked ¶
func (x *UpdateUserRequest) GetLocked() uint64
func (*UpdateUserRequest) GetMobile ¶
func (x *UpdateUserRequest) GetMobile() string
func (*UpdateUserRequest) GetNickname ¶
func (x *UpdateUserRequest) GetNickname() string
func (*UpdateUserRequest) GetPassword ¶
func (x *UpdateUserRequest) GetPassword() string
func (*UpdateUserRequest) GetUsername ¶
func (x *UpdateUserRequest) GetUsername() string
func (*UpdateUserRequest) ProtoMessage ¶
func (*UpdateUserRequest) ProtoMessage()
func (*UpdateUserRequest) ProtoReflect ¶
func (x *UpdateUserRequest) ProtoReflect() protoreflect.Message
func (*UpdateUserRequest) Reset ¶
func (x *UpdateUserRequest) Reset()
func (*UpdateUserRequest) String ¶
func (x *UpdateUserRequest) String() string
func (*UpdateUserRequest) Validate ¶
func (m *UpdateUserRequest) Validate() error
Validate checks the field values on UpdateUserRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*UpdateUserRequest) ValidateAll ¶
func (m *UpdateUserRequest) ValidateAll() error
ValidateAll checks the field values on UpdateUserRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in UpdateUserRequestMultiError, or nil if none found.
type UpdateUserRequestMultiError ¶
type UpdateUserRequestMultiError []error
UpdateUserRequestMultiError is an error wrapping multiple validation errors returned by UpdateUserRequest.ValidateAll() if the designated constraints aren't met.
func (UpdateUserRequestMultiError) AllErrors ¶
func (m UpdateUserRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UpdateUserRequestMultiError) Error ¶
func (m UpdateUserRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UpdateUserRequestValidationError ¶
type UpdateUserRequestValidationError struct {
// contains filtered or unexported fields
}
UpdateUserRequestValidationError is the validation error returned by UpdateUserRequest.Validate if the designated constraints aren't met.
func (UpdateUserRequestValidationError) Cause ¶
func (e UpdateUserRequestValidationError) Cause() error
Cause function returns cause value.
func (UpdateUserRequestValidationError) Error ¶
func (e UpdateUserRequestValidationError) Error() string
Error satisfies the builtin error interface
func (UpdateUserRequestValidationError) ErrorName ¶
func (e UpdateUserRequestValidationError) ErrorName() string
ErrorName returns error name.
func (UpdateUserRequestValidationError) Field ¶
func (e UpdateUserRequestValidationError) Field() string
Field function returns field value.
func (UpdateUserRequestValidationError) Key ¶
func (e UpdateUserRequestValidationError) Key() bool
Key function returns key value.
func (UpdateUserRequestValidationError) Reason ¶
func (e UpdateUserRequestValidationError) Reason() string
Reason function returns reason value.
type User ¶
type User struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` CreatedAt string `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` UpdatedAt string `protobuf:"bytes,3,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` Username string `protobuf:"bytes,4,opt,name=username,proto3" json:"username,omitempty"` Code string `protobuf:"bytes,5,opt,name=code,proto3" json:"code,omitempty"` Mobile string `protobuf:"bytes,6,opt,name=mobile,proto3" json:"mobile,omitempty"` Locked uint64 `protobuf:"varint,7,opt,name=locked,proto3" json:"locked,omitempty"` Avatar string `protobuf:"bytes,8,opt,name=avatar,proto3" json:"avatar,omitempty"` Nickname string `protobuf:"bytes,9,opt,name=nickname,proto3" json:"nickname,omitempty"` Introduction string `protobuf:"bytes,10,opt,name=introduction,proto3" json:"introduction,omitempty"` LastLogin string `protobuf:"bytes,11,opt,name=last_login,json=lastLogin,proto3" json:"last_login,omitempty"` LockExpire int64 `protobuf:"varint,12,opt,name=lock_expire,json=lockExpire,proto3" json:"lock_expire,omitempty"` LockMsg string `protobuf:"bytes,13,opt,name=lock_msg,json=lockMsg,proto3" json:"lock_msg,omitempty"` Actions []*Action `protobuf:"bytes,14,rep,name=actions,proto3" json:"actions,omitempty"` // contains filtered or unexported fields }
func (*User) Descriptor
deprecated
func (*User) GetActions ¶
func (*User) GetCreatedAt ¶
func (*User) GetIntroduction ¶
func (*User) GetLastLogin ¶
func (*User) GetLockExpire ¶
func (*User) GetLockMsg ¶
func (*User) GetNickname ¶
func (*User) GetUpdatedAt ¶
func (*User) GetUsername ¶
func (*User) ProtoMessage ¶
func (*User) ProtoMessage()
func (*User) ProtoReflect ¶
func (x *User) ProtoReflect() protoreflect.Message
func (*User) Validate ¶
Validate checks the field values on User with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*User) ValidateAll ¶
ValidateAll checks the field values on User with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in UserMultiError, or nil if none found.
type UserGroup ¶
type UserGroup struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Word string `protobuf:"bytes,3,opt,name=word,proto3" json:"word,omitempty"` Actions []*Action `protobuf:"bytes,4,rep,name=actions,proto3" json:"actions,omitempty"` Users []*User `protobuf:"bytes,5,rep,name=users,proto3" json:"users,omitempty"` // contains filtered or unexported fields }
func (*UserGroup) Descriptor
deprecated
func (*UserGroup) GetActions ¶
func (*UserGroup) ProtoMessage ¶
func (*UserGroup) ProtoMessage()
func (*UserGroup) ProtoReflect ¶
func (x *UserGroup) ProtoReflect() protoreflect.Message
func (*UserGroup) Validate ¶
Validate checks the field values on UserGroup with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*UserGroup) ValidateAll ¶
ValidateAll checks the field values on UserGroup with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in UserGroupMultiError, or nil if none found.
type UserGroupMultiError ¶
type UserGroupMultiError []error
UserGroupMultiError is an error wrapping multiple validation errors returned by UserGroup.ValidateAll() if the designated constraints aren't met.
func (UserGroupMultiError) AllErrors ¶
func (m UserGroupMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UserGroupMultiError) Error ¶
func (m UserGroupMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UserGroupValidationError ¶
type UserGroupValidationError struct {
// contains filtered or unexported fields
}
UserGroupValidationError is the validation error returned by UserGroup.Validate if the designated constraints aren't met.
func (UserGroupValidationError) Cause ¶
func (e UserGroupValidationError) Cause() error
Cause function returns cause value.
func (UserGroupValidationError) Error ¶
func (e UserGroupValidationError) Error() string
Error satisfies the builtin error interface
func (UserGroupValidationError) ErrorName ¶
func (e UserGroupValidationError) ErrorName() string
ErrorName returns error name.
func (UserGroupValidationError) Field ¶
func (e UserGroupValidationError) Field() string
Field function returns field value.
func (UserGroupValidationError) Key ¶
func (e UserGroupValidationError) Key() bool
Key function returns key value.
func (UserGroupValidationError) Reason ¶
func (e UserGroupValidationError) Reason() string
Reason function returns reason value.
type UserMultiError ¶
type UserMultiError []error
UserMultiError is an error wrapping multiple validation errors returned by User.ValidateAll() if the designated constraints aren't met.
func (UserMultiError) AllErrors ¶
func (m UserMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UserMultiError) Error ¶
func (m UserMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UserValidationError ¶
type UserValidationError struct {
// contains filtered or unexported fields
}
UserValidationError is the validation error returned by User.Validate if the designated constraints aren't met.
func (UserValidationError) Cause ¶
func (e UserValidationError) Cause() error
Cause function returns cause value.
func (UserValidationError) Error ¶
func (e UserValidationError) Error() string
Error satisfies the builtin error interface
func (UserValidationError) ErrorName ¶
func (e UserValidationError) ErrorName() string
ErrorName returns error name.
func (UserValidationError) Field ¶
func (e UserValidationError) Field() string
Field function returns field value.
func (UserValidationError) Key ¶
func (e UserValidationError) Key() bool
Key function returns key value.
func (UserValidationError) Reason ¶
func (e UserValidationError) Reason() string
Reason function returns reason value.