Documentation ¶
Index ¶
- Variables
- func NewLoginMgrEndpoints() []*api.Endpoint
- func NewMenuMgrEndpoints() []*api.Endpoint
- func NewRoleMgrEndpoints() []*api.Endpoint
- func NewUserMgrEndpoints() []*api.Endpoint
- func RegisterLoginMgrHandler(s server.Server, hdlr LoginMgrHandler, opts ...server.HandlerOption) error
- func RegisterMenuMgrHandler(s server.Server, hdlr MenuMgrHandler, opts ...server.HandlerOption) error
- func RegisterRoleMgrHandler(s server.Server, hdlr RoleMgrHandler, opts ...server.HandlerOption) error
- func RegisterUserMgrHandler(s server.Server, hdlr UserMgrHandler, opts ...server.HandlerOption) error
- type DataFile
- 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 LoginMgrHandler
- type LoginMgrService
- 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 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 MenuActions
- type MenuMgrHandler
- type MenuMgrService
- type MenuQueryOptions
- func (*MenuQueryOptions) Descriptor() ([]byte, []int)deprecated
- func (x *MenuQueryOptions) GetOrderField() []*unified.OrderField
- func (*MenuQueryOptions) ProtoMessage()
- func (x *MenuQueryOptions) ProtoReflect() protoreflect.Message
- func (x *MenuQueryOptions) Reset()
- func (x *MenuQueryOptions) 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 MenuQueryReq
- func (*MenuQueryReq) Descriptor() ([]byte, []int)deprecated
- func (x *MenuQueryReq) GetMenuQueryOptions() *MenuQueryOptions
- func (x *MenuQueryReq) GetMenuQueryParam() *MenuQueryParam
- func (*MenuQueryReq) ProtoMessage()
- func (x *MenuQueryReq) ProtoReflect() protoreflect.Message
- func (x *MenuQueryReq) Reset()
- func (x *MenuQueryReq) String() string
- type MenuQueryResult
- func (*MenuQueryResult) Descriptor() ([]byte, []int)deprecated
- func (x *MenuQueryResult) GetData() []*Menu
- func (x *MenuQueryResult) GetPageResult() *unified.PaginationResult
- func (*MenuQueryResult) ProtoMessage()
- func (x *MenuQueryResult) ProtoReflect() protoreflect.Message
- func (x *MenuQueryResult) Reset()
- func (x *MenuQueryResult) String() string
- type MenuReq
- func (*MenuReq) Descriptor() ([]byte, []int)deprecated
- func (x *MenuReq) GetCurrentID() string
- func (x *MenuReq) GetMenu() *Menu
- func (x *MenuReq) GetMenuQueryOptions() *MenuQueryOptions
- func (*MenuReq) ProtoMessage()
- func (x *MenuReq) ProtoReflect() protoreflect.Message
- func (x *MenuReq) Reset()
- func (x *MenuReq) String() string
- type MenuTree
- func (*MenuTree) Descriptor() ([]byte, []int)deprecated
- func (x *MenuTree) GetActions() []*MenuAction
- func (x *MenuTree) GetChildren() []*MenuTree
- func (x *MenuTree) GetID() string
- func (x *MenuTree) GetIcon() string
- func (x *MenuTree) GetName() string
- func (x *MenuTree) GetParentID() string
- func (x *MenuTree) GetParentPath() string
- func (x *MenuTree) GetRouter() string
- func (x *MenuTree) GetSequence() int32
- func (x *MenuTree) GetShowStatus() int32
- func (x *MenuTree) GetStatus() int32
- func (*MenuTree) ProtoMessage()
- func (x *MenuTree) ProtoReflect() protoreflect.Message
- func (x *MenuTree) Reset()
- func (x *MenuTree) String() string
- type MenuTrees
- 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 RoleMgrHandler
- type RoleMgrService
- type RoleQueryOptions
- func (*RoleQueryOptions) Descriptor() ([]byte, []int)deprecated
- func (x *RoleQueryOptions) GetOrderField() []*unified.OrderField
- func (*RoleQueryOptions) ProtoMessage()
- func (x *RoleQueryOptions) ProtoReflect() protoreflect.Message
- func (x *RoleQueryOptions) Reset()
- func (x *RoleQueryOptions) String() string
- type RoleQueryParam
- func (*RoleQueryParam) Descriptor() ([]byte, []int)deprecated
- func (x *RoleQueryParam) GetIDs() []string
- func (x *RoleQueryParam) GetName() string
- func (x *RoleQueryParam) GetPaginationParam() *unified.PaginationParam
- 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 RoleQueryReq
- func (*RoleQueryReq) Descriptor() ([]byte, []int)deprecated
- func (x *RoleQueryReq) GetRoleQueryOptions() *RoleQueryOptions
- func (x *RoleQueryReq) GetRoleQueryParam() *RoleQueryParam
- func (*RoleQueryReq) ProtoMessage()
- func (x *RoleQueryReq) ProtoReflect() protoreflect.Message
- func (x *RoleQueryReq) Reset()
- func (x *RoleQueryReq) String() string
- type RoleQueryResult
- func (*RoleQueryResult) Descriptor() ([]byte, []int)deprecated
- func (x *RoleQueryResult) GetData() []*Role
- func (x *RoleQueryResult) GetPageResult() *unified.PaginationResult
- func (*RoleQueryResult) ProtoMessage()
- func (x *RoleQueryResult) ProtoReflect() protoreflect.Message
- func (x *RoleQueryResult) Reset()
- func (x *RoleQueryResult) String() string
- type RoleReq
- func (*RoleReq) Descriptor() ([]byte, []int)deprecated
- func (x *RoleReq) GetCurrentID() string
- func (x *RoleReq) GetRole() *Role
- func (x *RoleReq) GetRoleQueryOptions() *RoleQueryOptions
- func (*RoleReq) ProtoMessage()
- func (x *RoleReq) ProtoReflect() protoreflect.Message
- func (x *RoleReq) Reset()
- func (x *RoleReq) 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 UserMgrHandler
- type UserMgrService
- type UserQueryOptions
- func (*UserQueryOptions) Descriptor() ([]byte, []int)deprecated
- func (x *UserQueryOptions) GetOrderField() []*unified.OrderField
- func (*UserQueryOptions) ProtoMessage()
- func (x *UserQueryOptions) ProtoReflect() protoreflect.Message
- func (x *UserQueryOptions) Reset()
- func (x *UserQueryOptions) String() string
- type UserQueryParam
- func (*UserQueryParam) Descriptor() ([]byte, []int)deprecated
- func (x *UserQueryParam) GetPaginationParam() *unified.PaginationParam
- func (x *UserQueryParam) GetQueryValue() string
- func (x *UserQueryParam) GetRoleIDs() []string
- func (x *UserQueryParam) GetStatus() int32
- func (x *UserQueryParam) GetUserName() string
- func (*UserQueryParam) ProtoMessage()
- func (x *UserQueryParam) ProtoReflect() protoreflect.Message
- func (x *UserQueryParam) Reset()
- func (x *UserQueryParam) String() string
- type UserQueryReq
- func (*UserQueryReq) Descriptor() ([]byte, []int)deprecated
- func (x *UserQueryReq) GetUserQueryOptions() *UserQueryOptions
- func (x *UserQueryReq) GetUserQueryParam() *UserQueryParam
- func (*UserQueryReq) ProtoMessage()
- func (x *UserQueryReq) ProtoReflect() protoreflect.Message
- func (x *UserQueryReq) Reset()
- func (x *UserQueryReq) String() string
- type UserQueryResult
- func (*UserQueryResult) Descriptor() ([]byte, []int)deprecated
- func (x *UserQueryResult) GetData() []*User
- func (x *UserQueryResult) GetPageResult() *unified.PaginationResult
- func (*UserQueryResult) ProtoMessage()
- func (x *UserQueryResult) ProtoReflect() protoreflect.Message
- func (x *UserQueryResult) Reset()
- func (x *UserQueryResult) String() string
- type UserReq
- func (*UserReq) Descriptor() ([]byte, []int)deprecated
- func (x *UserReq) GetCurrentID() string
- func (x *UserReq) GetUser() *User
- func (x *UserReq) GetUserQueryOptions() *UserQueryOptions
- func (*UserReq) ProtoMessage()
- func (x *UserReq) ProtoReflect() protoreflect.Message
- func (x *UserReq) Reset()
- func (x *UserReq) String() string
- 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 ¶
var File_admin_login_proto protoreflect.FileDescriptor
var File_admin_role_proto protoreflect.FileDescriptor
var File_admin_user_proto protoreflect.FileDescriptor
Functions ¶
func NewLoginMgrEndpoints ¶
func NewMenuMgrEndpoints ¶
func NewRoleMgrEndpoints ¶
func NewUserMgrEndpoints ¶
func RegisterLoginMgrHandler ¶
func RegisterLoginMgrHandler(s server.Server, hdlr LoginMgrHandler, opts ...server.HandlerOption) error
func RegisterMenuMgrHandler ¶
func RegisterMenuMgrHandler(s server.Server, hdlr MenuMgrHandler, opts ...server.HandlerOption) error
func RegisterRoleMgrHandler ¶
func RegisterRoleMgrHandler(s server.Server, hdlr RoleMgrHandler, opts ...server.HandlerOption) error
func RegisterUserMgrHandler ¶
func RegisterUserMgrHandler(s server.Server, hdlr UserMgrHandler, opts ...server.HandlerOption) error
Types ¶
type DataFile ¶
type DataFile struct { DataFile string `protobuf:"bytes,1,opt,name=DataFile,proto3" json:"DataFile,omitempty"` // contains filtered or unexported fields }
func (*DataFile) Descriptor
deprecated
func (*DataFile) GetDataFile ¶
func (*DataFile) ProtoMessage ¶
func (*DataFile) ProtoMessage()
func (*DataFile) ProtoReflect ¶
func (x *DataFile) ProtoReflect() protoreflect.Message
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 LoginMgrHandler ¶
type LoginMgrHandler interface { Verify(context.Context, *LoginParam, *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 LoginMgrService ¶
type LoginMgrService interface { Verify(ctx context.Context, in *LoginParam, 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 NewLoginMgrService ¶
func NewLoginMgrService(name string, c client.Client) LoginMgrService
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 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 MenuActions ¶
type MenuActions struct { MenuAction []*MenuAction `protobuf:"bytes,1,rep,name=MenuAction,proto3" json:"MenuAction,omitempty"` // contains filtered or unexported fields }
func (*MenuActions) Descriptor
deprecated
func (*MenuActions) Descriptor() ([]byte, []int)
Deprecated: Use MenuActions.ProtoReflect.Descriptor instead.
func (*MenuActions) GetMenuAction ¶
func (x *MenuActions) GetMenuAction() []*MenuAction
func (*MenuActions) ProtoMessage ¶
func (*MenuActions) ProtoMessage()
func (*MenuActions) ProtoReflect ¶
func (x *MenuActions) ProtoReflect() protoreflect.Message
func (*MenuActions) Reset ¶
func (x *MenuActions) Reset()
func (*MenuActions) String ¶
func (x *MenuActions) String() string
type MenuMgrHandler ¶
type MenuMgrHandler interface { // 查询数据 Query(context.Context, *MenuQueryReq, *unified.Response) error // 查询指定数据 Get(context.Context, *MenuReq, *unified.Response) error // 创建数据 Create(context.Context, *Menu, *unified.Response) error // 更新数据 Update(context.Context, *MenuReq, *unified.Response) error // 删除数据 Delete(context.Context, *Menu, *unified.Response) error // 更新状态 UpdateStatus(context.Context, *Menu, *unified.Response) error }
type MenuMgrService ¶
type MenuMgrService interface { // 查询数据 Query(ctx context.Context, in *MenuQueryReq, opts ...client.CallOption) (*unified.Response, error) // 查询指定数据 Get(ctx context.Context, in *MenuReq, opts ...client.CallOption) (*unified.Response, error) // 创建数据 Create(ctx context.Context, in *Menu, opts ...client.CallOption) (*unified.Response, error) // 更新数据 Update(ctx context.Context, in *MenuReq, opts ...client.CallOption) (*unified.Response, error) // 删除数据 Delete(ctx context.Context, in *Menu, opts ...client.CallOption) (*unified.Response, error) // 更新状态 UpdateStatus(ctx context.Context, in *Menu, opts ...client.CallOption) (*unified.Response, error) }
func NewMenuMgrService ¶
func NewMenuMgrService(name string, c client.Client) MenuMgrService
type MenuQueryOptions ¶
type MenuQueryOptions struct { OrderField []*unified.OrderField `protobuf:"bytes,1,rep,name=OrderField,proto3" json:"OrderField,omitempty"` // contains filtered or unexported fields }
func (*MenuQueryOptions) Descriptor
deprecated
func (*MenuQueryOptions) Descriptor() ([]byte, []int)
Deprecated: Use MenuQueryOptions.ProtoReflect.Descriptor instead.
func (*MenuQueryOptions) GetOrderField ¶
func (x *MenuQueryOptions) GetOrderField() []*unified.OrderField
func (*MenuQueryOptions) ProtoMessage ¶
func (*MenuQueryOptions) ProtoMessage()
func (*MenuQueryOptions) ProtoReflect ¶
func (x *MenuQueryOptions) ProtoReflect() protoreflect.Message
func (*MenuQueryOptions) Reset ¶
func (x *MenuQueryOptions) Reset()
func (*MenuQueryOptions) String ¶
func (x *MenuQueryOptions) 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 MenuQueryReq ¶
type MenuQueryReq struct { MenuQueryParam *MenuQueryParam `protobuf:"bytes,1,opt,name=MenuQueryParam,proto3" json:"MenuQueryParam,omitempty"` MenuQueryOptions *MenuQueryOptions `protobuf:"bytes,2,opt,name=MenuQueryOptions,proto3" json:"MenuQueryOptions,omitempty"` // contains filtered or unexported fields }
func (*MenuQueryReq) Descriptor
deprecated
func (*MenuQueryReq) Descriptor() ([]byte, []int)
Deprecated: Use MenuQueryReq.ProtoReflect.Descriptor instead.
func (*MenuQueryReq) GetMenuQueryOptions ¶
func (x *MenuQueryReq) GetMenuQueryOptions() *MenuQueryOptions
func (*MenuQueryReq) GetMenuQueryParam ¶
func (x *MenuQueryReq) GetMenuQueryParam() *MenuQueryParam
func (*MenuQueryReq) ProtoMessage ¶
func (*MenuQueryReq) ProtoMessage()
func (*MenuQueryReq) ProtoReflect ¶
func (x *MenuQueryReq) ProtoReflect() protoreflect.Message
func (*MenuQueryReq) Reset ¶
func (x *MenuQueryReq) Reset()
func (*MenuQueryReq) String ¶
func (x *MenuQueryReq) String() string
type MenuQueryResult ¶
type MenuQueryResult struct { Data []*Menu `protobuf:"bytes,1,rep,name=Data,proto3" json:"Data,omitempty"` PageResult *unified.PaginationResult `protobuf:"bytes,2,opt,name=PageResult,proto3" json:"PageResult,omitempty"` // contains filtered or unexported fields }
func (*MenuQueryResult) Descriptor
deprecated
func (*MenuQueryResult) Descriptor() ([]byte, []int)
Deprecated: Use MenuQueryResult.ProtoReflect.Descriptor instead.
func (*MenuQueryResult) GetData ¶
func (x *MenuQueryResult) GetData() []*Menu
func (*MenuQueryResult) GetPageResult ¶
func (x *MenuQueryResult) GetPageResult() *unified.PaginationResult
func (*MenuQueryResult) ProtoMessage ¶
func (*MenuQueryResult) ProtoMessage()
func (*MenuQueryResult) ProtoReflect ¶
func (x *MenuQueryResult) ProtoReflect() protoreflect.Message
func (*MenuQueryResult) Reset ¶
func (x *MenuQueryResult) Reset()
func (*MenuQueryResult) String ¶
func (x *MenuQueryResult) String() string
type MenuReq ¶
type MenuReq struct { CurrentID string `protobuf:"bytes,1,opt,name=CurrentID,proto3" json:"CurrentID,omitempty"` Menu *Menu `protobuf:"bytes,2,opt,name=Menu,proto3" json:"Menu,omitempty"` MenuQueryOptions *MenuQueryOptions `protobuf:"bytes,3,opt,name=MenuQueryOptions,proto3" json:"MenuQueryOptions,omitempty"` // contains filtered or unexported fields }
func (*MenuReq) Descriptor
deprecated
func (*MenuReq) GetCurrentID ¶
func (*MenuReq) GetMenuQueryOptions ¶
func (x *MenuReq) GetMenuQueryOptions() *MenuQueryOptions
func (*MenuReq) ProtoMessage ¶
func (*MenuReq) ProtoMessage()
func (*MenuReq) ProtoReflect ¶
func (x *MenuReq) ProtoReflect() protoreflect.Message
type MenuTree ¶
type MenuTree 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"` ParentID string `protobuf:"bytes,9,opt,name=ParentID,proto3" json:"ParentID,omitempty"` Actions []*MenuAction `protobuf:"bytes,10,rep,name=Actions,proto3" json:"Actions,omitempty"` Children []*MenuTree `protobuf:"bytes,11,rep,name=Children,proto3" json:"Children,omitempty"` // contains filtered or unexported fields }
func (*MenuTree) Descriptor
deprecated
func (*MenuTree) GetActions ¶
func (x *MenuTree) GetActions() []*MenuAction
func (*MenuTree) GetChildren ¶
func (*MenuTree) GetParentID ¶
func (*MenuTree) GetParentPath ¶
func (*MenuTree) GetSequence ¶
func (*MenuTree) GetShowStatus ¶
func (*MenuTree) ProtoMessage ¶
func (*MenuTree) ProtoMessage()
func (*MenuTree) ProtoReflect ¶
func (x *MenuTree) ProtoReflect() protoreflect.Message
type MenuTrees ¶
type MenuTrees struct { MenuTree []*MenuTree `protobuf:"bytes,1,rep,name=MenuTree,proto3" json:"MenuTree,omitempty"` // contains filtered or unexported fields }
func (*MenuTrees) Descriptor
deprecated
func (*MenuTrees) GetMenuTree ¶
func (*MenuTrees) ProtoMessage ¶
func (*MenuTrees) ProtoMessage()
func (*MenuTrees) ProtoReflect ¶
func (x *MenuTrees) ProtoReflect() protoreflect.Message
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 RoleMgrHandler ¶
type RoleMgrHandler interface { // 查询数据 Query(context.Context, *RoleQueryReq, *unified.Response) error // 查询指定数据 Get(context.Context, *RoleReq, *unified.Response) error // 创建数据 Create(context.Context, *Role, *unified.Response) error // 更新数据 Update(context.Context, *RoleReq, *unified.Response) error // 删除数据 Delete(context.Context, *Role, *unified.Response) error // 更新状态 UpdateStatus(context.Context, *Role, *unified.Response) error }
type RoleMgrService ¶
type RoleMgrService interface { // 查询数据 Query(ctx context.Context, in *RoleQueryReq, opts ...client.CallOption) (*unified.Response, error) // 查询指定数据 Get(ctx context.Context, in *RoleReq, opts ...client.CallOption) (*unified.Response, error) // 创建数据 Create(ctx context.Context, in *Role, opts ...client.CallOption) (*unified.Response, error) // 更新数据 Update(ctx context.Context, in *RoleReq, opts ...client.CallOption) (*unified.Response, error) // 删除数据 Delete(ctx context.Context, in *Role, opts ...client.CallOption) (*unified.Response, error) // 更新状态 UpdateStatus(ctx context.Context, in *Role, opts ...client.CallOption) (*unified.Response, error) }
func NewRoleMgrService ¶
func NewRoleMgrService(name string, c client.Client) RoleMgrService
type RoleQueryOptions ¶
type RoleQueryOptions struct { OrderField []*unified.OrderField `protobuf:"bytes,1,rep,name=OrderField,proto3" json:"OrderField,omitempty"` // contains filtered or unexported fields }
func (*RoleQueryOptions) Descriptor
deprecated
func (*RoleQueryOptions) Descriptor() ([]byte, []int)
Deprecated: Use RoleQueryOptions.ProtoReflect.Descriptor instead.
func (*RoleQueryOptions) GetOrderField ¶
func (x *RoleQueryOptions) GetOrderField() []*unified.OrderField
func (*RoleQueryOptions) ProtoMessage ¶
func (*RoleQueryOptions) ProtoMessage()
func (*RoleQueryOptions) ProtoReflect ¶
func (x *RoleQueryOptions) ProtoReflect() protoreflect.Message
func (*RoleQueryOptions) Reset ¶
func (x *RoleQueryOptions) Reset()
func (*RoleQueryOptions) String ¶
func (x *RoleQueryOptions) String() string
type RoleQueryParam ¶
type RoleQueryParam 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"` QueryValue string `protobuf:"bytes,4,opt,name=QueryValue,proto3" json:"QueryValue,omitempty"` UserID string `protobuf:"bytes,5,opt,name=UserID,proto3" json:"UserID,omitempty"` Status int32 `protobuf:"varint,6,opt,name=Status,proto3" json:"Status,omitempty"` // contains filtered or unexported fields }
func (*RoleQueryParam) Descriptor
deprecated
func (*RoleQueryParam) Descriptor() ([]byte, []int)
Deprecated: Use RoleQueryParam.ProtoReflect.Descriptor instead.
func (*RoleQueryParam) GetIDs ¶
func (x *RoleQueryParam) GetIDs() []string
func (*RoleQueryParam) GetName ¶
func (x *RoleQueryParam) GetName() string
func (*RoleQueryParam) GetPaginationParam ¶
func (x *RoleQueryParam) GetPaginationParam() *unified.PaginationParam
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 RoleQueryReq ¶
type RoleQueryReq struct { RoleQueryParam *RoleQueryParam `protobuf:"bytes,1,opt,name=RoleQueryParam,proto3" json:"RoleQueryParam,omitempty"` RoleQueryOptions *RoleQueryOptions `protobuf:"bytes,2,opt,name=RoleQueryOptions,proto3" json:"RoleQueryOptions,omitempty"` // contains filtered or unexported fields }
func (*RoleQueryReq) Descriptor
deprecated
func (*RoleQueryReq) Descriptor() ([]byte, []int)
Deprecated: Use RoleQueryReq.ProtoReflect.Descriptor instead.
func (*RoleQueryReq) GetRoleQueryOptions ¶
func (x *RoleQueryReq) GetRoleQueryOptions() *RoleQueryOptions
func (*RoleQueryReq) GetRoleQueryParam ¶
func (x *RoleQueryReq) GetRoleQueryParam() *RoleQueryParam
func (*RoleQueryReq) ProtoMessage ¶
func (*RoleQueryReq) ProtoMessage()
func (*RoleQueryReq) ProtoReflect ¶
func (x *RoleQueryReq) ProtoReflect() protoreflect.Message
func (*RoleQueryReq) Reset ¶
func (x *RoleQueryReq) Reset()
func (*RoleQueryReq) String ¶
func (x *RoleQueryReq) String() string
type RoleQueryResult ¶
type RoleQueryResult struct { Data []*Role `protobuf:"bytes,1,rep,name=Data,proto3" json:"Data,omitempty"` PageResult *unified.PaginationResult `protobuf:"bytes,2,opt,name=PageResult,proto3" json:"PageResult,omitempty"` // contains filtered or unexported fields }
func (*RoleQueryResult) Descriptor
deprecated
func (*RoleQueryResult) Descriptor() ([]byte, []int)
Deprecated: Use RoleQueryResult.ProtoReflect.Descriptor instead.
func (*RoleQueryResult) GetData ¶
func (x *RoleQueryResult) GetData() []*Role
func (*RoleQueryResult) GetPageResult ¶
func (x *RoleQueryResult) GetPageResult() *unified.PaginationResult
func (*RoleQueryResult) ProtoMessage ¶
func (*RoleQueryResult) ProtoMessage()
func (*RoleQueryResult) ProtoReflect ¶
func (x *RoleQueryResult) ProtoReflect() protoreflect.Message
func (*RoleQueryResult) Reset ¶
func (x *RoleQueryResult) Reset()
func (*RoleQueryResult) String ¶
func (x *RoleQueryResult) String() string
type RoleReq ¶
type RoleReq struct { CurrentID string `protobuf:"bytes,1,opt,name=CurrentID,proto3" json:"CurrentID,omitempty"` Role *Role `protobuf:"bytes,2,opt,name=Role,proto3" json:"Role,omitempty"` RoleQueryOptions *RoleQueryOptions `protobuf:"bytes,3,opt,name=RoleQueryOptions,proto3" json:"RoleQueryOptions,omitempty"` // contains filtered or unexported fields }
func (*RoleReq) Descriptor
deprecated
func (*RoleReq) GetCurrentID ¶
func (*RoleReq) GetRoleQueryOptions ¶
func (x *RoleReq) GetRoleQueryOptions() *RoleQueryOptions
func (*RoleReq) ProtoMessage ¶
func (*RoleReq) ProtoMessage()
func (*RoleReq) ProtoReflect ¶
func (x *RoleReq) ProtoReflect() protoreflect.Message
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 UserMgrHandler ¶
type UserMgrHandler interface { // 查询数据 Query(context.Context, *UserQueryReq, *unified.Response) error // 查询指定数据 Get(context.Context, *UserReq, *unified.Response) error // 创建数据 Create(context.Context, *User, *unified.Response) error // 更新数据 Update(context.Context, *UserReq, *unified.Response) error // 删除数据 Delete(context.Context, *User, *unified.Response) error // 更新状态 UpdateStatus(context.Context, *User, *unified.Response) error // 更新密码 UpdatePassword(context.Context, *User, *unified.Response) error }
type UserMgrService ¶
type UserMgrService interface { // 查询数据 Query(ctx context.Context, in *UserQueryReq, opts ...client.CallOption) (*unified.Response, error) // 查询指定数据 Get(ctx context.Context, in *UserReq, opts ...client.CallOption) (*unified.Response, error) // 创建数据 Create(ctx context.Context, in *User, opts ...client.CallOption) (*unified.Response, error) // 更新数据 Update(ctx context.Context, in *UserReq, opts ...client.CallOption) (*unified.Response, error) // 删除数据 Delete(ctx context.Context, in *User, opts ...client.CallOption) (*unified.Response, error) // 更新状态 UpdateStatus(ctx context.Context, in *User, opts ...client.CallOption) (*unified.Response, error) // 更新密码 UpdatePassword(ctx context.Context, in *User, opts ...client.CallOption) (*unified.Response, error) }
func NewUserMgrService ¶
func NewUserMgrService(name string, c client.Client) UserMgrService
type UserQueryOptions ¶
type UserQueryOptions struct { OrderField []*unified.OrderField `protobuf:"bytes,1,rep,name=OrderField,proto3" json:"OrderField,omitempty"` // contains filtered or unexported fields }
func (*UserQueryOptions) Descriptor
deprecated
func (*UserQueryOptions) Descriptor() ([]byte, []int)
Deprecated: Use UserQueryOptions.ProtoReflect.Descriptor instead.
func (*UserQueryOptions) GetOrderField ¶
func (x *UserQueryOptions) GetOrderField() []*unified.OrderField
func (*UserQueryOptions) ProtoMessage ¶
func (*UserQueryOptions) ProtoMessage()
func (*UserQueryOptions) ProtoReflect ¶
func (x *UserQueryOptions) ProtoReflect() protoreflect.Message
func (*UserQueryOptions) Reset ¶
func (x *UserQueryOptions) Reset()
func (*UserQueryOptions) String ¶
func (x *UserQueryOptions) String() string
type UserQueryParam ¶
type UserQueryParam struct { PaginationParam *unified.PaginationParam `protobuf:"bytes,1,opt,name=PaginationParam,proto3" json:"PaginationParam,omitempty"` UserName string `protobuf:"bytes,2,opt,name=UserName,proto3" json:"UserName,omitempty"` QueryValue string `protobuf:"bytes,3,opt,name=QueryValue,proto3" json:"QueryValue,omitempty"` Status int32 `protobuf:"varint,4,opt,name=Status,proto3" json:"Status,omitempty"` RoleIDs []string `protobuf:"bytes,5,rep,name=RoleIDs,proto3" json:"RoleIDs,omitempty"` // contains filtered or unexported fields }
func (*UserQueryParam) Descriptor
deprecated
func (*UserQueryParam) Descriptor() ([]byte, []int)
Deprecated: Use UserQueryParam.ProtoReflect.Descriptor instead.
func (*UserQueryParam) GetPaginationParam ¶
func (x *UserQueryParam) GetPaginationParam() *unified.PaginationParam
func (*UserQueryParam) GetQueryValue ¶
func (x *UserQueryParam) GetQueryValue() string
func (*UserQueryParam) GetRoleIDs ¶
func (x *UserQueryParam) GetRoleIDs() []string
func (*UserQueryParam) GetStatus ¶
func (x *UserQueryParam) GetStatus() int32
func (*UserQueryParam) GetUserName ¶
func (x *UserQueryParam) GetUserName() string
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 UserQueryReq ¶
type UserQueryReq struct { UserQueryParam *UserQueryParam `protobuf:"bytes,1,opt,name=UserQueryParam,proto3" json:"UserQueryParam,omitempty"` UserQueryOptions *UserQueryOptions `protobuf:"bytes,2,opt,name=UserQueryOptions,proto3" json:"UserQueryOptions,omitempty"` // contains filtered or unexported fields }
func (*UserQueryReq) Descriptor
deprecated
func (*UserQueryReq) Descriptor() ([]byte, []int)
Deprecated: Use UserQueryReq.ProtoReflect.Descriptor instead.
func (*UserQueryReq) GetUserQueryOptions ¶
func (x *UserQueryReq) GetUserQueryOptions() *UserQueryOptions
func (*UserQueryReq) GetUserQueryParam ¶
func (x *UserQueryReq) GetUserQueryParam() *UserQueryParam
func (*UserQueryReq) ProtoMessage ¶
func (*UserQueryReq) ProtoMessage()
func (*UserQueryReq) ProtoReflect ¶
func (x *UserQueryReq) ProtoReflect() protoreflect.Message
func (*UserQueryReq) Reset ¶
func (x *UserQueryReq) Reset()
func (*UserQueryReq) String ¶
func (x *UserQueryReq) String() string
type UserQueryResult ¶
type UserQueryResult struct { Data []*User `protobuf:"bytes,1,rep,name=Data,proto3" json:"Data,omitempty"` PageResult *unified.PaginationResult `protobuf:"bytes,2,opt,name=PageResult,proto3" json:"PageResult,omitempty"` // contains filtered or unexported fields }
func (*UserQueryResult) Descriptor
deprecated
func (*UserQueryResult) Descriptor() ([]byte, []int)
Deprecated: Use UserQueryResult.ProtoReflect.Descriptor instead.
func (*UserQueryResult) GetData ¶
func (x *UserQueryResult) GetData() []*User
func (*UserQueryResult) GetPageResult ¶
func (x *UserQueryResult) GetPageResult() *unified.PaginationResult
func (*UserQueryResult) ProtoMessage ¶
func (*UserQueryResult) ProtoMessage()
func (*UserQueryResult) ProtoReflect ¶
func (x *UserQueryResult) ProtoReflect() protoreflect.Message
func (*UserQueryResult) Reset ¶
func (x *UserQueryResult) Reset()
func (*UserQueryResult) String ¶
func (x *UserQueryResult) String() string
type UserReq ¶
type UserReq struct { CurrentID string `protobuf:"bytes,1,opt,name=CurrentID,proto3" json:"CurrentID,omitempty"` User *User `protobuf:"bytes,2,opt,name=User,proto3" json:"User,omitempty"` UserQueryOptions *UserQueryOptions `protobuf:"bytes,3,opt,name=UserQueryOptions,proto3" json:"UserQueryOptions,omitempty"` // contains filtered or unexported fields }
func (*UserReq) Descriptor
deprecated
func (*UserReq) GetCurrentID ¶
func (*UserReq) GetUserQueryOptions ¶
func (x *UserReq) GetUserQueryOptions() *UserQueryOptions
func (*UserReq) ProtoMessage ¶
func (*UserReq) ProtoMessage()
func (*UserReq) ProtoReflect ¶
func (x *UserReq) ProtoReflect() protoreflect.Message
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