admin

package
v0.0.0-...-0b911c8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 10, 2020 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_admin_login_proto protoreflect.FileDescriptor
View Source
var File_admin_menu_proto protoreflect.FileDescriptor
View Source
var File_admin_role_proto protoreflect.FileDescriptor
View Source
var File_admin_user_proto protoreflect.FileDescriptor

Functions

func NewLoginMgrEndpoints

func NewLoginMgrEndpoints() []*api.Endpoint

func NewMenuMgrEndpoints

func NewMenuMgrEndpoints() []*api.Endpoint

func NewRoleMgrEndpoints

func NewRoleMgrEndpoints() []*api.Endpoint

func NewUserMgrEndpoints

func NewUserMgrEndpoints() []*api.Endpoint

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) Descriptor() ([]byte, []int)

Deprecated: Use DataFile.ProtoReflect.Descriptor instead.

func (*DataFile) GetDataFile

func (x *DataFile) GetDataFile() string

func (*DataFile) ProtoMessage

func (*DataFile) ProtoMessage()

func (*DataFile) ProtoReflect

func (x *DataFile) ProtoReflect() protoreflect.Message

func (*DataFile) Reset

func (x *DataFile) Reset()

func (*DataFile) String

func (x *DataFile) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Length.ProtoReflect.Descriptor instead.

func (*Length) GetLength

func (x *Length) GetLength() int32

func (*Length) ProtoMessage

func (*Length) ProtoMessage()

func (*Length) ProtoReflect

func (x *Length) ProtoReflect() protoreflect.Message

func (*Length) Reset

func (x *Length) Reset()

func (*Length) String

func (x *Length) String() string

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 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() ([]byte, []int)

Deprecated: Use Menu.ProtoReflect.Descriptor instead.

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 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() ([]byte, []int)

Deprecated: Use MenuAction.ProtoReflect.Descriptor instead.

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 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() ([]byte, []int)

Deprecated: Use MenuActionResource.ProtoReflect.Descriptor instead.

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 struct {
	MenuAction []*MenuAction `protobuf:"bytes,1,rep,name=MenuAction,proto3" json:"MenuAction,omitempty"`
	// contains filtered or unexported fields
}
func (*MenuActions) Descriptor() ([]byte, []int)

Deprecated: Use MenuActions.ProtoReflect.Descriptor instead.

func (x *MenuActions) GetMenuAction() []*MenuAction
func (*MenuActions) ProtoMessage()
func (x *MenuActions) ProtoReflect() protoreflect.Message
func (x *MenuActions) Reset()
func (x *MenuActions) String() string
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 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 struct {
	OrderField []*unified.OrderField `protobuf:"bytes,1,rep,name=OrderField,proto3" json:"OrderField,omitempty"`
	// contains filtered or unexported fields
}
func (*MenuQueryOptions) Descriptor() ([]byte, []int)

Deprecated: Use MenuQueryOptions.ProtoReflect.Descriptor instead.

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 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() ([]byte, []int)

Deprecated: Use MenuQueryParam.ProtoReflect.Descriptor instead.

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 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() ([]byte, []int)

Deprecated: Use MenuQueryReq.ProtoReflect.Descriptor instead.

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 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() ([]byte, []int)

Deprecated: Use MenuQueryResult.ProtoReflect.Descriptor instead.

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 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() ([]byte, []int)

Deprecated: Use MenuReq.ProtoReflect.Descriptor instead.

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 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() ([]byte, []int)

Deprecated: Use MenuTree.ProtoReflect.Descriptor instead.

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 struct {
	MenuTree []*MenuTree `protobuf:"bytes,1,rep,name=MenuTree,proto3" json:"MenuTree,omitempty"`
	// contains filtered or unexported fields
}
func (*MenuTrees) Descriptor() ([]byte, []int)

Deprecated: Use MenuTrees.ProtoReflect.Descriptor instead.

func (x *MenuTrees) GetMenuTree() []*MenuTree
func (*MenuTrees) ProtoMessage()
func (x *MenuTrees) ProtoReflect() protoreflect.Message
func (x *MenuTrees) Reset()
func (x *MenuTrees) 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) Descriptor() ([]byte, []int)

Deprecated: Use Role.ProtoReflect.Descriptor instead.

func (*Role) GetCreatedAt

func (x *Role) GetCreatedAt() *timestamp.Timestamp

func (*Role) GetCreator

func (x *Role) GetCreator() string

func (*Role) GetID

func (x *Role) GetID() string

func (*Role) GetMemo

func (x *Role) GetMemo() string

func (*Role) GetName

func (x *Role) GetName() string

func (*Role) GetSequence

func (x *Role) GetSequence() int32

func (*Role) GetStatus

func (x *Role) GetStatus() int32

func (*Role) GetUpdatedAt

func (x *Role) GetUpdatedAt() *timestamp.Timestamp

func (*Role) ProtoMessage

func (*Role) ProtoMessage()

func (*Role) ProtoReflect

func (x *Role) ProtoReflect() protoreflect.Message

func (*Role) Reset

func (x *Role) Reset()

func (*Role) String

func (x *Role) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use RoleReq.ProtoReflect.Descriptor instead.

func (*RoleReq) GetCurrentID

func (x *RoleReq) GetCurrentID() string

func (*RoleReq) GetRole

func (x *RoleReq) GetRole() *Role

func (*RoleReq) GetRoleQueryOptions

func (x *RoleReq) GetRoleQueryOptions() *RoleQueryOptions

func (*RoleReq) ProtoMessage

func (*RoleReq) ProtoMessage()

func (*RoleReq) ProtoReflect

func (x *RoleReq) ProtoReflect() protoreflect.Message

func (*RoleReq) Reset

func (x *RoleReq) Reset()

func (*RoleReq) String

func (x *RoleReq) 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) Descriptor() ([]byte, []int)

Deprecated: Use User.ProtoReflect.Descriptor instead.

func (*User) GetCreatedAt

func (x *User) GetCreatedAt() *timestamp.Timestamp

func (*User) GetCreator

func (x *User) GetCreator() string

func (*User) GetEmail

func (x *User) GetEmail() string

func (*User) GetID

func (x *User) GetID() string

func (*User) GetPassword

func (x *User) GetPassword() string

func (*User) GetPhone

func (x *User) GetPhone() string

func (*User) GetRealName

func (x *User) GetRealName() string

func (*User) GetStatus

func (x *User) GetStatus() int32

func (*User) GetUserName

func (x *User) GetUserName() string

func (*User) GetUserRoles

func (x *User) GetUserRoles() []*UserRole

func (*User) ProtoMessage

func (*User) ProtoMessage()

func (*User) ProtoReflect

func (x *User) ProtoReflect() protoreflect.Message

func (*User) Reset

func (x *User) Reset()

func (*User) String

func (x *User) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use UserReq.ProtoReflect.Descriptor instead.

func (*UserReq) GetCurrentID

func (x *UserReq) GetCurrentID() string

func (*UserReq) GetUser

func (x *UserReq) GetUser() *User

func (*UserReq) GetUserQueryOptions

func (x *UserReq) GetUserQueryOptions() *UserQueryOptions

func (*UserReq) ProtoMessage

func (*UserReq) ProtoMessage()

func (*UserReq) ProtoReflect

func (x *UserReq) ProtoReflect() protoreflect.Message

func (*UserReq) Reset

func (x *UserReq) Reset()

func (*UserReq) String

func (x *UserReq) 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) Descriptor() ([]byte, []int)

Deprecated: Use UserRole.ProtoReflect.Descriptor instead.

func (*UserRole) GetID

func (x *UserRole) GetID() string

func (*UserRole) GetRoleID

func (x *UserRole) GetRoleID() string

func (*UserRole) GetUserID

func (x *UserRole) GetUserID() string

func (*UserRole) ProtoMessage

func (*UserRole) ProtoMessage()

func (*UserRole) ProtoReflect

func (x *UserRole) ProtoReflect() protoreflect.Message

func (*UserRole) Reset

func (x *UserRole) Reset()

func (*UserRole) String

func (x *UserRole) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL