usercenter

package
v1.0.13 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2021 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Code_name = map[int32]string{
		0:     "None",
		20000: "Success",
		50000: "InternalServerError",
		40000: "BadRequest",
		40001: "Unauthorized",
		40002: "ErrRecordNotFound",
		41001: "UserNameOrPasswordIsWrong",
		41002: "UserIsNotExist",
		41003: "NoPermission",
		41004: "TokenInvalid",
		41005: "TokenExpired",
		41006: "UserDisabled",
	}
	Code_value = map[string]int32{
		"None":                      0,
		"Success":                   20000,
		"InternalServerError":       50000,
		"BadRequest":                40000,
		"Unauthorized":              40001,
		"ErrRecordNotFound":         40002,
		"UserNameOrPasswordIsWrong": 41001,
		"UserIsNotExist":            41002,
		"NoPermission":              41003,
		"TokenInvalid":              41004,
		"TokenExpired":              41005,
		"UserDisabled":              41006,
	}
)

Enum value maps for Code.

View Source
var API_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "usercenter.API",
	HandlerType: (*APIServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Add",
			Handler:    _API_Add_Handler,
		},
		{
			MethodName: "Update",
			Handler:    _API_Update_Handler,
		},
		{
			MethodName: "Delete",
			Handler:    _API_Delete_Handler,
		},
		{
			MethodName: "Query",
			Handler:    _API_Query_Handler,
		},
		{
			MethodName: "Enable",
			Handler:    _API_Enable_Handler,
		},
		{
			MethodName: "GetAll",
			Handler:    _API_GetAll_Handler,
		},
		{
			MethodName: "GetDetail",
			Handler:    _API_GetDetail_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "api.proto",
}

API_ServiceDesc is the grpc.ServiceDesc for API service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var File_common_proto protoreflect.FileDescriptor
View Source
var File_identity_proto protoreflect.FileDescriptor
View Source
var File_tenant_proto protoreflect.FileDescriptor
View Source
var Identity_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "usercenter.Identity",
	HandlerType: (*IdentityServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Authenticate",
			Handler:    _Identity_Authenticate_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "identity.proto",
}

Identity_ServiceDesc is the grpc.ServiceDesc for Identity service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var Menu_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "usercenter.Menu",
	HandlerType: (*MenuServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Add",
			Handler:    _Menu_Add_Handler,
		},
		{
			MethodName: "Update",
			Handler:    _Menu_Update_Handler,
		},
		{
			MethodName: "Delete",
			Handler:    _Menu_Delete_Handler,
		},
		{
			MethodName: "Query",
			Handler:    _Menu_Query_Handler,
		},
		{
			MethodName: "GetAll",
			Handler:    _Menu_GetAll_Handler,
		},
		{
			MethodName: "GetDetail",
			Handler:    _Menu_GetDetail_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "menu.proto",
}

Menu_ServiceDesc is the grpc.ServiceDesc for Menu service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var Role_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "usercenter.Role",
	HandlerType: (*RoleServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Add",
			Handler:    _Role_Add_Handler,
		},
		{
			MethodName: "Update",
			Handler:    _Role_Update_Handler,
		},
		{
			MethodName: "Delete",
			Handler:    _Role_Delete_Handler,
		},
		{
			MethodName: "Query",
			Handler:    _Role_Query_Handler,
		},
		{
			MethodName: "GetAll",
			Handler:    _Role_GetAll_Handler,
		},
		{
			MethodName: "GetDetail",
			Handler:    _Role_GetDetail_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "role.proto",
}

Role_ServiceDesc is the grpc.ServiceDesc for Role service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var Tenant_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "usercenter.Tenant",
	HandlerType: (*TenantServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Add",
			Handler:    _Tenant_Add_Handler,
		},
		{
			MethodName: "Update",
			Handler:    _Tenant_Update_Handler,
		},
		{
			MethodName: "Delete",
			Handler:    _Tenant_Delete_Handler,
		},
		{
			MethodName: "Query",
			Handler:    _Tenant_Query_Handler,
		},
		{
			MethodName: "Enable",
			Handler:    _Tenant_Enable_Handler,
		},
		{
			MethodName: "GetAll",
			Handler:    _Tenant_GetAll_Handler,
		},
		{
			MethodName: "GetDetail",
			Handler:    _Tenant_GetDetail_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "tenant.proto",
}

Tenant_ServiceDesc is the grpc.ServiceDesc for Tenant service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var User_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "usercenter.User",
	HandlerType: (*UserServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Login",
			Handler:    _User_Login_Handler,
		},
		{
			MethodName: "Add",
			Handler:    _User_Add_Handler,
		},
		{
			MethodName: "Update",
			Handler:    _User_Update_Handler,
		},
		{
			MethodName: "Delete",
			Handler:    _User_Delete_Handler,
		},
		{
			MethodName: "Query",
			Handler:    _User_Query_Handler,
		},
		{
			MethodName: "GetProfile",
			Handler:    _User_GetProfile_Handler,
		},
		{
			MethodName: "Enable",
			Handler:    _User_Enable_Handler,
		},
		{
			MethodName: "GetAll",
			Handler:    _User_GetAll_Handler,
		},
		{
			MethodName: "GetDetail",
			Handler:    _User_GetDetail_Handler,
		},
		{
			MethodName: "ResetPwd",
			Handler:    _User_ResetPwd_Handler,
		},
		{
			MethodName: "ChangePwd",
			Handler:    _User_ChangePwd_Handler,
		},
		{
			MethodName: "Logout",
			Handler:    _User_Logout_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "user.proto",
}

User_ServiceDesc is the grpc.ServiceDesc for User service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterAPIServer

func RegisterAPIServer(s grpc.ServiceRegistrar, srv APIServer)

func RegisterIdentityServer

func RegisterIdentityServer(s grpc.ServiceRegistrar, srv IdentityServer)

func RegisterMenuServer

func RegisterMenuServer(s grpc.ServiceRegistrar, srv MenuServer)

func RegisterRoleServer

func RegisterRoleServer(s grpc.ServiceRegistrar, srv RoleServer)

func RegisterTenantServer

func RegisterTenantServer(s grpc.ServiceRegistrar, srv TenantServer)

func RegisterUserServer

func RegisterUserServer(s grpc.ServiceRegistrar, srv UserServer)

Types

type APIClient

APIClient is the client API for API service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

func NewAPIClient

func NewAPIClient(cc *triple.TripleConn) APIClient

type APIClientImpl

type APIClientImpl struct {
	Add       func(ctx context.Context, in *APIInfo) (*CommonResponse, error)
	Update    func(ctx context.Context, in *APIInfo) (*CommonResponse, error)
	Delete    func(ctx context.Context, in *DelRequest) (*CommonResponse, error)
	Query     func(ctx context.Context, in *QueryAPIRequest) (*QueryAPIResponse, error)
	Enable    func(ctx context.Context, in *EnableRequest) (*CommonResponse, error)
	GetAll    func(ctx context.Context, in *GetAllRequest) (*GetAllAPIResponse, error)
	GetDetail func(ctx context.Context, in *GetDetailRequest) (*GetAPIDetailResponse, error)
}

func (*APIClientImpl) GetDubboStub

func (c *APIClientImpl) GetDubboStub(cc *triple.TripleConn) APIClient

type APIInfo

type APIInfo struct {

	//UUID
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	//路径
	Path string `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"`
	//分组
	Group string `protobuf:"bytes,3,opt,name=group,proto3" json:"group,omitempty"`
	//方法 GET POST PUT 等等
	Method string `protobuf:"bytes,4,opt,name=method,proto3" json:"method,omitempty"`
	//描述
	Description string `protobuf:"bytes,5,opt,name=description,proto3" json:"description,omitempty"`
	//是否启用
	Enable bool `protobuf:"varint,6,opt,name=enable,proto3" json:"enable,omitempty"`
	//是否检查权限
	CheckAuth bool `protobuf:"varint,7,opt,name=checkAuth,proto3" json:"checkAuth,omitempty"`
	//是否需要登录
	CheckLogin bool `protobuf:"varint,8,opt,name=checkLogin,proto3" json:"checkLogin,omitempty"`
	// contains filtered or unexported fields
}

func (*APIInfo) Descriptor deprecated

func (*APIInfo) Descriptor() ([]byte, []int)

Deprecated: Use APIInfo.ProtoReflect.Descriptor instead.

func (*APIInfo) GetCheckAuth

func (x *APIInfo) GetCheckAuth() bool

func (*APIInfo) GetCheckLogin

func (x *APIInfo) GetCheckLogin() bool

func (*APIInfo) GetDescription

func (x *APIInfo) GetDescription() string

func (*APIInfo) GetEnable

func (x *APIInfo) GetEnable() bool

func (*APIInfo) GetGroup

func (x *APIInfo) GetGroup() string

func (*APIInfo) GetId

func (x *APIInfo) GetId() string

func (*APIInfo) GetMethod

func (x *APIInfo) GetMethod() string

func (*APIInfo) GetPath

func (x *APIInfo) GetPath() string

func (*APIInfo) ProtoMessage

func (*APIInfo) ProtoMessage()

func (*APIInfo) ProtoReflect

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

func (*APIInfo) Reset

func (x *APIInfo) Reset()

func (*APIInfo) String

func (x *APIInfo) String() string

type APIServer

APIServer is the server API for API service. All implementations must embed UnimplementedAPIServer for forward compatibility

type AuthenticateRequest

type AuthenticateRequest struct {
	Token     string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
	Url       string `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"`
	CheckAuth bool   `protobuf:"varint,3,opt,name=checkAuth,proto3" json:"checkAuth,omitempty"`
	Method    string `protobuf:"bytes,4,opt,name=method,proto3" json:"method,omitempty"`
	// contains filtered or unexported fields
}

func (*AuthenticateRequest) Descriptor deprecated

func (*AuthenticateRequest) Descriptor() ([]byte, []int)

Deprecated: Use AuthenticateRequest.ProtoReflect.Descriptor instead.

func (*AuthenticateRequest) GetCheckAuth

func (x *AuthenticateRequest) GetCheckAuth() bool

func (*AuthenticateRequest) GetMethod

func (x *AuthenticateRequest) GetMethod() string

func (*AuthenticateRequest) GetToken

func (x *AuthenticateRequest) GetToken() string

func (*AuthenticateRequest) GetUrl

func (x *AuthenticateRequest) GetUrl() string

func (*AuthenticateRequest) ProtoMessage

func (*AuthenticateRequest) ProtoMessage()

func (*AuthenticateRequest) ProtoReflect

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

func (*AuthenticateRequest) Reset

func (x *AuthenticateRequest) Reset()

func (*AuthenticateRequest) String

func (x *AuthenticateRequest) String() string

type AuthenticateResponse

type AuthenticateResponse struct {
	Code        Code         `protobuf:"varint,1,opt,name=code,proto3,enum=usercenter.Code" json:"code,omitempty"`
	Message     string       `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	CurrentUser *CurrentUser `protobuf:"bytes,3,opt,name=currentUser,proto3" json:"currentUser,omitempty"`
	// contains filtered or unexported fields
}

func (*AuthenticateResponse) Descriptor deprecated

func (*AuthenticateResponse) Descriptor() ([]byte, []int)

Deprecated: Use AuthenticateResponse.ProtoReflect.Descriptor instead.

func (*AuthenticateResponse) GetCode

func (x *AuthenticateResponse) GetCode() Code

func (*AuthenticateResponse) GetCurrentUser

func (x *AuthenticateResponse) GetCurrentUser() *CurrentUser

func (*AuthenticateResponse) GetMessage

func (x *AuthenticateResponse) GetMessage() string

func (*AuthenticateResponse) ProtoMessage

func (*AuthenticateResponse) ProtoMessage()

func (*AuthenticateResponse) ProtoReflect

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

func (*AuthenticateResponse) Reset

func (x *AuthenticateResponse) Reset()

func (*AuthenticateResponse) String

func (x *AuthenticateResponse) String() string

type ChangePwdRequest

type ChangePwdRequest struct {
	Id       string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	TenantID string `protobuf:"bytes,2,opt,name=tenantID,proto3" json:"tenantID,omitempty"`
	NewPwd   string `protobuf:"bytes,3,opt,name=newPwd,proto3" json:"newPwd,omitempty"`
	OldPwd   string `protobuf:"bytes,4,opt,name=oldPwd,proto3" json:"oldPwd,omitempty"`
	// contains filtered or unexported fields
}

func (*ChangePwdRequest) Descriptor deprecated

func (*ChangePwdRequest) Descriptor() ([]byte, []int)

Deprecated: Use ChangePwdRequest.ProtoReflect.Descriptor instead.

func (*ChangePwdRequest) GetId

func (x *ChangePwdRequest) GetId() string

func (*ChangePwdRequest) GetNewPwd

func (x *ChangePwdRequest) GetNewPwd() string

func (*ChangePwdRequest) GetOldPwd

func (x *ChangePwdRequest) GetOldPwd() string

func (*ChangePwdRequest) GetTenantID

func (x *ChangePwdRequest) GetTenantID() string

func (*ChangePwdRequest) ProtoMessage

func (*ChangePwdRequest) ProtoMessage()

func (*ChangePwdRequest) ProtoReflect

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

func (*ChangePwdRequest) Reset

func (x *ChangePwdRequest) Reset()

func (*ChangePwdRequest) String

func (x *ChangePwdRequest) String() string

type Code

type Code int32
const (
	Code_None Code = 0
	//成功
	Code_Success Code = 20000
	//服务端错误
	Code_InternalServerError Code = 50000
	//错误请求参数
	Code_BadRequest Code = 40000
	//未授权
	Code_Unauthorized Code = 40001
	//资源不存在
	Code_ErrRecordNotFound Code = 40002
	//用户名或者密码错误
	Code_UserNameOrPasswordIsWrong Code = 41001
	//用户不存在
	Code_UserIsNotExist Code = 41002
	//没有权限
	Code_NoPermission Code = 41003
	//无效Token
	Code_TokenInvalid Code = 41004
	//Token过期
	Code_TokenExpired Code = 41005
	//已禁用用户
	Code_UserDisabled Code = 41006
)

func (Code) Descriptor

func (Code) Descriptor() protoreflect.EnumDescriptor

func (Code) Enum

func (x Code) Enum() *Code

func (Code) EnumDescriptor deprecated

func (Code) EnumDescriptor() ([]byte, []int)

Deprecated: Use Code.Descriptor instead.

func (Code) Number

func (x Code) Number() protoreflect.EnumNumber

func (Code) String

func (x Code) String() string

func (Code) Type

func (Code) Type() protoreflect.EnumType

type CommonResponse

type CommonResponse struct {
	Code    Code   `protobuf:"varint,1,opt,name=code,proto3,enum=usercenter.Code" json:"code,omitempty"`
	Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	// contains filtered or unexported fields
}

func (*CommonResponse) Descriptor deprecated

func (*CommonResponse) Descriptor() ([]byte, []int)

Deprecated: Use CommonResponse.ProtoReflect.Descriptor instead.

func (*CommonResponse) GetCode

func (x *CommonResponse) GetCode() Code

func (*CommonResponse) GetMessage

func (x *CommonResponse) GetMessage() string

func (*CommonResponse) ProtoMessage

func (*CommonResponse) ProtoMessage()

func (*CommonResponse) ProtoReflect

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

func (*CommonResponse) Reset

func (x *CommonResponse) Reset()

func (*CommonResponse) String

func (x *CommonResponse) String() string

type CurrentUser

type CurrentUser struct {
	Id         string   `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	UserName   string   `protobuf:"bytes,2,opt,name=userName,proto3" json:"userName,omitempty"`
	Gender     bool     `protobuf:"varint,3,opt,name=gender,proto3" json:"gender,omitempty"`
	DeviceType int32    `protobuf:"varint,4,opt,name=deviceType,proto3" json:"deviceType,omitempty"`
	Domain     string   `protobuf:"bytes,5,opt,name=domain,proto3" json:"domain,omitempty"`
	SessionID  string   `protobuf:"bytes,6,opt,name=sessionID,proto3" json:"sessionID,omitempty"`
	Key        string   `protobuf:"bytes,7,opt,name=key,proto3" json:"key,omitempty"`
	RoleIDs    []string `protobuf:"bytes,8,rep,name=roleIDs,proto3" json:"roleIDs,omitempty"`
	TenantID   string   `protobuf:"bytes,9,opt,name=tenantID,proto3" json:"tenantID,omitempty"`
	ClientIP   string   `protobuf:"bytes,10,opt,name=clientIP,proto3" json:"clientIP,omitempty"`
	//用户类型
	Type int32 `protobuf:"varint,11,opt,name=type,proto3" json:"type,omitempty"`
	// contains filtered or unexported fields
}

func (*CurrentUser) Descriptor deprecated

func (*CurrentUser) Descriptor() ([]byte, []int)

Deprecated: Use CurrentUser.ProtoReflect.Descriptor instead.

func (*CurrentUser) GetClientIP

func (x *CurrentUser) GetClientIP() string

func (*CurrentUser) GetDeviceType

func (x *CurrentUser) GetDeviceType() int32

func (*CurrentUser) GetDomain

func (x *CurrentUser) GetDomain() string

func (*CurrentUser) GetGender

func (x *CurrentUser) GetGender() bool

func (*CurrentUser) GetId

func (x *CurrentUser) GetId() string

func (*CurrentUser) GetKey

func (x *CurrentUser) GetKey() string

func (*CurrentUser) GetRoleIDs

func (x *CurrentUser) GetRoleIDs() []string

func (*CurrentUser) GetSessionID

func (x *CurrentUser) GetSessionID() string

func (*CurrentUser) GetTenantID

func (x *CurrentUser) GetTenantID() string

func (*CurrentUser) GetType added in v1.0.8

func (x *CurrentUser) GetType() int32

func (*CurrentUser) GetUserName

func (x *CurrentUser) GetUserName() string

func (*CurrentUser) ProtoMessage

func (*CurrentUser) ProtoMessage()

func (*CurrentUser) ProtoReflect

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

func (*CurrentUser) Reset

func (x *CurrentUser) Reset()

func (*CurrentUser) String

func (x *CurrentUser) String() string

type DelRequest

type DelRequest struct {
	Id       string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	TenantID string `protobuf:"bytes,2,opt,name=tenantID,proto3" json:"tenantID,omitempty"`
	// contains filtered or unexported fields
}

func (*DelRequest) Descriptor deprecated

func (*DelRequest) Descriptor() ([]byte, []int)

Deprecated: Use DelRequest.ProtoReflect.Descriptor instead.

func (*DelRequest) GetId

func (x *DelRequest) GetId() string

func (*DelRequest) GetTenantID

func (x *DelRequest) GetTenantID() string

func (*DelRequest) ProtoMessage

func (*DelRequest) ProtoMessage()

func (*DelRequest) ProtoReflect

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

func (*DelRequest) Reset

func (x *DelRequest) Reset()

func (*DelRequest) String

func (x *DelRequest) String() string

type EnableRequest

type EnableRequest struct {
	Id       string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	TenantID string `protobuf:"bytes,2,opt,name=tenantID,proto3" json:"tenantID,omitempty"`
	Enable   bool   `protobuf:"varint,3,opt,name=enable,proto3" json:"enable,omitempty"`
	// contains filtered or unexported fields
}

func (*EnableRequest) Descriptor deprecated

func (*EnableRequest) Descriptor() ([]byte, []int)

Deprecated: Use EnableRequest.ProtoReflect.Descriptor instead.

func (*EnableRequest) GetEnable

func (x *EnableRequest) GetEnable() bool

func (*EnableRequest) GetId

func (x *EnableRequest) GetId() string

func (*EnableRequest) GetTenantID

func (x *EnableRequest) GetTenantID() string

func (*EnableRequest) ProtoMessage

func (*EnableRequest) ProtoMessage()

func (*EnableRequest) ProtoReflect

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

func (*EnableRequest) Reset

func (x *EnableRequest) Reset()

func (*EnableRequest) String

func (x *EnableRequest) String() string

type GetAPIDetailResponse

type GetAPIDetailResponse struct {
	Code    Code     `protobuf:"varint,1,opt,name=code,proto3,enum=usercenter.Code" json:"code,omitempty"`
	Message string   `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	Data    *APIInfo `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*GetAPIDetailResponse) Descriptor deprecated

func (*GetAPIDetailResponse) Descriptor() ([]byte, []int)

Deprecated: Use GetAPIDetailResponse.ProtoReflect.Descriptor instead.

func (*GetAPIDetailResponse) GetCode

func (x *GetAPIDetailResponse) GetCode() Code

func (*GetAPIDetailResponse) GetData

func (x *GetAPIDetailResponse) GetData() *APIInfo

func (*GetAPIDetailResponse) GetMessage

func (x *GetAPIDetailResponse) GetMessage() string

func (*GetAPIDetailResponse) ProtoMessage

func (*GetAPIDetailResponse) ProtoMessage()

func (*GetAPIDetailResponse) ProtoReflect

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

func (*GetAPIDetailResponse) Reset

func (x *GetAPIDetailResponse) Reset()

func (*GetAPIDetailResponse) String

func (x *GetAPIDetailResponse) String() string

type GetAllAPIResponse

type GetAllAPIResponse struct {
	Code    Code       `protobuf:"varint,1,opt,name=code,proto3,enum=usercenter.Code" json:"code,omitempty"`
	Message string     `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	Data    []*APIInfo `protobuf:"bytes,3,rep,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*GetAllAPIResponse) Descriptor deprecated

func (*GetAllAPIResponse) Descriptor() ([]byte, []int)

Deprecated: Use GetAllAPIResponse.ProtoReflect.Descriptor instead.

func (*GetAllAPIResponse) GetCode

func (x *GetAllAPIResponse) GetCode() Code

func (*GetAllAPIResponse) GetData

func (x *GetAllAPIResponse) GetData() []*APIInfo

func (*GetAllAPIResponse) GetMessage

func (x *GetAllAPIResponse) GetMessage() string

func (*GetAllAPIResponse) ProtoMessage

func (*GetAllAPIResponse) ProtoMessage()

func (*GetAllAPIResponse) ProtoReflect

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

func (*GetAllAPIResponse) Reset

func (x *GetAllAPIResponse) Reset()

func (*GetAllAPIResponse) String

func (x *GetAllAPIResponse) String() string

type GetAllMenuResponse

type GetAllMenuResponse struct {
	Code    Code        `protobuf:"varint,1,opt,name=code,proto3,enum=usercenter.Code" json:"code,omitempty"`
	Message string      `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	Data    []*MenuInfo `protobuf:"bytes,3,rep,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*GetAllMenuResponse) Descriptor deprecated

func (*GetAllMenuResponse) Descriptor() ([]byte, []int)

Deprecated: Use GetAllMenuResponse.ProtoReflect.Descriptor instead.

func (*GetAllMenuResponse) GetCode

func (x *GetAllMenuResponse) GetCode() Code

func (*GetAllMenuResponse) GetData

func (x *GetAllMenuResponse) GetData() []*MenuInfo

func (*GetAllMenuResponse) GetMessage

func (x *GetAllMenuResponse) GetMessage() string

func (*GetAllMenuResponse) ProtoMessage

func (*GetAllMenuResponse) ProtoMessage()

func (*GetAllMenuResponse) ProtoReflect

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

func (*GetAllMenuResponse) Reset

func (x *GetAllMenuResponse) Reset()

func (*GetAllMenuResponse) String

func (x *GetAllMenuResponse) String() string

type GetAllRequest

type GetAllRequest struct {

	// @inject_tag: uri:"tenantID" form:"tenantID"
	TenantID string `protobuf:"bytes,1,opt,name=tenantID,proto3" json:"tenantID,omitempty" uri:"tenantID" form:"tenantID"`
	// contains filtered or unexported fields
}

func (*GetAllRequest) Descriptor deprecated

func (*GetAllRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetAllRequest.ProtoReflect.Descriptor instead.

func (*GetAllRequest) GetTenantID added in v1.0.2

func (x *GetAllRequest) GetTenantID() string

func (*GetAllRequest) ProtoMessage

func (*GetAllRequest) ProtoMessage()

func (*GetAllRequest) ProtoReflect

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

func (*GetAllRequest) Reset

func (x *GetAllRequest) Reset()

func (*GetAllRequest) String

func (x *GetAllRequest) String() string

type GetAllRoleResponse

type GetAllRoleResponse struct {
	Code    Code        `protobuf:"varint,1,opt,name=code,proto3,enum=usercenter.Code" json:"code,omitempty"`
	Message string      `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	Data    []*RoleInfo `protobuf:"bytes,3,rep,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*GetAllRoleResponse) Descriptor deprecated

func (*GetAllRoleResponse) Descriptor() ([]byte, []int)

Deprecated: Use GetAllRoleResponse.ProtoReflect.Descriptor instead.

func (*GetAllRoleResponse) GetCode

func (x *GetAllRoleResponse) GetCode() Code

func (*GetAllRoleResponse) GetData

func (x *GetAllRoleResponse) GetData() []*RoleInfo

func (*GetAllRoleResponse) GetMessage

func (x *GetAllRoleResponse) GetMessage() string

func (*GetAllRoleResponse) ProtoMessage

func (*GetAllRoleResponse) ProtoMessage()

func (*GetAllRoleResponse) ProtoReflect

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

func (*GetAllRoleResponse) Reset

func (x *GetAllRoleResponse) Reset()

func (*GetAllRoleResponse) String

func (x *GetAllRoleResponse) String() string

type GetAllTenantResponse

type GetAllTenantResponse struct {
	Code    Code          `protobuf:"varint,1,opt,name=code,proto3,enum=usercenter.Code" json:"code,omitempty"`
	Message string        `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	Data    []*TenantInfo `protobuf:"bytes,3,rep,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*GetAllTenantResponse) Descriptor deprecated

func (*GetAllTenantResponse) Descriptor() ([]byte, []int)

Deprecated: Use GetAllTenantResponse.ProtoReflect.Descriptor instead.

func (*GetAllTenantResponse) GetCode

func (x *GetAllTenantResponse) GetCode() Code

func (*GetAllTenantResponse) GetData

func (x *GetAllTenantResponse) GetData() []*TenantInfo

func (*GetAllTenantResponse) GetMessage

func (x *GetAllTenantResponse) GetMessage() string

func (*GetAllTenantResponse) ProtoMessage

func (*GetAllTenantResponse) ProtoMessage()

func (*GetAllTenantResponse) ProtoReflect

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

func (*GetAllTenantResponse) Reset

func (x *GetAllTenantResponse) Reset()

func (*GetAllTenantResponse) String

func (x *GetAllTenantResponse) String() string

type GetAllUsersRequest added in v1.0.13

type GetAllUsersRequest struct {

	// @inject_tag: uri:"tenantID" form:"tenantID"
	TenantID string `protobuf:"bytes,1,opt,name=tenantID,proto3" json:"tenantID,omitempty" uri:"tenantID" form:"tenantID"`
	// @inject_tag: uri:"group" form:"group"
	Group string `protobuf:"bytes,2,opt,name=group,proto3" json:"group,omitempty" uri:"group" form:"group"`
	// @inject_tag: uri:"type" form:"type"
	Type int32 `protobuf:"varint,3,opt,name=type,proto3" json:"type,omitempty" uri:"type" form:"type"`
	// contains filtered or unexported fields
}

func (*GetAllUsersRequest) Descriptor deprecated added in v1.0.13

func (*GetAllUsersRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetAllUsersRequest.ProtoReflect.Descriptor instead.

func (*GetAllUsersRequest) GetGroup added in v1.0.13

func (x *GetAllUsersRequest) GetGroup() string

func (*GetAllUsersRequest) GetTenantID added in v1.0.13

func (x *GetAllUsersRequest) GetTenantID() string

func (*GetAllUsersRequest) GetType added in v1.0.13

func (x *GetAllUsersRequest) GetType() int32

func (*GetAllUsersRequest) ProtoMessage added in v1.0.13

func (*GetAllUsersRequest) ProtoMessage()

func (*GetAllUsersRequest) ProtoReflect added in v1.0.13

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

func (*GetAllUsersRequest) Reset added in v1.0.13

func (x *GetAllUsersRequest) Reset()

func (*GetAllUsersRequest) String added in v1.0.13

func (x *GetAllUsersRequest) String() string

type GetAllUsersResponse added in v1.0.13

type GetAllUsersResponse struct {
	Code    Code        `protobuf:"varint,1,opt,name=code,proto3,enum=usercenter.Code" json:"code,omitempty"`
	Message string      `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	Data    []*UserInfo `protobuf:"bytes,3,rep,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*GetAllUsersResponse) Descriptor deprecated added in v1.0.13

func (*GetAllUsersResponse) Descriptor() ([]byte, []int)

Deprecated: Use GetAllUsersResponse.ProtoReflect.Descriptor instead.

func (*GetAllUsersResponse) GetCode added in v1.0.13

func (x *GetAllUsersResponse) GetCode() Code

func (*GetAllUsersResponse) GetData added in v1.0.13

func (x *GetAllUsersResponse) GetData() []*UserInfo

func (*GetAllUsersResponse) GetMessage added in v1.0.13

func (x *GetAllUsersResponse) GetMessage() string

func (*GetAllUsersResponse) ProtoMessage added in v1.0.13

func (*GetAllUsersResponse) ProtoMessage()

func (*GetAllUsersResponse) ProtoReflect added in v1.0.13

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

func (*GetAllUsersResponse) Reset added in v1.0.13

func (x *GetAllUsersResponse) Reset()

func (*GetAllUsersResponse) String added in v1.0.13

func (x *GetAllUsersResponse) String() string

type GetDetailRequest

type GetDetailRequest struct {

	// @inject_tag: uri:"id" form:"id"
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty" uri:"id" form:"id"`
	// @inject_tag: uri:"tenantID" form:"tenantID"
	TenantID string `protobuf:"bytes,2,opt,name=tenantID,proto3" json:"tenantID,omitempty" uri:"tenantID" form:"tenantID"`
	// contains filtered or unexported fields
}

func (*GetDetailRequest) Descriptor deprecated

func (*GetDetailRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetDetailRequest.ProtoReflect.Descriptor instead.

func (*GetDetailRequest) GetId

func (x *GetDetailRequest) GetId() string

func (*GetDetailRequest) GetTenantID

func (x *GetDetailRequest) GetTenantID() string

func (*GetDetailRequest) ProtoMessage

func (*GetDetailRequest) ProtoMessage()

func (*GetDetailRequest) ProtoReflect

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

func (*GetDetailRequest) Reset

func (x *GetDetailRequest) Reset()

func (*GetDetailRequest) String

func (x *GetDetailRequest) String() string

type GetMenuDetailResponse

type GetMenuDetailResponse struct {
	Code    Code      `protobuf:"varint,1,opt,name=code,proto3,enum=usercenter.Code" json:"code,omitempty"`
	Message string    `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	Data    *MenuInfo `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*GetMenuDetailResponse) Descriptor deprecated

func (*GetMenuDetailResponse) Descriptor() ([]byte, []int)

Deprecated: Use GetMenuDetailResponse.ProtoReflect.Descriptor instead.

func (*GetMenuDetailResponse) GetCode

func (x *GetMenuDetailResponse) GetCode() Code

func (*GetMenuDetailResponse) GetData

func (x *GetMenuDetailResponse) GetData() *MenuInfo

func (*GetMenuDetailResponse) GetMessage

func (x *GetMenuDetailResponse) GetMessage() string

func (*GetMenuDetailResponse) ProtoMessage

func (*GetMenuDetailResponse) ProtoMessage()

func (*GetMenuDetailResponse) ProtoReflect

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

func (*GetMenuDetailResponse) Reset

func (x *GetMenuDetailResponse) Reset()

func (*GetMenuDetailResponse) String

func (x *GetMenuDetailResponse) String() string

type GetProfileResponse

type GetProfileResponse struct {
	Code    Code      `protobuf:"varint,1,opt,name=code,proto3,enum=usercenter.Code" json:"code,omitempty"`
	Message string    `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	Data    *UserInfo `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*GetProfileResponse) Descriptor deprecated

func (*GetProfileResponse) Descriptor() ([]byte, []int)

Deprecated: Use GetProfileResponse.ProtoReflect.Descriptor instead.

func (*GetProfileResponse) GetCode

func (x *GetProfileResponse) GetCode() Code

func (*GetProfileResponse) GetData

func (x *GetProfileResponse) GetData() *UserInfo

func (*GetProfileResponse) GetMessage

func (x *GetProfileResponse) GetMessage() string

func (*GetProfileResponse) ProtoMessage

func (*GetProfileResponse) ProtoMessage()

func (*GetProfileResponse) ProtoReflect

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

func (*GetProfileResponse) Reset

func (x *GetProfileResponse) Reset()

func (*GetProfileResponse) String

func (x *GetProfileResponse) String() string

type GetRoleDetailResponse

type GetRoleDetailResponse struct {
	Code    Code      `protobuf:"varint,1,opt,name=code,proto3,enum=usercenter.Code" json:"code,omitempty"`
	Message string    `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	Data    *RoleInfo `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*GetRoleDetailResponse) Descriptor deprecated

func (*GetRoleDetailResponse) Descriptor() ([]byte, []int)

Deprecated: Use GetRoleDetailResponse.ProtoReflect.Descriptor instead.

func (*GetRoleDetailResponse) GetCode

func (x *GetRoleDetailResponse) GetCode() Code

func (*GetRoleDetailResponse) GetData

func (x *GetRoleDetailResponse) GetData() *RoleInfo

func (*GetRoleDetailResponse) GetMessage

func (x *GetRoleDetailResponse) GetMessage() string

func (*GetRoleDetailResponse) ProtoMessage

func (*GetRoleDetailResponse) ProtoMessage()

func (*GetRoleDetailResponse) ProtoReflect

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

func (*GetRoleDetailResponse) Reset

func (x *GetRoleDetailResponse) Reset()

func (*GetRoleDetailResponse) String

func (x *GetRoleDetailResponse) String() string

type GetTenantDetailResponse

type GetTenantDetailResponse struct {
	Code    Code        `protobuf:"varint,1,opt,name=code,proto3,enum=usercenter.Code" json:"code,omitempty"`
	Message string      `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	Data    *TenantInfo `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*GetTenantDetailResponse) Descriptor deprecated

func (*GetTenantDetailResponse) Descriptor() ([]byte, []int)

Deprecated: Use GetTenantDetailResponse.ProtoReflect.Descriptor instead.

func (*GetTenantDetailResponse) GetCode

func (x *GetTenantDetailResponse) GetCode() Code

func (*GetTenantDetailResponse) GetData

func (x *GetTenantDetailResponse) GetData() *TenantInfo

func (*GetTenantDetailResponse) GetMessage

func (x *GetTenantDetailResponse) GetMessage() string

func (*GetTenantDetailResponse) ProtoMessage

func (*GetTenantDetailResponse) ProtoMessage()

func (*GetTenantDetailResponse) ProtoReflect

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

func (*GetTenantDetailResponse) Reset

func (x *GetTenantDetailResponse) Reset()

func (*GetTenantDetailResponse) String

func (x *GetTenantDetailResponse) String() string

type GetUserDetailResponse

type GetUserDetailResponse struct {
	Code    Code      `protobuf:"varint,1,opt,name=code,proto3,enum=usercenter.Code" json:"code,omitempty"`
	Message string    `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	Data    *UserInfo `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*GetUserDetailResponse) Descriptor deprecated

func (*GetUserDetailResponse) Descriptor() ([]byte, []int)

Deprecated: Use GetUserDetailResponse.ProtoReflect.Descriptor instead.

func (*GetUserDetailResponse) GetCode

func (x *GetUserDetailResponse) GetCode() Code

func (*GetUserDetailResponse) GetData

func (x *GetUserDetailResponse) GetData() *UserInfo

func (*GetUserDetailResponse) GetMessage

func (x *GetUserDetailResponse) GetMessage() string

func (*GetUserDetailResponse) ProtoMessage

func (*GetUserDetailResponse) ProtoMessage()

func (*GetUserDetailResponse) ProtoReflect

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

func (*GetUserDetailResponse) Reset

func (x *GetUserDetailResponse) Reset()

func (*GetUserDetailResponse) String

func (x *GetUserDetailResponse) String() string

type IdentityClient

type IdentityClient interface {
	Authenticate(ctx context.Context, in *AuthenticateRequest, opts ...grpc.CallOption) (*AuthenticateResponse, common.ErrorWithAttachment)
}

IdentityClient is the client API for Identity service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

func NewIdentityClient

func NewIdentityClient(cc *triple.TripleConn) IdentityClient

type IdentityClientImpl

type IdentityClientImpl struct {
	Authenticate func(ctx context.Context, in *AuthenticateRequest) (*AuthenticateResponse, error)
}

func (*IdentityClientImpl) GetDubboStub

func (c *IdentityClientImpl) GetDubboStub(cc *triple.TripleConn) IdentityClient

type IdentityServer

type IdentityServer interface {
	Authenticate(context.Context, *AuthenticateRequest) (*AuthenticateResponse, error)
	// contains filtered or unexported methods
}

IdentityServer is the server API for Identity service. All implementations must embed UnimplementedIdentityServer for forward compatibility

type LoginRequest

type LoginRequest struct {
	UserName      string `protobuf:"bytes,1,opt,name=userName,proto3" json:"userName,omitempty"`
	Password      string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
	WechatUnionID string `protobuf:"bytes,3,opt,name=wechatUnionID,proto3" json:"wechatUnionID,omitempty"`
	WechatOpenID  string `protobuf:"bytes,4,opt,name=wechatOpenID,proto3" json:"wechatOpenID,omitempty"`
	// contains filtered or unexported fields
}

func (*LoginRequest) Descriptor deprecated

func (*LoginRequest) Descriptor() ([]byte, []int)

Deprecated: Use LoginRequest.ProtoReflect.Descriptor instead.

func (*LoginRequest) GetPassword

func (x *LoginRequest) GetPassword() string

func (*LoginRequest) GetUserName

func (x *LoginRequest) GetUserName() string

func (*LoginRequest) GetWechatOpenID

func (x *LoginRequest) GetWechatOpenID() string

func (*LoginRequest) GetWechatUnionID

func (x *LoginRequest) GetWechatUnionID() string

func (*LoginRequest) ProtoMessage

func (*LoginRequest) ProtoMessage()

func (*LoginRequest) ProtoReflect

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

func (*LoginRequest) Reset

func (x *LoginRequest) Reset()

func (*LoginRequest) String

func (x *LoginRequest) String() string

type LoginResponse

type LoginResponse struct {
	Code    Code   `protobuf:"varint,1,opt,name=code,proto3,enum=usercenter.Code" json:"code,omitempty"`
	Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	Data    string `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*LoginResponse) Descriptor deprecated

func (*LoginResponse) Descriptor() ([]byte, []int)

Deprecated: Use LoginResponse.ProtoReflect.Descriptor instead.

func (*LoginResponse) GetCode

func (x *LoginResponse) GetCode() Code

func (*LoginResponse) GetData

func (x *LoginResponse) GetData() string

func (*LoginResponse) GetMessage

func (x *LoginResponse) GetMessage() string

func (*LoginResponse) ProtoMessage

func (*LoginResponse) ProtoMessage()

func (*LoginResponse) ProtoReflect

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

func (*LoginResponse) Reset

func (x *LoginResponse) Reset()

func (*LoginResponse) String

func (x *LoginResponse) String() string

type LogoutRequest

type LogoutRequest struct {
	Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
	// contains filtered or unexported fields
}

func (*LogoutRequest) Descriptor deprecated

func (*LogoutRequest) Descriptor() ([]byte, []int)

Deprecated: Use LogoutRequest.ProtoReflect.Descriptor instead.

func (*LogoutRequest) GetToken added in v1.0.4

func (x *LogoutRequest) GetToken() string

func (*LogoutRequest) ProtoMessage

func (*LogoutRequest) ProtoMessage()

func (*LogoutRequest) ProtoReflect

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

func (*LogoutRequest) Reset

func (x *LogoutRequest) Reset()

func (*LogoutRequest) String

func (x *LogoutRequest) String() string

MenuClient is the client API for Menu service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

func NewMenuClient

func NewMenuClient(cc *triple.TripleConn) MenuClient
type MenuClientImpl struct {
	Add       func(ctx context.Context, in *MenuInfo) (*CommonResponse, error)
	Update    func(ctx context.Context, in *MenuInfo) (*CommonResponse, error)
	Delete    func(ctx context.Context, in *DelRequest) (*CommonResponse, error)
	Query     func(ctx context.Context, in *QueryMenuRequest) (*QueryMenuResponse, error)
	GetAll    func(ctx context.Context, in *GetAllRequest) (*GetAllMenuResponse, error)
	GetDetail func(ctx context.Context, in *GetDetailRequest) (*GetMenuDetailResponse, error)
}
func (c *MenuClientImpl) GetDubboStub(cc *triple.TripleConn) MenuClient
type MenuFunc struct {
	Id           uint32         `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	MenuID       string         `protobuf:"bytes,2,opt,name=menuID,proto3" json:"menuID,omitempty"`
	Name         string         `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	Title        string         `protobuf:"bytes,4,opt,name=title,proto3" json:"title,omitempty"`
	Hidden       bool           `protobuf:"varint,5,opt,name=hidden,proto3" json:"hidden,omitempty"`
	MenuFuncApis []*MenuFuncApi `protobuf:"bytes,6,rep,name=menuFuncApis,proto3" json:"menuFuncApis,omitempty"`
	// contains filtered or unexported fields
}
func (*MenuFunc) Descriptor() ([]byte, []int)

Deprecated: Use MenuFunc.ProtoReflect.Descriptor instead.

func (x *MenuFunc) GetHidden() bool
func (x *MenuFunc) GetId() uint32
func (x *MenuFunc) GetMenuFuncApis() []*MenuFuncApi
func (x *MenuFunc) GetMenuID() string
func (x *MenuFunc) GetName() string
func (x *MenuFunc) GetTitle() string
func (*MenuFunc) ProtoMessage()
func (x *MenuFunc) ProtoReflect() protoreflect.Message
func (x *MenuFunc) Reset()
func (x *MenuFunc) String() string
type MenuFuncApi struct {
	Id         uint32   `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	MenuFuncID string   `protobuf:"bytes,2,opt,name=menuFuncID,proto3" json:"menuFuncID,omitempty"`
	ApiID      string   `protobuf:"bytes,3,opt,name=apiID,proto3" json:"apiID,omitempty"`
	ApiInfo    *APIInfo `protobuf:"bytes,4,opt,name=apiInfo,proto3" json:"apiInfo,omitempty"`
	// contains filtered or unexported fields
}
func (*MenuFuncApi) Descriptor() ([]byte, []int)

Deprecated: Use MenuFuncApi.ProtoReflect.Descriptor instead.

func (x *MenuFuncApi) GetApiID() string
func (x *MenuFuncApi) GetApiInfo() *APIInfo
func (x *MenuFuncApi) GetId() uint32
func (x *MenuFuncApi) GetMenuFuncID() string
func (*MenuFuncApi) ProtoMessage()
func (x *MenuFuncApi) ProtoReflect() protoreflect.Message
func (x *MenuFuncApi) Reset()
func (x *MenuFuncApi) String() string
type MenuInfo struct {
	Id          string           `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Level       uint32           `protobuf:"varint,2,opt,name=level,proto3" json:"level,omitempty"`
	ParentID    string           `protobuf:"bytes,3,opt,name=parentID,proto3" json:"parentID,omitempty"`
	Path        string           `protobuf:"bytes,4,opt,name=path,proto3" json:"path,omitempty"`
	Name        string           `protobuf:"bytes,5,opt,name=name,proto3" json:"name,omitempty"`
	Hidden      bool             `protobuf:"varint,6,opt,name=hidden,proto3" json:"hidden,omitempty"`
	Component   string           `protobuf:"bytes,7,opt,name=component,proto3" json:"component,omitempty"`
	Sort        int32            `protobuf:"varint,8,opt,name=sort,proto3" json:"sort,omitempty"`
	Cache       bool             `protobuf:"varint,9,opt,name=cache,proto3" json:"cache,omitempty"`
	DefaultMenu bool             `protobuf:"varint,10,opt,name=defaultMenu,proto3" json:"defaultMenu,omitempty"`
	Title       string           `protobuf:"bytes,11,opt,name=title,proto3" json:"title,omitempty"`
	Icon        string           `protobuf:"bytes,12,opt,name=icon,proto3" json:"icon,omitempty"`
	CloseTab    bool             `protobuf:"varint,13,opt,name=closeTab,proto3" json:"closeTab,omitempty"`
	Children    []*MenuInfo      `protobuf:"bytes,14,rep,name=children,proto3" json:"children,omitempty"`
	Parameters  []*MenuParameter `protobuf:"bytes,15,rep,name=parameters,proto3" json:"parameters,omitempty"`
	MenuFuncs   []*MenuFunc      `protobuf:"bytes,16,rep,name=menuFuncs,proto3" json:"menuFuncs,omitempty"`
	// contains filtered or unexported fields
}
func (*MenuInfo) Descriptor() ([]byte, []int)

Deprecated: Use MenuInfo.ProtoReflect.Descriptor instead.

func (x *MenuInfo) GetCache() bool
func (x *MenuInfo) GetChildren() []*MenuInfo
func (x *MenuInfo) GetCloseTab() bool
func (x *MenuInfo) GetComponent() string
func (x *MenuInfo) GetDefaultMenu() bool
func (x *MenuInfo) GetHidden() bool
func (x *MenuInfo) GetIcon() string
func (x *MenuInfo) GetId() string
func (x *MenuInfo) GetLevel() uint32
func (x *MenuInfo) GetMenuFuncs() []*MenuFunc
func (x *MenuInfo) GetName() string
func (x *MenuInfo) GetParameters() []*MenuParameter
func (x *MenuInfo) GetParentID() string
func (x *MenuInfo) GetPath() string
func (x *MenuInfo) GetSort() int32
func (x *MenuInfo) GetTitle() string
func (*MenuInfo) ProtoMessage()
func (x *MenuInfo) ProtoReflect() protoreflect.Message
func (x *MenuInfo) Reset()
func (x *MenuInfo) String() string
type MenuParameter struct {
	Id     uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	MenuID string `protobuf:"bytes,2,opt,name=menuID,proto3" json:"menuID,omitempty"`
	Type   string `protobuf:"bytes,3,opt,name=type,proto3" json:"type,omitempty"`
	Key    string `protobuf:"bytes,4,opt,name=key,proto3" json:"key,omitempty"`
	Value  string `protobuf:"bytes,5,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}
func (*MenuParameter) Descriptor() ([]byte, []int)

Deprecated: Use MenuParameter.ProtoReflect.Descriptor instead.

func (x *MenuParameter) GetId() uint32
func (x *MenuParameter) GetKey() string
func (x *MenuParameter) GetMenuID() string
func (x *MenuParameter) GetType() string
func (x *MenuParameter) GetValue() string
func (*MenuParameter) ProtoMessage()
func (x *MenuParameter) ProtoReflect() protoreflect.Message
func (x *MenuParameter) Reset()
func (x *MenuParameter) String() string

MenuServer is the server API for Menu service. All implementations must embed UnimplementedMenuServer for forward compatibility

type QueryAPIRequest

type QueryAPIRequest struct {

	// @inject_tag: uri:"pageIndex" form:"pageIndex"
	PageIndex int64 `protobuf:"varint,1,opt,name=pageIndex,proto3" json:"pageIndex,omitempty" uri:"pageIndex" form:"pageIndex"`
	// @inject_tag: uri:"pageSize" form:"pageSize"
	PageSize int64 `protobuf:"varint,2,opt,name=pageSize,proto3" json:"pageSize,omitempty" uri:"pageSize" form:"pageSize"`
	// @inject_tag: uri:"orderField" form:"orderField"
	OrderField string `protobuf:"bytes,3,opt,name=orderField,proto3" json:"orderField,omitempty" uri:"orderField" form:"orderField"`
	// @inject_tag: uri:"desc" form:"desc"
	Desc bool `protobuf:"varint,4,opt,name=desc,proto3" json:"desc,omitempty" uri:"desc" form:"desc"`
	// @inject_tag: uri:"path" form:"path"
	Path string `protobuf:"bytes,5,opt,name=path,proto3" json:"path,omitempty" uri:"path" form:"path"`
	// @inject_tag: uri:"method" form:"method"
	Method string `protobuf:"bytes,6,opt,name=method,proto3" json:"method,omitempty" uri:"method" form:"method"`
	// @inject_tag: uri:"group" form:"group"
	Group string `protobuf:"bytes,7,opt,name=group,proto3" json:"group,omitempty" uri:"group" form:"group"`
	// @inject_tag: uri:"checkAuth" form:"checkAuth"
	CheckAuth int32 `protobuf:"varint,8,opt,name=checkAuth,proto3" json:"checkAuth,omitempty" uri:"checkAuth" form:"checkAuth"`
	// @inject_tag: uri:"checkLogin" form:"checkLogin"
	CheckLogin int32 `protobuf:"varint,9,opt,name=checkLogin,proto3" json:"checkLogin,omitempty" uri:"checkLogin" form:"checkLogin"`
	// contains filtered or unexported fields
}

func (*QueryAPIRequest) Descriptor deprecated

func (*QueryAPIRequest) Descriptor() ([]byte, []int)

Deprecated: Use QueryAPIRequest.ProtoReflect.Descriptor instead.

func (*QueryAPIRequest) GetCheckAuth

func (x *QueryAPIRequest) GetCheckAuth() int32

func (*QueryAPIRequest) GetCheckLogin

func (x *QueryAPIRequest) GetCheckLogin() int32

func (*QueryAPIRequest) GetDesc

func (x *QueryAPIRequest) GetDesc() bool

func (*QueryAPIRequest) GetGroup

func (x *QueryAPIRequest) GetGroup() string

func (*QueryAPIRequest) GetMethod

func (x *QueryAPIRequest) GetMethod() string

func (*QueryAPIRequest) GetOrderField

func (x *QueryAPIRequest) GetOrderField() string

func (*QueryAPIRequest) GetPageIndex

func (x *QueryAPIRequest) GetPageIndex() int64

func (*QueryAPIRequest) GetPageSize

func (x *QueryAPIRequest) GetPageSize() int64

func (*QueryAPIRequest) GetPath

func (x *QueryAPIRequest) GetPath() string

func (*QueryAPIRequest) ProtoMessage

func (*QueryAPIRequest) ProtoMessage()

func (*QueryAPIRequest) ProtoReflect

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

func (*QueryAPIRequest) Reset

func (x *QueryAPIRequest) Reset()

func (*QueryAPIRequest) String

func (x *QueryAPIRequest) String() string

type QueryAPIResponse

type QueryAPIResponse struct {
	Code    Code       `protobuf:"varint,1,opt,name=code,proto3,enum=usercenter.Code" json:"code,omitempty"`
	Message string     `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	Data    []*APIInfo `protobuf:"bytes,3,rep,name=data,proto3" json:"data,omitempty"`
	Pages   int64      `protobuf:"varint,4,opt,name=pages,proto3" json:"pages,omitempty"`
	Records int64      `protobuf:"varint,5,opt,name=records,proto3" json:"records,omitempty"`
	Total   int64      `protobuf:"varint,6,opt,name=total,proto3" json:"total,omitempty"`
	// contains filtered or unexported fields
}

func (*QueryAPIResponse) Descriptor deprecated

func (*QueryAPIResponse) Descriptor() ([]byte, []int)

Deprecated: Use QueryAPIResponse.ProtoReflect.Descriptor instead.

func (*QueryAPIResponse) GetCode

func (x *QueryAPIResponse) GetCode() Code

func (*QueryAPIResponse) GetData

func (x *QueryAPIResponse) GetData() []*APIInfo

func (*QueryAPIResponse) GetMessage

func (x *QueryAPIResponse) GetMessage() string

func (*QueryAPIResponse) GetPages

func (x *QueryAPIResponse) GetPages() int64

func (*QueryAPIResponse) GetRecords

func (x *QueryAPIResponse) GetRecords() int64

func (*QueryAPIResponse) GetTotal

func (x *QueryAPIResponse) GetTotal() int64

func (*QueryAPIResponse) ProtoMessage

func (*QueryAPIResponse) ProtoMessage()

func (*QueryAPIResponse) ProtoReflect

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

func (*QueryAPIResponse) Reset

func (x *QueryAPIResponse) Reset()

func (*QueryAPIResponse) String

func (x *QueryAPIResponse) String() string

type QueryMenuRequest

type QueryMenuRequest struct {

	// @inject_tag: uri:"pageIndex" form:"pageIndex"
	PageIndex int64 `protobuf:"varint,1,opt,name=pageIndex,proto3" json:"pageIndex,omitempty" uri:"pageIndex" form:"pageIndex"`
	// @inject_tag: uri:"pageSize" form:"pageSize"
	PageSize int64 `protobuf:"varint,2,opt,name=pageSize,proto3" json:"pageSize,omitempty" uri:"pageSize" form:"pageSize"`
	// @inject_tag: uri:"orderField" form:"orderField"
	OrderField string `protobuf:"bytes,3,opt,name=orderField,proto3" json:"orderField,omitempty" uri:"orderField" form:"orderField"`
	// @inject_tag: uri:"desc" form:"desc"
	Desc bool `protobuf:"varint,4,opt,name=desc,proto3" json:"desc,omitempty" uri:"desc" form:"desc"`
	// @inject_tag: uri:"name" form:"name"
	Name string `protobuf:"bytes,5,opt,name=name,proto3" json:"name,omitempty" uri:"name" form:"name"`
	// @inject_tag: uri:"path" form:"path"
	Path string `protobuf:"bytes,6,opt,name=path,proto3" json:"path,omitempty" uri:"path" form:"path"`
	// @inject_tag: uri:"title" form:"title"
	Title string `protobuf:"bytes,7,opt,name=title,proto3" json:"title,omitempty" uri:"title" form:"title"`
	// @inject_tag: uri:"parentID" form:"parentID"
	ParentID string `protobuf:"bytes,8,opt,name=parentID,proto3" json:"parentID,omitempty" uri:"parentID" form:"parentID"`
	// @inject_tag: uri:"level" form:"level"
	Level int32 `protobuf:"varint,9,opt,name=level,proto3" json:"level,omitempty" uri:"level" form:"level"`
	// contains filtered or unexported fields
}

func (*QueryMenuRequest) Descriptor deprecated

func (*QueryMenuRequest) Descriptor() ([]byte, []int)

Deprecated: Use QueryMenuRequest.ProtoReflect.Descriptor instead.

func (*QueryMenuRequest) GetDesc

func (x *QueryMenuRequest) GetDesc() bool

func (*QueryMenuRequest) GetLevel

func (x *QueryMenuRequest) GetLevel() int32

func (*QueryMenuRequest) GetName

func (x *QueryMenuRequest) GetName() string

func (*QueryMenuRequest) GetOrderField

func (x *QueryMenuRequest) GetOrderField() string

func (*QueryMenuRequest) GetPageIndex

func (x *QueryMenuRequest) GetPageIndex() int64

func (*QueryMenuRequest) GetPageSize

func (x *QueryMenuRequest) GetPageSize() int64

func (*QueryMenuRequest) GetParentID

func (x *QueryMenuRequest) GetParentID() string

func (*QueryMenuRequest) GetPath

func (x *QueryMenuRequest) GetPath() string

func (*QueryMenuRequest) GetTitle

func (x *QueryMenuRequest) GetTitle() string

func (*QueryMenuRequest) ProtoMessage

func (*QueryMenuRequest) ProtoMessage()

func (*QueryMenuRequest) ProtoReflect

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

func (*QueryMenuRequest) Reset

func (x *QueryMenuRequest) Reset()

func (*QueryMenuRequest) String

func (x *QueryMenuRequest) String() string

type QueryMenuResponse

type QueryMenuResponse struct {
	Code    Code        `protobuf:"varint,1,opt,name=code,proto3,enum=usercenter.Code" json:"code,omitempty"`
	Message string      `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	Data    []*MenuInfo `protobuf:"bytes,3,rep,name=data,proto3" json:"data,omitempty"`
	Pages   int64       `protobuf:"varint,4,opt,name=pages,proto3" json:"pages,omitempty"`
	Records int64       `protobuf:"varint,5,opt,name=records,proto3" json:"records,omitempty"`
	Total   int64       `protobuf:"varint,6,opt,name=total,proto3" json:"total,omitempty"`
	// contains filtered or unexported fields
}

func (*QueryMenuResponse) Descriptor deprecated

func (*QueryMenuResponse) Descriptor() ([]byte, []int)

Deprecated: Use QueryMenuResponse.ProtoReflect.Descriptor instead.

func (*QueryMenuResponse) GetCode

func (x *QueryMenuResponse) GetCode() Code

func (*QueryMenuResponse) GetData

func (x *QueryMenuResponse) GetData() []*MenuInfo

func (*QueryMenuResponse) GetMessage

func (x *QueryMenuResponse) GetMessage() string

func (*QueryMenuResponse) GetPages

func (x *QueryMenuResponse) GetPages() int64

func (*QueryMenuResponse) GetRecords

func (x *QueryMenuResponse) GetRecords() int64

func (*QueryMenuResponse) GetTotal

func (x *QueryMenuResponse) GetTotal() int64

func (*QueryMenuResponse) ProtoMessage

func (*QueryMenuResponse) ProtoMessage()

func (*QueryMenuResponse) ProtoReflect

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

func (*QueryMenuResponse) Reset

func (x *QueryMenuResponse) Reset()

func (*QueryMenuResponse) String

func (x *QueryMenuResponse) String() string

type QueryRoleRequest

type QueryRoleRequest struct {

	// @inject_tag: uri:"pageIndex" form:"pageIndex"
	PageIndex int64 `protobuf:"varint,1,opt,name=pageIndex,proto3" json:"pageIndex,omitempty" uri:"pageIndex" form:"pageIndex"`
	// @inject_tag: uri:"pageSize" form:"pageSize"
	PageSize int64 `protobuf:"varint,2,opt,name=pageSize,proto3" json:"pageSize,omitempty" uri:"pageSize" form:"pageSize"`
	// @inject_tag: uri:"orderField" form:"orderField"
	OrderField string `protobuf:"bytes,3,opt,name=orderField,proto3" json:"orderField,omitempty" uri:"orderField" form:"orderField"`
	// @inject_tag: uri:"desc" form:"desc"
	Desc bool `protobuf:"varint,4,opt,name=desc,proto3" json:"desc,omitempty" uri:"desc" form:"desc"`
	// @inject_tag: uri:"name" form:"name"
	Name string `protobuf:"bytes,5,opt,name=name,proto3" json:"name,omitempty" uri:"name" form:"name"`
	//租户ID
	// @inject_tag: uri:"tenantID" form:"tenantID"
	TenantID string `protobuf:"bytes,6,opt,name=tenantID,proto3" json:"tenantID,omitempty" uri:"tenantID" form:"tenantID"`
	// contains filtered or unexported fields
}

func (*QueryRoleRequest) Descriptor deprecated

func (*QueryRoleRequest) Descriptor() ([]byte, []int)

Deprecated: Use QueryRoleRequest.ProtoReflect.Descriptor instead.

func (*QueryRoleRequest) GetDesc

func (x *QueryRoleRequest) GetDesc() bool

func (*QueryRoleRequest) GetName

func (x *QueryRoleRequest) GetName() string

func (*QueryRoleRequest) GetOrderField

func (x *QueryRoleRequest) GetOrderField() string

func (*QueryRoleRequest) GetPageIndex

func (x *QueryRoleRequest) GetPageIndex() int64

func (*QueryRoleRequest) GetPageSize

func (x *QueryRoleRequest) GetPageSize() int64

func (*QueryRoleRequest) GetTenantID added in v1.0.2

func (x *QueryRoleRequest) GetTenantID() string

func (*QueryRoleRequest) ProtoMessage

func (*QueryRoleRequest) ProtoMessage()

func (*QueryRoleRequest) ProtoReflect

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

func (*QueryRoleRequest) Reset

func (x *QueryRoleRequest) Reset()

func (*QueryRoleRequest) String

func (x *QueryRoleRequest) String() string

type QueryRoleResponse

type QueryRoleResponse struct {
	Code    Code        `protobuf:"varint,1,opt,name=code,proto3,enum=usercenter.Code" json:"code,omitempty"`
	Message string      `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	Data    []*RoleInfo `protobuf:"bytes,3,rep,name=data,proto3" json:"data,omitempty"`
	Pages   int64       `protobuf:"varint,4,opt,name=pages,proto3" json:"pages,omitempty"`
	Records int64       `protobuf:"varint,5,opt,name=records,proto3" json:"records,omitempty"`
	Total   int64       `protobuf:"varint,6,opt,name=total,proto3" json:"total,omitempty"`
	// contains filtered or unexported fields
}

func (*QueryRoleResponse) Descriptor deprecated

func (*QueryRoleResponse) Descriptor() ([]byte, []int)

Deprecated: Use QueryRoleResponse.ProtoReflect.Descriptor instead.

func (*QueryRoleResponse) GetCode

func (x *QueryRoleResponse) GetCode() Code

func (*QueryRoleResponse) GetData

func (x *QueryRoleResponse) GetData() []*RoleInfo

func (*QueryRoleResponse) GetMessage

func (x *QueryRoleResponse) GetMessage() string

func (*QueryRoleResponse) GetPages

func (x *QueryRoleResponse) GetPages() int64

func (*QueryRoleResponse) GetRecords

func (x *QueryRoleResponse) GetRecords() int64

func (*QueryRoleResponse) GetTotal

func (x *QueryRoleResponse) GetTotal() int64

func (*QueryRoleResponse) ProtoMessage

func (*QueryRoleResponse) ProtoMessage()

func (*QueryRoleResponse) ProtoReflect

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

func (*QueryRoleResponse) Reset

func (x *QueryRoleResponse) Reset()

func (*QueryRoleResponse) String

func (x *QueryRoleResponse) String() string

type QueryTenantRequest

type QueryTenantRequest struct {

	// @inject_tag: uri:"pageIndex" form:"pageIndex"
	PageIndex int64 `protobuf:"varint,1,opt,name=pageIndex,proto3" json:"pageIndex,omitempty" uri:"pageIndex" form:"pageIndex"`
	// @inject_tag: uri:"pageSize" form:"pageSize"
	PageSize int64 `protobuf:"varint,2,opt,name=pageSize,proto3" json:"pageSize,omitempty" uri:"pageSize" form:"pageSize"`
	// @inject_tag: uri:"orderField" form:"orderField"
	OrderField string `protobuf:"bytes,3,opt,name=orderField,proto3" json:"orderField,omitempty" uri:"orderField" form:"orderField"`
	// @inject_tag: uri:"desc" form:"desc"
	Desc bool `protobuf:"varint,4,opt,name=desc,proto3" json:"desc,omitempty" uri:"desc" form:"desc"`
	// @inject_tag: uri:"name" form:"name"
	Name string `protobuf:"bytes,5,opt,name=name,proto3" json:"name,omitempty" uri:"name" form:"name"`
	// contains filtered or unexported fields
}

func (*QueryTenantRequest) Descriptor deprecated

func (*QueryTenantRequest) Descriptor() ([]byte, []int)

Deprecated: Use QueryTenantRequest.ProtoReflect.Descriptor instead.

func (*QueryTenantRequest) GetDesc

func (x *QueryTenantRequest) GetDesc() bool

func (*QueryTenantRequest) GetName

func (x *QueryTenantRequest) GetName() string

func (*QueryTenantRequest) GetOrderField

func (x *QueryTenantRequest) GetOrderField() string

func (*QueryTenantRequest) GetPageIndex

func (x *QueryTenantRequest) GetPageIndex() int64

func (*QueryTenantRequest) GetPageSize

func (x *QueryTenantRequest) GetPageSize() int64

func (*QueryTenantRequest) ProtoMessage

func (*QueryTenantRequest) ProtoMessage()

func (*QueryTenantRequest) ProtoReflect

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

func (*QueryTenantRequest) Reset

func (x *QueryTenantRequest) Reset()

func (*QueryTenantRequest) String

func (x *QueryTenantRequest) String() string

type QueryTenantResponse

type QueryTenantResponse struct {
	Code    Code          `protobuf:"varint,1,opt,name=code,proto3,enum=usercenter.Code" json:"code,omitempty"`
	Message string        `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	Data    []*TenantInfo `protobuf:"bytes,3,rep,name=data,proto3" json:"data,omitempty"`
	Pages   int64         `protobuf:"varint,4,opt,name=pages,proto3" json:"pages,omitempty"`
	Records int64         `protobuf:"varint,5,opt,name=records,proto3" json:"records,omitempty"`
	Total   int64         `protobuf:"varint,6,opt,name=total,proto3" json:"total,omitempty"`
	// contains filtered or unexported fields
}

func (*QueryTenantResponse) Descriptor deprecated

func (*QueryTenantResponse) Descriptor() ([]byte, []int)

Deprecated: Use QueryTenantResponse.ProtoReflect.Descriptor instead.

func (*QueryTenantResponse) GetCode

func (x *QueryTenantResponse) GetCode() Code

func (*QueryTenantResponse) GetData

func (x *QueryTenantResponse) GetData() []*TenantInfo

func (*QueryTenantResponse) GetMessage

func (x *QueryTenantResponse) GetMessage() string

func (*QueryTenantResponse) GetPages

func (x *QueryTenantResponse) GetPages() int64

func (*QueryTenantResponse) GetRecords

func (x *QueryTenantResponse) GetRecords() int64

func (*QueryTenantResponse) GetTotal

func (x *QueryTenantResponse) GetTotal() int64

func (*QueryTenantResponse) ProtoMessage

func (*QueryTenantResponse) ProtoMessage()

func (*QueryTenantResponse) ProtoReflect

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

func (*QueryTenantResponse) Reset

func (x *QueryTenantResponse) Reset()

func (*QueryTenantResponse) String

func (x *QueryTenantResponse) String() string

type QueryUserRequest

type QueryUserRequest struct {

	// @inject_tag: uri:"pageIndex" form:"pageIndex"
	PageIndex int64 `protobuf:"varint,1,opt,name=pageIndex,proto3" json:"pageIndex,omitempty" uri:"pageIndex" form:"pageIndex"`
	// @inject_tag: uri:"pageSize" form:"pageSize"
	PageSize int64 `protobuf:"varint,2,opt,name=pageSize,proto3" json:"pageSize,omitempty" uri:"pageSize" form:"pageSize"`
	// @inject_tag: uri:"orderField" form:"orderField"
	OrderField string `protobuf:"bytes,3,opt,name=orderField,proto3" json:"orderField,omitempty" uri:"orderField" form:"orderField"`
	// @inject_tag: uri:"desc" form:"desc"
	Desc bool `protobuf:"varint,4,opt,name=desc,proto3" json:"desc,omitempty" uri:"desc" form:"desc"`
	// @inject_tag: uri:"userName" form:"userName"
	UserName string `protobuf:"bytes,5,opt,name=userName,proto3" json:"userName,omitempty" uri:"userName" form:"userName"`
	// @inject_tag: uri:"nickname" form:"nickname"
	Nickname string `protobuf:"bytes,6,opt,name=nickname,proto3" json:"nickname,omitempty" uri:"nickname" form:"nickname"`
	// @inject_tag: uri:"idCard" form:"idCard"
	IdCard string `protobuf:"bytes,7,opt,name=idCard,proto3" json:"idCard,omitempty" uri:"idCard" form:"idCard"`
	// @inject_tag: uri:"mobile" form:"mobile"
	Mobile string `protobuf:"bytes,8,opt,name=mobile,proto3" json:"mobile,omitempty" uri:"mobile" form:"mobile"`
	// @inject_tag: uri:"title" form:"title"
	Title string `protobuf:"bytes,9,opt,name=title,proto3" json:"title,omitempty" uri:"title" form:"title"`
	// @inject_tag: uri:"userNames" form:"userNames"
	UserNames string `protobuf:"bytes,10,opt,name=userNames,proto3" json:"userNames,omitempty" uri:"userNames" form:"userNames"`
	// @inject_tag: uri:"wechatID" form:"wechatID"
	WechatID string `protobuf:"bytes,11,opt,name=wechatID,proto3" json:"wechatID,omitempty" uri:"wechatID" form:"wechatID"`
	// @inject_tag: uri:"tenantID" form:"tenantID"
	TenantID string `protobuf:"bytes,12,opt,name=tenantID,proto3" json:"tenantID,omitempty" uri:"tenantID" form:"tenantID"`
	//用户类型
	// @inject_tag: uri:"type" form:"type"
	Type int32 `protobuf:"varint,13,opt,name=type,proto3" json:"type,omitempty" uri:"type" form:"type"`
	// @inject_tag: uri:"group" form:"group"
	Group string `protobuf:"bytes,14,opt,name=group,proto3" json:"group,omitempty" uri:"group" form:"group"`
	// contains filtered or unexported fields
}

QueryUserRequest QueryUserRequest

func (*QueryUserRequest) Descriptor deprecated

func (*QueryUserRequest) Descriptor() ([]byte, []int)

Deprecated: Use QueryUserRequest.ProtoReflect.Descriptor instead.

func (*QueryUserRequest) GetDesc

func (x *QueryUserRequest) GetDesc() bool

func (*QueryUserRequest) GetGroup added in v1.0.13

func (x *QueryUserRequest) GetGroup() string

func (*QueryUserRequest) GetIdCard

func (x *QueryUserRequest) GetIdCard() string

func (*QueryUserRequest) GetMobile

func (x *QueryUserRequest) GetMobile() string

func (*QueryUserRequest) GetNickname

func (x *QueryUserRequest) GetNickname() string

func (*QueryUserRequest) GetOrderField

func (x *QueryUserRequest) GetOrderField() string

func (*QueryUserRequest) GetPageIndex

func (x *QueryUserRequest) GetPageIndex() int64

func (*QueryUserRequest) GetPageSize

func (x *QueryUserRequest) GetPageSize() int64

func (*QueryUserRequest) GetTenantID added in v1.0.2

func (x *QueryUserRequest) GetTenantID() string

func (*QueryUserRequest) GetTitle

func (x *QueryUserRequest) GetTitle() string

func (*QueryUserRequest) GetType added in v1.0.13

func (x *QueryUserRequest) GetType() int32

func (*QueryUserRequest) GetUserName

func (x *QueryUserRequest) GetUserName() string

func (*QueryUserRequest) GetUserNames

func (x *QueryUserRequest) GetUserNames() string

func (*QueryUserRequest) GetWechatID

func (x *QueryUserRequest) GetWechatID() string

func (*QueryUserRequest) ProtoMessage

func (*QueryUserRequest) ProtoMessage()

func (*QueryUserRequest) ProtoReflect

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

func (*QueryUserRequest) Reset

func (x *QueryUserRequest) Reset()

func (*QueryUserRequest) String

func (x *QueryUserRequest) String() string

type QueryUserResponse

type QueryUserResponse struct {
	Code    Code        `protobuf:"varint,1,opt,name=code,proto3,enum=usercenter.Code" json:"code,omitempty"`
	Message string      `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	Data    []*UserInfo `protobuf:"bytes,3,rep,name=data,proto3" json:"data,omitempty"`
	Pages   int64       `protobuf:"varint,4,opt,name=pages,proto3" json:"pages,omitempty"`
	Records int64       `protobuf:"varint,5,opt,name=records,proto3" json:"records,omitempty"`
	Total   int64       `protobuf:"varint,6,opt,name=total,proto3" json:"total,omitempty"`
	// contains filtered or unexported fields
}

func (*QueryUserResponse) Descriptor deprecated

func (*QueryUserResponse) Descriptor() ([]byte, []int)

Deprecated: Use QueryUserResponse.ProtoReflect.Descriptor instead.

func (*QueryUserResponse) GetCode

func (x *QueryUserResponse) GetCode() Code

func (*QueryUserResponse) GetData

func (x *QueryUserResponse) GetData() []*UserInfo

func (*QueryUserResponse) GetMessage

func (x *QueryUserResponse) GetMessage() string

func (*QueryUserResponse) GetPages

func (x *QueryUserResponse) GetPages() int64

func (*QueryUserResponse) GetRecords

func (x *QueryUserResponse) GetRecords() int64

func (*QueryUserResponse) GetTotal

func (x *QueryUserResponse) GetTotal() int64

func (*QueryUserResponse) ProtoMessage

func (*QueryUserResponse) ProtoMessage()

func (*QueryUserResponse) ProtoReflect

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

func (*QueryUserResponse) Reset

func (x *QueryUserResponse) Reset()

func (*QueryUserResponse) String

func (x *QueryUserResponse) String() string

type RoleClient

RoleClient is the client API for Role service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

func NewRoleClient

func NewRoleClient(cc *triple.TripleConn) RoleClient

type RoleClientImpl

type RoleClientImpl struct {
	Add       func(ctx context.Context, in *RoleInfo) (*CommonResponse, error)
	Update    func(ctx context.Context, in *RoleInfo) (*CommonResponse, error)
	Delete    func(ctx context.Context, in *DelRequest) (*CommonResponse, error)
	Query     func(ctx context.Context, in *QueryRoleRequest) (*QueryRoleResponse, error)
	GetAll    func(ctx context.Context, in *GetAllRequest) (*GetAllRoleResponse, error)
	GetDetail func(ctx context.Context, in *GetDetailRequest) (*GetRoleDetailResponse, error)
}

func (*RoleClientImpl) GetDubboStub

func (c *RoleClientImpl) GetDubboStub(cc *triple.TripleConn) RoleClient

type RoleInfo

type RoleInfo struct {
	Id            string      `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	TenantID      string      `protobuf:"bytes,2,opt,name=tenantID,proto3" json:"tenantID,omitempty"`
	Name          string      `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	ParentID      string      `protobuf:"bytes,4,opt,name=parentID,proto3" json:"parentID,omitempty"`
	Children      []*RoleInfo `protobuf:"bytes,5,rep,name=children,proto3" json:"children,omitempty"`
	RoleMenus     []*RoleMenu `protobuf:"bytes,6,rep,name=roleMenus,proto3" json:"roleMenus,omitempty"`
	DefaultRouter string      `protobuf:"bytes,7,opt,name=defaultRouter,proto3" json:"defaultRouter,omitempty"`
	Description   string      `protobuf:"bytes,8,opt,name=description,proto3" json:"description,omitempty"`
	CanDel        bool        `protobuf:"varint,9,opt,name=canDel,proto3" json:"canDel,omitempty"`
	TenantName    string      `protobuf:"bytes,10,opt,name=tenantName,proto3" json:"tenantName,omitempty"`
	// contains filtered or unexported fields
}

func (*RoleInfo) Descriptor deprecated

func (*RoleInfo) Descriptor() ([]byte, []int)

Deprecated: Use RoleInfo.ProtoReflect.Descriptor instead.

func (*RoleInfo) GetCanDel

func (x *RoleInfo) GetCanDel() bool

func (*RoleInfo) GetChildren

func (x *RoleInfo) GetChildren() []*RoleInfo

func (*RoleInfo) GetDefaultRouter

func (x *RoleInfo) GetDefaultRouter() string

func (*RoleInfo) GetDescription

func (x *RoleInfo) GetDescription() string

func (*RoleInfo) GetId

func (x *RoleInfo) GetId() string

func (*RoleInfo) GetName

func (x *RoleInfo) GetName() string

func (*RoleInfo) GetParentID

func (x *RoleInfo) GetParentID() string

func (*RoleInfo) GetRoleMenus

func (x *RoleInfo) GetRoleMenus() []*RoleMenu

func (*RoleInfo) GetTenantID

func (x *RoleInfo) GetTenantID() string

func (*RoleInfo) GetTenantName added in v1.0.13

func (x *RoleInfo) GetTenantName() string

func (*RoleInfo) ProtoMessage

func (*RoleInfo) ProtoMessage()

func (*RoleInfo) ProtoReflect

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

func (*RoleInfo) Reset

func (x *RoleInfo) Reset()

func (*RoleInfo) String

func (x *RoleInfo) String() string

type RoleMenu

type RoleMenu struct {
	Id     string    `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	RoleID string    `protobuf:"bytes,2,opt,name=roleID,proto3" json:"roleID,omitempty"`
	MenuID string    `protobuf:"bytes,3,opt,name=menuID,proto3" json:"menuID,omitempty"`
	Funcs  string    `protobuf:"bytes,4,opt,name=funcs,proto3" json:"funcs,omitempty"`
	Menu   *MenuInfo `protobuf:"bytes,5,opt,name=menu,proto3" json:"menu,omitempty"`
	// contains filtered or unexported fields
}

func (*RoleMenu) Descriptor deprecated

func (*RoleMenu) Descriptor() ([]byte, []int)

Deprecated: Use RoleMenu.ProtoReflect.Descriptor instead.

func (*RoleMenu) GetFuncs

func (x *RoleMenu) GetFuncs() string

func (*RoleMenu) GetId

func (x *RoleMenu) GetId() string

func (*RoleMenu) GetMenu

func (x *RoleMenu) GetMenu() *MenuInfo

func (*RoleMenu) GetMenuID

func (x *RoleMenu) GetMenuID() string

func (*RoleMenu) GetRoleID

func (x *RoleMenu) GetRoleID() string

func (*RoleMenu) ProtoMessage

func (*RoleMenu) ProtoMessage()

func (*RoleMenu) ProtoReflect

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

func (*RoleMenu) Reset

func (x *RoleMenu) Reset()

func (*RoleMenu) String

func (x *RoleMenu) String() string

type RoleServer

RoleServer is the server API for Role service. All implementations must embed UnimplementedRoleServer for forward compatibility

type TenantClient

TenantClient is the client API for Tenant service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

func NewTenantClient

func NewTenantClient(cc *triple.TripleConn) TenantClient

type TenantClientImpl

type TenantClientImpl struct {
	Add       func(ctx context.Context, in *TenantInfo) (*CommonResponse, error)
	Update    func(ctx context.Context, in *TenantInfo) (*CommonResponse, error)
	Delete    func(ctx context.Context, in *DelRequest) (*CommonResponse, error)
	Query     func(ctx context.Context, in *QueryTenantRequest) (*QueryTenantResponse, error)
	Enable    func(ctx context.Context, in *EnableRequest) (*CommonResponse, error)
	GetAll    func(ctx context.Context, in *GetAllRequest) (*GetAllTenantResponse, error)
	GetDetail func(ctx context.Context, in *GetDetailRequest) (*GetTenantDetailResponse, error)
}

func (*TenantClientImpl) GetDubboStub

func (c *TenantClientImpl) GetDubboStub(cc *triple.TripleConn) TenantClient

type TenantInfo

type TenantInfo 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"`
	Contact       string `protobuf:"bytes,3,opt,name=contact,proto3" json:"contact,omitempty"`
	CellPhone     string `protobuf:"bytes,4,opt,name=cellPhone,proto3" json:"cellPhone,omitempty"`
	Address       string `protobuf:"bytes,5,opt,name=address,proto3" json:"address,omitempty"`
	BusinessScope string `protobuf:"bytes,6,opt,name=businessScope,proto3" json:"businessScope,omitempty"`
	AreaCovered   string `protobuf:"bytes,7,opt,name=areaCovered,proto3" json:"areaCovered,omitempty"`
	StaffSize     int32  `protobuf:"varint,8,opt,name=staffSize,proto3" json:"staffSize,omitempty"`
	Enable        bool   `protobuf:"varint,9,opt,name=enable,proto3" json:"enable,omitempty"`
	// contains filtered or unexported fields
}

func (*TenantInfo) Descriptor deprecated

func (*TenantInfo) Descriptor() ([]byte, []int)

Deprecated: Use TenantInfo.ProtoReflect.Descriptor instead.

func (*TenantInfo) GetAddress

func (x *TenantInfo) GetAddress() string

func (*TenantInfo) GetAreaCovered

func (x *TenantInfo) GetAreaCovered() string

func (*TenantInfo) GetBusinessScope

func (x *TenantInfo) GetBusinessScope() string

func (*TenantInfo) GetCellPhone

func (x *TenantInfo) GetCellPhone() string

func (*TenantInfo) GetContact

func (x *TenantInfo) GetContact() string

func (*TenantInfo) GetEnable

func (x *TenantInfo) GetEnable() bool

func (*TenantInfo) GetId

func (x *TenantInfo) GetId() string

func (*TenantInfo) GetName

func (x *TenantInfo) GetName() string

func (*TenantInfo) GetStaffSize

func (x *TenantInfo) GetStaffSize() int32

func (*TenantInfo) ProtoMessage

func (*TenantInfo) ProtoMessage()

func (*TenantInfo) ProtoReflect

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

func (*TenantInfo) Reset

func (x *TenantInfo) Reset()

func (*TenantInfo) String

func (x *TenantInfo) String() string

type TenantServer

TenantServer is the server API for Tenant service. All implementations must embed UnimplementedTenantServer for forward compatibility

type UnimplementedAPIServer

type UnimplementedAPIServer struct {
	// contains filtered or unexported fields
}

UnimplementedAPIServer must be embedded to have forward compatible implementations.

func (UnimplementedAPIServer) Add

func (UnimplementedAPIServer) Delete

func (UnimplementedAPIServer) Enable

func (UnimplementedAPIServer) GetAll

func (UnimplementedAPIServer) GetDetail

func (UnimplementedAPIServer) Query

func (UnimplementedAPIServer) Update

func (*UnimplementedAPIServer) XXX_GetProxyImpl

func (s *UnimplementedAPIServer) XXX_GetProxyImpl() protocol.Invoker

func (*UnimplementedAPIServer) XXX_ServiceDesc

func (s *UnimplementedAPIServer) XXX_ServiceDesc() *grpc.ServiceDesc

func (*UnimplementedAPIServer) XXX_SetProxyImpl

func (s *UnimplementedAPIServer) XXX_SetProxyImpl(impl protocol.Invoker)

type UnimplementedIdentityServer

type UnimplementedIdentityServer struct {
	// contains filtered or unexported fields
}

UnimplementedIdentityServer must be embedded to have forward compatible implementations.

func (UnimplementedIdentityServer) Authenticate

func (*UnimplementedIdentityServer) XXX_GetProxyImpl

func (s *UnimplementedIdentityServer) XXX_GetProxyImpl() protocol.Invoker

func (*UnimplementedIdentityServer) XXX_ServiceDesc

func (s *UnimplementedIdentityServer) XXX_ServiceDesc() *grpc.ServiceDesc

func (*UnimplementedIdentityServer) XXX_SetProxyImpl

func (s *UnimplementedIdentityServer) XXX_SetProxyImpl(impl protocol.Invoker)

type UnimplementedMenuServer

type UnimplementedMenuServer struct {
	// contains filtered or unexported fields
}

UnimplementedMenuServer must be embedded to have forward compatible implementations.

func (UnimplementedMenuServer) Add

func (UnimplementedMenuServer) Delete

func (UnimplementedMenuServer) GetAll

func (UnimplementedMenuServer) GetDetail

func (UnimplementedMenuServer) Query

func (UnimplementedMenuServer) Update

func (*UnimplementedMenuServer) XXX_GetProxyImpl

func (s *UnimplementedMenuServer) XXX_GetProxyImpl() protocol.Invoker

func (*UnimplementedMenuServer) XXX_ServiceDesc

func (s *UnimplementedMenuServer) XXX_ServiceDesc() *grpc.ServiceDesc

func (*UnimplementedMenuServer) XXX_SetProxyImpl

func (s *UnimplementedMenuServer) XXX_SetProxyImpl(impl protocol.Invoker)

type UnimplementedRoleServer

type UnimplementedRoleServer struct {
	// contains filtered or unexported fields
}

UnimplementedRoleServer must be embedded to have forward compatible implementations.

func (UnimplementedRoleServer) Add

func (UnimplementedRoleServer) Delete

func (UnimplementedRoleServer) GetAll

func (UnimplementedRoleServer) GetDetail

func (UnimplementedRoleServer) Query

func (UnimplementedRoleServer) Update

func (*UnimplementedRoleServer) XXX_GetProxyImpl

func (s *UnimplementedRoleServer) XXX_GetProxyImpl() protocol.Invoker

func (*UnimplementedRoleServer) XXX_ServiceDesc

func (s *UnimplementedRoleServer) XXX_ServiceDesc() *grpc.ServiceDesc

func (*UnimplementedRoleServer) XXX_SetProxyImpl

func (s *UnimplementedRoleServer) XXX_SetProxyImpl(impl protocol.Invoker)

type UnimplementedTenantServer

type UnimplementedTenantServer struct {
	// contains filtered or unexported fields
}

UnimplementedTenantServer must be embedded to have forward compatible implementations.

func (UnimplementedTenantServer) Add

func (UnimplementedTenantServer) Delete

func (UnimplementedTenantServer) Enable

func (UnimplementedTenantServer) GetAll

func (UnimplementedTenantServer) GetDetail

func (UnimplementedTenantServer) Query

func (UnimplementedTenantServer) Update

func (*UnimplementedTenantServer) XXX_GetProxyImpl

func (s *UnimplementedTenantServer) XXX_GetProxyImpl() protocol.Invoker

func (*UnimplementedTenantServer) XXX_ServiceDesc

func (s *UnimplementedTenantServer) XXX_ServiceDesc() *grpc.ServiceDesc

func (*UnimplementedTenantServer) XXX_SetProxyImpl

func (s *UnimplementedTenantServer) XXX_SetProxyImpl(impl protocol.Invoker)

type UnimplementedUserServer

type UnimplementedUserServer struct {
	// contains filtered or unexported fields
}

UnimplementedUserServer must be embedded to have forward compatible implementations.

func (UnimplementedUserServer) Add

func (UnimplementedUserServer) ChangePwd

func (UnimplementedUserServer) Delete

func (UnimplementedUserServer) Enable

func (UnimplementedUserServer) GetAll

func (UnimplementedUserServer) GetDetail

func (UnimplementedUserServer) GetProfile

func (UnimplementedUserServer) Login

func (UnimplementedUserServer) Logout

func (UnimplementedUserServer) Query

func (UnimplementedUserServer) ResetPwd

func (UnimplementedUserServer) Update

func (*UnimplementedUserServer) XXX_GetProxyImpl

func (s *UnimplementedUserServer) XXX_GetProxyImpl() protocol.Invoker

func (*UnimplementedUserServer) XXX_ServiceDesc

func (s *UnimplementedUserServer) XXX_ServiceDesc() *grpc.ServiceDesc

func (*UnimplementedUserServer) XXX_SetProxyImpl

func (s *UnimplementedUserServer) XXX_SetProxyImpl(impl protocol.Invoker)

type UnsafeAPIServer

type UnsafeAPIServer interface {
	// contains filtered or unexported methods
}

UnsafeAPIServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to APIServer will result in compilation errors.

type UnsafeIdentityServer

type UnsafeIdentityServer interface {
	// contains filtered or unexported methods
}

UnsafeIdentityServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to IdentityServer will result in compilation errors.

type UnsafeMenuServer

type UnsafeMenuServer interface {
	// contains filtered or unexported methods
}

UnsafeMenuServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to MenuServer will result in compilation errors.

type UnsafeRoleServer

type UnsafeRoleServer interface {
	// contains filtered or unexported methods
}

UnsafeRoleServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to RoleServer will result in compilation errors.

type UnsafeTenantServer

type UnsafeTenantServer interface {
	// contains filtered or unexported methods
}

UnsafeTenantServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to TenantServer will result in compilation errors.

type UnsafeUserServer

type UnsafeUserServer interface {
	// contains filtered or unexported methods
}

UnsafeUserServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to UserServer will result in compilation errors.

type UserClient

UserClient is the client API for User service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

func NewUserClient

func NewUserClient(cc *triple.TripleConn) UserClient

type UserClientImpl

type UserClientImpl struct {
	Login      func(ctx context.Context, in *LoginRequest) (*LoginResponse, error)
	Add        func(ctx context.Context, in *UserInfo) (*CommonResponse, error)
	Update     func(ctx context.Context, in *UserInfo) (*CommonResponse, error)
	Delete     func(ctx context.Context, in *DelRequest) (*CommonResponse, error)
	Query      func(ctx context.Context, in *QueryUserRequest) (*QueryUserResponse, error)
	GetProfile func(ctx context.Context, in *GetDetailRequest) (*GetProfileResponse, error)
	Enable     func(ctx context.Context, in *EnableRequest) (*CommonResponse, error)
	GetAll     func(ctx context.Context, in *GetAllUsersRequest) (*GetAllUsersResponse, error)
	GetDetail  func(ctx context.Context, in *GetDetailRequest) (*GetUserDetailResponse, error)
	ResetPwd   func(ctx context.Context, in *GetDetailRequest) (*CommonResponse, error)
	ChangePwd  func(ctx context.Context, in *ChangePwdRequest) (*CommonResponse, error)
	Logout     func(ctx context.Context, in *LogoutRequest) (*CommonResponse, error)
}

func (*UserClientImpl) GetDubboStub

func (c *UserClientImpl) GetDubboStub(cc *triple.TripleConn) UserClient

type UserInfo

type UserInfo struct {
	Id          string      `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	TenantID    string      `protobuf:"bytes,2,opt,name=tenantID,proto3" json:"tenantID,omitempty"`
	UserName    string      `protobuf:"bytes,3,opt,name=userName,proto3" json:"userName,omitempty"`
	Nickname    string      `protobuf:"bytes,4,opt,name=nickname,proto3" json:"nickname,omitempty"`
	UserRoles   []*UserRole `protobuf:"bytes,5,rep,name=userRoles,proto3" json:"userRoles,omitempty"`
	RoleIDs     []string    `protobuf:"bytes,6,rep,name=roleIDs,proto3" json:"roleIDs,omitempty"`
	Enable      bool        `protobuf:"varint,7,opt,name=enable,proto3" json:"enable,omitempty"`
	Email       string      `protobuf:"bytes,8,opt,name=email,proto3" json:"email,omitempty"`
	Mobile      string      `protobuf:"bytes,9,opt,name=mobile,proto3" json:"mobile,omitempty"`
	IdCard      string      `protobuf:"bytes,10,opt,name=idCard,proto3" json:"idCard,omitempty"`
	Avatar      string      `protobuf:"bytes,11,opt,name=avatar,proto3" json:"avatar,omitempty"`
	Eid         string      `protobuf:"bytes,12,opt,name=eid,proto3" json:"eid,omitempty"`
	Title       string      `protobuf:"bytes,13,opt,name=title,proto3" json:"title,omitempty"`
	Description string      `protobuf:"bytes,14,opt,name=description,proto3" json:"description,omitempty"`
	RealName    string      `protobuf:"bytes,15,opt,name=realName,proto3" json:"realName,omitempty"`
	Gender      bool        `protobuf:"varint,16,opt,name=gender,proto3" json:"gender,omitempty"`
	Password    string      `protobuf:"bytes,17,opt,name=password,proto3" json:"password,omitempty"`
	Type        int32       `protobuf:"varint,18,opt,name=type,proto3" json:"type,omitempty"`
	TenantName  string      `protobuf:"bytes,19,opt,name=tenantName,proto3" json:"tenantName,omitempty"`
	//分组,例如属于某个组织的,或者某个个人
	Group string `protobuf:"bytes,20,opt,name=group,proto3" json:"group,omitempty"`
	// contains filtered or unexported fields
}

func (*UserInfo) Descriptor deprecated

func (*UserInfo) Descriptor() ([]byte, []int)

Deprecated: Use UserInfo.ProtoReflect.Descriptor instead.

func (*UserInfo) GetAvatar

func (x *UserInfo) GetAvatar() string

func (*UserInfo) GetDescription

func (x *UserInfo) GetDescription() string

func (*UserInfo) GetEid

func (x *UserInfo) GetEid() string

func (*UserInfo) GetEmail

func (x *UserInfo) GetEmail() string

func (*UserInfo) GetEnable

func (x *UserInfo) GetEnable() bool

func (*UserInfo) GetGender

func (x *UserInfo) GetGender() bool

func (*UserInfo) GetGroup added in v1.0.13

func (x *UserInfo) GetGroup() string

func (*UserInfo) GetId

func (x *UserInfo) GetId() string

func (*UserInfo) GetIdCard

func (x *UserInfo) GetIdCard() string

func (*UserInfo) GetMobile

func (x *UserInfo) GetMobile() string

func (*UserInfo) GetNickname

func (x *UserInfo) GetNickname() string

func (*UserInfo) GetPassword added in v1.0.3

func (x *UserInfo) GetPassword() string

func (*UserInfo) GetRealName

func (x *UserInfo) GetRealName() string

func (*UserInfo) GetRoleIDs

func (x *UserInfo) GetRoleIDs() []string

func (*UserInfo) GetTenantID

func (x *UserInfo) GetTenantID() string

func (*UserInfo) GetTenantName added in v1.0.13

func (x *UserInfo) GetTenantName() string

func (*UserInfo) GetTitle

func (x *UserInfo) GetTitle() string

func (*UserInfo) GetType added in v1.0.8

func (x *UserInfo) GetType() int32

func (*UserInfo) GetUserName

func (x *UserInfo) GetUserName() string

func (*UserInfo) GetUserRoles

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

func (*UserInfo) ProtoMessage

func (*UserInfo) ProtoMessage()

func (*UserInfo) ProtoReflect

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

func (*UserInfo) Reset

func (x *UserInfo) Reset()

func (*UserInfo) String

func (x *UserInfo) String() string

type UserRole

type UserRole struct {
	Id     string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	UserID string `protobuf:"bytes,2,opt,name=userID,proto3" json:"userID,omitempty"`
	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

type UserServer

UserServer is the server API for User service. All implementations must embed UnimplementedUserServer for forward compatibility

Jump to

Keyboard shortcuts

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