Documentation ¶
Index ¶
- Variables
- func NewLoginEndpoints() []*api.Endpoint
- func RegisterLoginHandler(s server.Server, hdlr LoginHandler, opts ...server.HandlerOption) error
- type Length
- type LoginCaptcha
- func (*LoginCaptcha) Descriptor() ([]byte, []int)deprecated
- func (x *LoginCaptcha) GetCaptchaID() string
- func (x *LoginCaptcha) GetHeight() int32
- func (x *LoginCaptcha) GetWidth() int32
- func (*LoginCaptcha) ProtoMessage()
- func (x *LoginCaptcha) ProtoReflect() protoreflect.Message
- func (x *LoginCaptcha) Reset()
- func (x *LoginCaptcha) String() string
- type LoginHandler
- type LoginParam
- func (*LoginParam) Descriptor() ([]byte, []int)deprecated
- func (x *LoginParam) GetCaptchaCode() string
- func (x *LoginParam) GetCaptchaID() string
- func (x *LoginParam) GetPassword() string
- func (x *LoginParam) GetUserName() string
- func (*LoginParam) ProtoMessage()
- func (x *LoginParam) ProtoReflect() protoreflect.Message
- func (x *LoginParam) Reset()
- func (x *LoginParam) String() string
- type LoginService
- type LoginTokenInfo
- func (*LoginTokenInfo) Descriptor() ([]byte, []int)deprecated
- func (x *LoginTokenInfo) GetAccessToken() string
- func (x *LoginTokenInfo) GetExpiresAt() int64
- func (x *LoginTokenInfo) GetTokenType() string
- func (*LoginTokenInfo) ProtoMessage()
- func (x *LoginTokenInfo) ProtoReflect() protoreflect.Message
- func (x *LoginTokenInfo) Reset()
- func (x *LoginTokenInfo) String() string
- type Menu
- func (*Menu) Descriptor() ([]byte, []int)deprecated
- func (x *Menu) GetActions() []*MenuAction
- func (x *Menu) GetCreatedAt() *timestamp.Timestamp
- func (x *Menu) GetCreator() string
- func (x *Menu) GetID() string
- func (x *Menu) GetIcon() string
- func (x *Menu) GetMemo() string
- func (x *Menu) GetName() string
- func (x *Menu) GetParentPath() string
- func (x *Menu) GetRouter() string
- func (x *Menu) GetSequence() int32
- func (x *Menu) GetShowStatus() int32
- func (x *Menu) GetStatus() int32
- func (x *Menu) GetUpdatedAt() *timestamp.Timestamp
- func (*Menu) ProtoMessage()
- func (x *Menu) ProtoReflect() protoreflect.Message
- func (x *Menu) Reset()
- func (x *Menu) String() string
- type MenuAction
- func (*MenuAction) Descriptor() ([]byte, []int)deprecated
- func (x *MenuAction) GetCode() string
- func (x *MenuAction) GetID() string
- func (x *MenuAction) GetMenuID() string
- func (x *MenuAction) GetName() string
- func (x *MenuAction) GetResources() []*MenuActionResource
- func (*MenuAction) ProtoMessage()
- func (x *MenuAction) ProtoReflect() protoreflect.Message
- func (x *MenuAction) Reset()
- func (x *MenuAction) String() string
- type MenuActionResource
- func (*MenuActionResource) Descriptor() ([]byte, []int)deprecated
- func (x *MenuActionResource) GetActionID() string
- func (x *MenuActionResource) GetID() string
- func (x *MenuActionResource) GetMethod() string
- func (x *MenuActionResource) GetPath() string
- func (*MenuActionResource) ProtoMessage()
- func (x *MenuActionResource) ProtoReflect() protoreflect.Message
- func (x *MenuActionResource) Reset()
- func (x *MenuActionResource) String() string
- type MenuQueryParam
- func (*MenuQueryParam) Descriptor() ([]byte, []int)deprecated
- func (x *MenuQueryParam) GetIDs() []string
- func (x *MenuQueryParam) GetName() string
- func (x *MenuQueryParam) GetPaginationParam() *unified.PaginationParam
- func (x *MenuQueryParam) GetParentID() string
- func (x *MenuQueryParam) GetPrefixParentPath() string
- func (x *MenuQueryParam) GetQueryValue() string
- func (x *MenuQueryParam) GetShowStatus() int32
- func (x *MenuQueryParam) GetStatus() int32
- func (*MenuQueryParam) ProtoMessage()
- func (x *MenuQueryParam) ProtoReflect() protoreflect.Message
- func (x *MenuQueryParam) Reset()
- func (x *MenuQueryParam) String() string
- type Role
- func (*Role) Descriptor() ([]byte, []int)deprecated
- func (x *Role) GetCreatedAt() *timestamp.Timestamp
- func (x *Role) GetCreator() string
- func (x *Role) GetID() string
- func (x *Role) GetMemo() string
- func (x *Role) GetName() string
- func (x *Role) GetSequence() int32
- func (x *Role) GetStatus() int32
- func (x *Role) GetUpdatedAt() *timestamp.Timestamp
- func (*Role) ProtoMessage()
- func (x *Role) ProtoReflect() protoreflect.Message
- func (x *Role) Reset()
- func (x *Role) String() string
- type RoleQueryParam
- func (*RoleQueryParam) Descriptor() ([]byte, []int)deprecated
- func (x *RoleQueryParam) GetID() []string
- func (x *RoleQueryParam) GetName() string
- func (x *RoleQueryParam) GetQueryValue() string
- func (x *RoleQueryParam) GetStatus() int32
- func (x *RoleQueryParam) GetUserID() string
- func (*RoleQueryParam) ProtoMessage()
- func (x *RoleQueryParam) ProtoReflect() protoreflect.Message
- func (x *RoleQueryParam) Reset()
- func (x *RoleQueryParam) String() string
- type UpdatePasswordParam
- func (*UpdatePasswordParam) Descriptor() ([]byte, []int)deprecated
- func (x *UpdatePasswordParam) GetNewPassword() string
- func (x *UpdatePasswordParam) GetOldPassword() string
- func (x *UpdatePasswordParam) GetUserID() string
- func (*UpdatePasswordParam) ProtoMessage()
- func (x *UpdatePasswordParam) ProtoReflect() protoreflect.Message
- func (x *UpdatePasswordParam) Reset()
- func (x *UpdatePasswordParam) String() string
- type User
- func (*User) Descriptor() ([]byte, []int)deprecated
- func (x *User) GetCreatedAt() *timestamp.Timestamp
- func (x *User) GetCreator() string
- func (x *User) GetEmail() string
- func (x *User) GetID() string
- func (x *User) GetPassword() string
- func (x *User) GetPhone() string
- func (x *User) GetRealName() string
- func (x *User) GetStatus() int32
- func (x *User) GetUserName() string
- func (x *User) GetUserRoles() []*UserRole
- func (*User) ProtoMessage()
- func (x *User) ProtoReflect() protoreflect.Message
- func (x *User) Reset()
- func (x *User) String() string
- type UserLoginInfo
- func (*UserLoginInfo) Descriptor() ([]byte, []int)deprecated
- func (x *UserLoginInfo) GetRealName() string
- func (x *UserLoginInfo) GetRoles() []*Role
- func (x *UserLoginInfo) GetUserID() string
- func (x *UserLoginInfo) GetUserName() string
- func (*UserLoginInfo) ProtoMessage()
- func (x *UserLoginInfo) ProtoReflect() protoreflect.Message
- func (x *UserLoginInfo) Reset()
- func (x *UserLoginInfo) String() string
- type UserQueryParam
- type UserRole
- func (*UserRole) Descriptor() ([]byte, []int)deprecated
- func (x *UserRole) GetID() string
- func (x *UserRole) GetRoleID() string
- func (x *UserRole) GetUserID() string
- func (*UserRole) ProtoMessage()
- func (x *UserRole) ProtoReflect() protoreflect.Message
- func (x *UserRole) Reset()
- func (x *UserRole) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var File_admin_login_proto protoreflect.FileDescriptor
View Source
var File_admin_role_proto protoreflect.FileDescriptor
View Source
var File_admin_user_proto protoreflect.FileDescriptor
Functions ¶
func NewLoginEndpoints ¶
func RegisterLoginHandler ¶
func RegisterLoginHandler(s server.Server, hdlr LoginHandler, opts ...server.HandlerOption) error
Types ¶
type Length ¶
type Length struct { Length int32 `protobuf:"varint,1,opt,name=Length,proto3" json:"Length,omitempty"` // contains filtered or unexported fields }
func (*Length) Descriptor
deprecated
func (*Length) ProtoMessage ¶
func (*Length) ProtoMessage()
func (*Length) ProtoReflect ¶
func (x *Length) ProtoReflect() protoreflect.Message
type LoginCaptcha ¶
type LoginCaptcha struct { // @inject_tag: valid:"captcha_id" CaptchaID string `protobuf:"bytes,1,opt,name=CaptchaID,proto3" json:"CaptchaID,omitempty"` Width int32 `protobuf:"varint,2,opt,name=width,proto3" json:"width,omitempty"` Height int32 `protobuf:"varint,3,opt,name=height,proto3" json:"height,omitempty"` // contains filtered or unexported fields }
func (*LoginCaptcha) Descriptor
deprecated
func (*LoginCaptcha) Descriptor() ([]byte, []int)
Deprecated: Use LoginCaptcha.ProtoReflect.Descriptor instead.
func (*LoginCaptcha) GetCaptchaID ¶
func (x *LoginCaptcha) GetCaptchaID() string
func (*LoginCaptcha) GetHeight ¶
func (x *LoginCaptcha) GetHeight() int32
func (*LoginCaptcha) GetWidth ¶
func (x *LoginCaptcha) GetWidth() int32
func (*LoginCaptcha) ProtoMessage ¶
func (*LoginCaptcha) ProtoMessage()
func (*LoginCaptcha) ProtoReflect ¶
func (x *LoginCaptcha) ProtoReflect() protoreflect.Message
func (*LoginCaptcha) Reset ¶
func (x *LoginCaptcha) Reset()
func (*LoginCaptcha) String ¶
func (x *LoginCaptcha) String() string
type LoginHandler ¶
type LoginHandler interface { GetCaptcha(context.Context, *Length, *unified.Response) error ResCaptcha(context.Context, *LoginCaptcha, *unified.Response) error Verify(context.Context, *LoginParam, *unified.Response) error GenerateToken(context.Context, *UserLoginInfo, *unified.Response) error DestroyToken(context.Context, *LoginTokenInfo, *unified.Response) error CheckAndGetUser(context.Context, *UserLoginInfo, *unified.Response) error GetLoginInfo(context.Context, *UserLoginInfo, *unified.Response) error QueryUserMenuTree(context.Context, *UserLoginInfo, *unified.Response) error UpdatePassword(context.Context, *UpdatePasswordParam, *unified.Response) error }
type LoginParam ¶
type LoginParam struct { // @inject_tag: valid:"user_name" UserName string `protobuf:"bytes,1,opt,name=UserName,proto3" json:"UserName,omitempty"` Password string `protobuf:"bytes,2,opt,name=Password,proto3" json:"Password,omitempty"` // @inject_tag: valid:"captcha_id" CaptchaID string `protobuf:"bytes,3,opt,name=CaptchaID,proto3" json:"CaptchaID,omitempty"` // @inject_tag: valid:"captcha_code" CaptchaCode string `protobuf:"bytes,4,opt,name=CaptchaCode,proto3" json:"CaptchaCode,omitempty"` // contains filtered or unexported fields }
func (*LoginParam) Descriptor
deprecated
func (*LoginParam) Descriptor() ([]byte, []int)
Deprecated: Use LoginParam.ProtoReflect.Descriptor instead.
func (*LoginParam) GetCaptchaCode ¶
func (x *LoginParam) GetCaptchaCode() string
func (*LoginParam) GetCaptchaID ¶
func (x *LoginParam) GetCaptchaID() string
func (*LoginParam) GetPassword ¶
func (x *LoginParam) GetPassword() string
func (*LoginParam) GetUserName ¶
func (x *LoginParam) GetUserName() string
func (*LoginParam) ProtoMessage ¶
func (*LoginParam) ProtoMessage()
func (*LoginParam) ProtoReflect ¶
func (x *LoginParam) ProtoReflect() protoreflect.Message
func (*LoginParam) Reset ¶
func (x *LoginParam) Reset()
func (*LoginParam) String ¶
func (x *LoginParam) String() string
type LoginService ¶
type LoginService interface { GetCaptcha(ctx context.Context, in *Length, opts ...client.CallOption) (*unified.Response, error) ResCaptcha(ctx context.Context, in *LoginCaptcha, opts ...client.CallOption) (*unified.Response, error) Verify(ctx context.Context, in *LoginParam, opts ...client.CallOption) (*unified.Response, error) GenerateToken(ctx context.Context, in *UserLoginInfo, opts ...client.CallOption) (*unified.Response, error) DestroyToken(ctx context.Context, in *LoginTokenInfo, opts ...client.CallOption) (*unified.Response, error) CheckAndGetUser(ctx context.Context, in *UserLoginInfo, opts ...client.CallOption) (*unified.Response, error) GetLoginInfo(ctx context.Context, in *UserLoginInfo, opts ...client.CallOption) (*unified.Response, error) QueryUserMenuTree(ctx context.Context, in *UserLoginInfo, opts ...client.CallOption) (*unified.Response, error) UpdatePassword(ctx context.Context, in *UpdatePasswordParam, opts ...client.CallOption) (*unified.Response, error) }
func NewLoginService ¶
func NewLoginService(name string, c client.Client) LoginService
type LoginTokenInfo ¶
type LoginTokenInfo struct { // @inject_tag: valid:"access_token" AccessToken string `protobuf:"bytes,1,opt,name=AccessToken,proto3" json:"AccessToken,omitempty"` // @inject_tag: valid:"token_type" TokenType string `protobuf:"bytes,2,opt,name=TokenType,proto3" json:"TokenType,omitempty"` // @inject_tag: valid:"expires_at" ExpiresAt int64 `protobuf:"varint,3,opt,name=ExpiresAt,proto3" json:"ExpiresAt,omitempty"` // contains filtered or unexported fields }
func (*LoginTokenInfo) Descriptor
deprecated
func (*LoginTokenInfo) Descriptor() ([]byte, []int)
Deprecated: Use LoginTokenInfo.ProtoReflect.Descriptor instead.
func (*LoginTokenInfo) GetAccessToken ¶
func (x *LoginTokenInfo) GetAccessToken() string
func (*LoginTokenInfo) GetExpiresAt ¶
func (x *LoginTokenInfo) GetExpiresAt() int64
func (*LoginTokenInfo) GetTokenType ¶
func (x *LoginTokenInfo) GetTokenType() string
func (*LoginTokenInfo) ProtoMessage ¶
func (*LoginTokenInfo) ProtoMessage()
func (*LoginTokenInfo) ProtoReflect ¶
func (x *LoginTokenInfo) ProtoReflect() protoreflect.Message
func (*LoginTokenInfo) Reset ¶
func (x *LoginTokenInfo) Reset()
func (*LoginTokenInfo) String ¶
func (x *LoginTokenInfo) String() string
type Menu ¶
type Menu struct { ID string `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"` Name string `protobuf:"bytes,2,opt,name=Name,proto3" json:"Name,omitempty"` Sequence int32 `protobuf:"varint,3,opt,name=Sequence,proto3" json:"Sequence,omitempty"` Icon string `protobuf:"bytes,4,opt,name=Icon,proto3" json:"Icon,omitempty"` Router string `protobuf:"bytes,5,opt,name=Router,proto3" json:"Router,omitempty"` ParentPath string `protobuf:"bytes,6,opt,name=ParentPath,proto3" json:"ParentPath,omitempty"` ShowStatus int32 `protobuf:"varint,7,opt,name=ShowStatus,proto3" json:"ShowStatus,omitempty"` Status int32 `protobuf:"varint,8,opt,name=Status,proto3" json:"Status,omitempty"` Memo string `protobuf:"bytes,9,opt,name=Memo,proto3" json:"Memo,omitempty"` Creator string `protobuf:"bytes,10,opt,name=Creator,proto3" json:"Creator,omitempty"` // @inject_tag: valid:"created_at" CreatedAt *timestamp.Timestamp `protobuf:"bytes,11,opt,name=CreatedAt,proto3" json:"CreatedAt,omitempty"` // @inject_tag: valid:"updated_at" UpdatedAt *timestamp.Timestamp `protobuf:"bytes,12,opt,name=UpdatedAt,proto3" json:"UpdatedAt,omitempty"` Actions []*MenuAction `protobuf:"bytes,13,rep,name=Actions,proto3" json:"Actions,omitempty"` // contains filtered or unexported fields }
func (*Menu) Descriptor
deprecated
func (*Menu) GetActions ¶
func (x *Menu) GetActions() []*MenuAction
func (*Menu) GetCreatedAt ¶
func (*Menu) GetCreator ¶
func (*Menu) GetParentPath ¶
func (*Menu) GetSequence ¶
func (*Menu) GetShowStatus ¶
func (*Menu) GetUpdatedAt ¶
func (*Menu) ProtoMessage ¶
func (*Menu) ProtoMessage()
func (*Menu) ProtoReflect ¶
func (x *Menu) ProtoReflect() protoreflect.Message
type MenuAction ¶
type MenuAction struct { ID string `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"` MenuID string `protobuf:"bytes,2,opt,name=MenuID,proto3" json:"MenuID,omitempty"` Code string `protobuf:"bytes,3,opt,name=Code,proto3" json:"Code,omitempty"` Name string `protobuf:"bytes,4,opt,name=Name,proto3" json:"Name,omitempty"` Resources []*MenuActionResource `protobuf:"bytes,5,rep,name=Resources,proto3" json:"Resources,omitempty"` // contains filtered or unexported fields }
func (*MenuAction) Descriptor
deprecated
func (*MenuAction) Descriptor() ([]byte, []int)
Deprecated: Use MenuAction.ProtoReflect.Descriptor instead.
func (*MenuAction) GetCode ¶
func (x *MenuAction) GetCode() string
func (*MenuAction) GetID ¶
func (x *MenuAction) GetID() string
func (*MenuAction) GetMenuID ¶
func (x *MenuAction) GetMenuID() string
func (*MenuAction) GetName ¶
func (x *MenuAction) GetName() string
func (*MenuAction) GetResources ¶
func (x *MenuAction) GetResources() []*MenuActionResource
func (*MenuAction) ProtoMessage ¶
func (*MenuAction) ProtoMessage()
func (*MenuAction) ProtoReflect ¶
func (x *MenuAction) ProtoReflect() protoreflect.Message
func (*MenuAction) Reset ¶
func (x *MenuAction) Reset()
func (*MenuAction) String ¶
func (x *MenuAction) String() string
type MenuActionResource ¶
type MenuActionResource struct { ID string `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"` ActionID string `protobuf:"bytes,2,opt,name=ActionID,proto3" json:"ActionID,omitempty"` Method string `protobuf:"bytes,3,opt,name=Method,proto3" json:"Method,omitempty"` Path string `protobuf:"bytes,4,opt,name=Path,proto3" json:"Path,omitempty"` // contains filtered or unexported fields }
func (*MenuActionResource) Descriptor
deprecated
func (*MenuActionResource) Descriptor() ([]byte, []int)
Deprecated: Use MenuActionResource.ProtoReflect.Descriptor instead.
func (*MenuActionResource) GetActionID ¶
func (x *MenuActionResource) GetActionID() string
func (*MenuActionResource) GetID ¶
func (x *MenuActionResource) GetID() string
func (*MenuActionResource) GetMethod ¶
func (x *MenuActionResource) GetMethod() string
func (*MenuActionResource) GetPath ¶
func (x *MenuActionResource) GetPath() string
func (*MenuActionResource) ProtoMessage ¶
func (*MenuActionResource) ProtoMessage()
func (*MenuActionResource) ProtoReflect ¶
func (x *MenuActionResource) ProtoReflect() protoreflect.Message
func (*MenuActionResource) Reset ¶
func (x *MenuActionResource) Reset()
func (*MenuActionResource) String ¶
func (x *MenuActionResource) String() string
type MenuQueryParam ¶
type MenuQueryParam struct { PaginationParam *unified.PaginationParam `protobuf:"bytes,1,opt,name=PaginationParam,proto3" json:"PaginationParam,omitempty"` IDs []string `protobuf:"bytes,2,rep,name=IDs,proto3" json:"IDs,omitempty"` Name string `protobuf:"bytes,3,opt,name=Name,proto3" json:"Name,omitempty"` PrefixParentPath string `protobuf:"bytes,4,opt,name=PrefixParentPath,proto3" json:"PrefixParentPath,omitempty"` QueryValue string `protobuf:"bytes,5,opt,name=QueryValue,proto3" json:"QueryValue,omitempty"` ParentID string `protobuf:"bytes,6,opt,name=ParentID,proto3" json:"ParentID,omitempty"` ShowStatus int32 `protobuf:"varint,7,opt,name=ShowStatus,proto3" json:"ShowStatus,omitempty"` Status int32 `protobuf:"varint,8,opt,name=Status,proto3" json:"Status,omitempty"` // contains filtered or unexported fields }
func (*MenuQueryParam) Descriptor
deprecated
func (*MenuQueryParam) Descriptor() ([]byte, []int)
Deprecated: Use MenuQueryParam.ProtoReflect.Descriptor instead.
func (*MenuQueryParam) GetIDs ¶
func (x *MenuQueryParam) GetIDs() []string
func (*MenuQueryParam) GetName ¶
func (x *MenuQueryParam) GetName() string
func (*MenuQueryParam) GetPaginationParam ¶
func (x *MenuQueryParam) GetPaginationParam() *unified.PaginationParam
func (*MenuQueryParam) GetParentID ¶
func (x *MenuQueryParam) GetParentID() string
func (*MenuQueryParam) GetPrefixParentPath ¶
func (x *MenuQueryParam) GetPrefixParentPath() string
func (*MenuQueryParam) GetQueryValue ¶
func (x *MenuQueryParam) GetQueryValue() string
func (*MenuQueryParam) GetShowStatus ¶
func (x *MenuQueryParam) GetShowStatus() int32
func (*MenuQueryParam) GetStatus ¶
func (x *MenuQueryParam) GetStatus() int32
func (*MenuQueryParam) ProtoMessage ¶
func (*MenuQueryParam) ProtoMessage()
func (*MenuQueryParam) ProtoReflect ¶
func (x *MenuQueryParam) ProtoReflect() protoreflect.Message
func (*MenuQueryParam) Reset ¶
func (x *MenuQueryParam) Reset()
func (*MenuQueryParam) String ¶
func (x *MenuQueryParam) String() string
type Role ¶
type Role struct { ID string `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"` Name string `protobuf:"bytes,2,opt,name=Name,proto3" json:"Name,omitempty"` Sequence int32 `protobuf:"varint,3,opt,name=Sequence,proto3" json:"Sequence,omitempty"` Memo string `protobuf:"bytes,4,opt,name=Memo,proto3" json:"Memo,omitempty"` Status int32 `protobuf:"varint,5,opt,name=Status,proto3" json:"Status,omitempty"` Creator string `protobuf:"bytes,6,opt,name=Creator,proto3" json:"Creator,omitempty"` // @inject_tag: valid:"created_at" CreatedAt *timestamp.Timestamp `protobuf:"bytes,7,opt,name=CreatedAt,proto3" json:"CreatedAt,omitempty"` // @inject_tag: valid:"updated_at" UpdatedAt *timestamp.Timestamp `protobuf:"bytes,8,opt,name=UpdatedAt,proto3" json:"UpdatedAt,omitempty"` // contains filtered or unexported fields }
func (*Role) Descriptor
deprecated
func (*Role) GetCreatedAt ¶
func (*Role) GetCreator ¶
func (*Role) GetSequence ¶
func (*Role) GetUpdatedAt ¶
func (*Role) ProtoMessage ¶
func (*Role) ProtoMessage()
func (*Role) ProtoReflect ¶
func (x *Role) ProtoReflect() protoreflect.Message
type RoleQueryParam ¶
type RoleQueryParam struct { ID []string `protobuf:"bytes,1,rep,name=ID,proto3" json:"ID,omitempty"` Name string `protobuf:"bytes,2,opt,name=Name,proto3" json:"Name,omitempty"` QueryValue string `protobuf:"bytes,3,opt,name=QueryValue,proto3" json:"QueryValue,omitempty"` UserID string `protobuf:"bytes,4,opt,name=UserID,proto3" json:"UserID,omitempty"` Status int32 `protobuf:"varint,5,opt,name=Status,proto3" json:"Status,omitempty"` // contains filtered or unexported fields }
func (*RoleQueryParam) Descriptor
deprecated
func (*RoleQueryParam) GetID ¶
func (x *RoleQueryParam) GetID() []string
func (*RoleQueryParam) GetName ¶
func (x *RoleQueryParam) GetName() string
func (*RoleQueryParam) GetQueryValue ¶
func (x *RoleQueryParam) GetQueryValue() string
func (*RoleQueryParam) GetStatus ¶
func (x *RoleQueryParam) GetStatus() int32
func (*RoleQueryParam) GetUserID ¶
func (x *RoleQueryParam) GetUserID() string
func (*RoleQueryParam) ProtoMessage ¶
func (*RoleQueryParam) ProtoMessage()
func (*RoleQueryParam) ProtoReflect ¶
func (x *RoleQueryParam) ProtoReflect() protoreflect.Message
func (*RoleQueryParam) Reset ¶
func (x *RoleQueryParam) Reset()
func (*RoleQueryParam) String ¶
func (x *RoleQueryParam) String() string
type UpdatePasswordParam ¶
type UpdatePasswordParam struct { // @inject_tag: valid:"user_id" UserID string `protobuf:"bytes,1,opt,name=UserID,proto3" json:"UserID,omitempty"` // @inject_tag: valid:"old_password" OldPassword string `protobuf:"bytes,2,opt,name=OldPassword,proto3" json:"OldPassword,omitempty"` // @inject_tag: valid:"new_password" NewPassword string `protobuf:"bytes,3,opt,name=NewPassword,proto3" json:"NewPassword,omitempty"` // contains filtered or unexported fields }
func (*UpdatePasswordParam) Descriptor
deprecated
func (*UpdatePasswordParam) Descriptor() ([]byte, []int)
Deprecated: Use UpdatePasswordParam.ProtoReflect.Descriptor instead.
func (*UpdatePasswordParam) GetNewPassword ¶
func (x *UpdatePasswordParam) GetNewPassword() string
func (*UpdatePasswordParam) GetOldPassword ¶
func (x *UpdatePasswordParam) GetOldPassword() string
func (*UpdatePasswordParam) GetUserID ¶
func (x *UpdatePasswordParam) GetUserID() string
func (*UpdatePasswordParam) ProtoMessage ¶
func (*UpdatePasswordParam) ProtoMessage()
func (*UpdatePasswordParam) ProtoReflect ¶
func (x *UpdatePasswordParam) ProtoReflect() protoreflect.Message
func (*UpdatePasswordParam) Reset ¶
func (x *UpdatePasswordParam) Reset()
func (*UpdatePasswordParam) String ¶
func (x *UpdatePasswordParam) String() string
type User ¶
type User struct { ID string `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"` // @inject_tag: valid:"user_name" UserName string `protobuf:"bytes,2,opt,name=UserName,proto3" json:"UserName,omitempty"` // @inject_tag: valid:"real_name" RealName string `protobuf:"bytes,3,opt,name=RealName,proto3" json:"RealName,omitempty"` Password string `protobuf:"bytes,4,opt,name=Password,proto3" json:"Password,omitempty"` Phone string `protobuf:"bytes,5,opt,name=Phone,proto3" json:"Phone,omitempty"` Email string `protobuf:"bytes,6,opt,name=Email,proto3" json:"Email,omitempty"` Status int32 `protobuf:"varint,7,opt,name=Status,proto3" json:"Status,omitempty"` Creator string `protobuf:"bytes,8,opt,name=Creator,proto3" json:"Creator,omitempty"` // @inject_tag: valid:"created_at" CreatedAt *timestamp.Timestamp `protobuf:"bytes,9,opt,name=CreatedAt,proto3" json:"CreatedAt,omitempty"` UserRoles []*UserRole `protobuf:"bytes,10,rep,name=UserRoles,proto3" json:"UserRoles,omitempty"` // contains filtered or unexported fields }
func (*User) Descriptor
deprecated
func (*User) GetCreatedAt ¶
func (*User) GetCreator ¶
func (*User) GetPassword ¶
func (*User) GetRealName ¶
func (*User) GetUserName ¶
func (*User) GetUserRoles ¶
func (*User) ProtoMessage ¶
func (*User) ProtoMessage()
func (*User) ProtoReflect ¶
func (x *User) ProtoReflect() protoreflect.Message
type UserLoginInfo ¶
type UserLoginInfo struct { // @inject_tag: valid:"user_id" UserID string `protobuf:"bytes,1,opt,name=UserID,proto3" json:"UserID,omitempty"` // @inject_tag: valid:"user_name" UserName string `protobuf:"bytes,2,opt,name=UserName,proto3" json:"UserName,omitempty"` // @inject_tag: valid:"real_name" RealName string `protobuf:"bytes,3,opt,name=RealName,proto3" json:"RealName,omitempty"` Roles []*Role `protobuf:"bytes,4,rep,name=Roles,proto3" json:"Roles,omitempty"` // contains filtered or unexported fields }
func (*UserLoginInfo) Descriptor
deprecated
func (*UserLoginInfo) Descriptor() ([]byte, []int)
Deprecated: Use UserLoginInfo.ProtoReflect.Descriptor instead.
func (*UserLoginInfo) GetRealName ¶
func (x *UserLoginInfo) GetRealName() string
func (*UserLoginInfo) GetRoles ¶
func (x *UserLoginInfo) GetRoles() []*Role
func (*UserLoginInfo) GetUserID ¶
func (x *UserLoginInfo) GetUserID() string
func (*UserLoginInfo) GetUserName ¶
func (x *UserLoginInfo) GetUserName() string
func (*UserLoginInfo) ProtoMessage ¶
func (*UserLoginInfo) ProtoMessage()
func (*UserLoginInfo) ProtoReflect ¶
func (x *UserLoginInfo) ProtoReflect() protoreflect.Message
func (*UserLoginInfo) Reset ¶
func (x *UserLoginInfo) Reset()
func (*UserLoginInfo) String ¶
func (x *UserLoginInfo) String() string
type UserQueryParam ¶
type UserQueryParam struct {
// contains filtered or unexported fields
}
func (*UserQueryParam) Descriptor
deprecated
func (*UserQueryParam) Descriptor() ([]byte, []int)
Deprecated: Use UserQueryParam.ProtoReflect.Descriptor instead.
func (*UserQueryParam) ProtoMessage ¶
func (*UserQueryParam) ProtoMessage()
func (*UserQueryParam) ProtoReflect ¶
func (x *UserQueryParam) ProtoReflect() protoreflect.Message
func (*UserQueryParam) Reset ¶
func (x *UserQueryParam) Reset()
func (*UserQueryParam) String ¶
func (x *UserQueryParam) String() string
type UserRole ¶
type UserRole struct { ID string `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"` // @inject_tag: valid:"user_id" UserID string `protobuf:"bytes,2,opt,name=UserID,proto3" json:"UserID,omitempty"` // @inject_tag: valid:"role_id" RoleID string `protobuf:"bytes,3,opt,name=RoleID,proto3" json:"RoleID,omitempty"` // contains filtered or unexported fields }
func (*UserRole) Descriptor
deprecated
func (*UserRole) ProtoMessage ¶
func (*UserRole) ProtoMessage()
func (*UserRole) ProtoReflect ¶
func (x *UserRole) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.