Documentation ¶
Index ¶
- Variables
- func RegisterAPIServer(s grpc.ServiceRegistrar, srv APIServer)
- func RegisterIdentityServer(s grpc.ServiceRegistrar, srv IdentityServer)
- func RegisterMenuServer(s grpc.ServiceRegistrar, srv MenuServer)
- func RegisterRoleServer(s grpc.ServiceRegistrar, srv RoleServer)
- func RegisterTenantServer(s grpc.ServiceRegistrar, srv TenantServer)
- func RegisterUserServer(s grpc.ServiceRegistrar, srv UserServer)
- type APIClient
- type APIClientImpl
- type APIInfo
- func (*APIInfo) Descriptor() ([]byte, []int)deprecated
- func (x *APIInfo) GetCheckAuth() bool
- func (x *APIInfo) GetCheckLogin() bool
- func (x *APIInfo) GetDescription() string
- func (x *APIInfo) GetEnable() bool
- func (x *APIInfo) GetGroup() string
- func (x *APIInfo) GetId() string
- func (x *APIInfo) GetMethod() string
- func (x *APIInfo) GetPath() string
- func (*APIInfo) ProtoMessage()
- func (x *APIInfo) ProtoReflect() protoreflect.Message
- func (x *APIInfo) Reset()
- func (x *APIInfo) String() string
- type APIServer
- type AuthenticateRequest
- func (*AuthenticateRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AuthenticateRequest) GetCheckAuth() bool
- func (x *AuthenticateRequest) GetMethod() string
- func (x *AuthenticateRequest) GetToken() string
- func (x *AuthenticateRequest) GetUrl() string
- func (*AuthenticateRequest) ProtoMessage()
- func (x *AuthenticateRequest) ProtoReflect() protoreflect.Message
- func (x *AuthenticateRequest) Reset()
- func (x *AuthenticateRequest) String() string
- type AuthenticateResponse
- func (*AuthenticateResponse) Descriptor() ([]byte, []int)deprecated
- func (x *AuthenticateResponse) GetCode() Code
- func (x *AuthenticateResponse) GetCurrentUser() *CurrentUser
- func (x *AuthenticateResponse) GetMessage() string
- func (*AuthenticateResponse) ProtoMessage()
- func (x *AuthenticateResponse) ProtoReflect() protoreflect.Message
- func (x *AuthenticateResponse) Reset()
- func (x *AuthenticateResponse) String() string
- type ChangePwdRequest
- func (*ChangePwdRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ChangePwdRequest) GetId() string
- func (x *ChangePwdRequest) GetNewPwd() string
- func (x *ChangePwdRequest) GetOldPwd() string
- func (x *ChangePwdRequest) GetTenantID() string
- func (*ChangePwdRequest) ProtoMessage()
- func (x *ChangePwdRequest) ProtoReflect() protoreflect.Message
- func (x *ChangePwdRequest) Reset()
- func (x *ChangePwdRequest) String() string
- type Code
- type CommonResponse
- func (*CommonResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CommonResponse) GetCode() Code
- func (x *CommonResponse) GetMessage() string
- func (*CommonResponse) ProtoMessage()
- func (x *CommonResponse) ProtoReflect() protoreflect.Message
- func (x *CommonResponse) Reset()
- func (x *CommonResponse) String() string
- type CurrentUser
- func (*CurrentUser) Descriptor() ([]byte, []int)deprecated
- func (x *CurrentUser) GetClientIP() string
- func (x *CurrentUser) GetDeviceType() int32
- func (x *CurrentUser) GetDomain() string
- func (x *CurrentUser) GetGender() bool
- func (x *CurrentUser) GetId() string
- func (x *CurrentUser) GetKey() string
- func (x *CurrentUser) GetRoleIDs() []string
- func (x *CurrentUser) GetSessionID() string
- func (x *CurrentUser) GetTenantID() string
- func (x *CurrentUser) GetType() int32
- func (x *CurrentUser) GetUserName() string
- func (*CurrentUser) ProtoMessage()
- func (x *CurrentUser) ProtoReflect() protoreflect.Message
- func (x *CurrentUser) Reset()
- func (x *CurrentUser) String() string
- type DelRequest
- type EnableRequest
- func (*EnableRequest) Descriptor() ([]byte, []int)deprecated
- func (x *EnableRequest) GetEnable() bool
- func (x *EnableRequest) GetId() string
- func (x *EnableRequest) GetTenantID() string
- func (*EnableRequest) ProtoMessage()
- func (x *EnableRequest) ProtoReflect() protoreflect.Message
- func (x *EnableRequest) Reset()
- func (x *EnableRequest) String() string
- type GetAPIDetailResponse
- func (*GetAPIDetailResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetAPIDetailResponse) GetCode() Code
- func (x *GetAPIDetailResponse) GetData() *APIInfo
- func (x *GetAPIDetailResponse) GetMessage() string
- func (*GetAPIDetailResponse) ProtoMessage()
- func (x *GetAPIDetailResponse) ProtoReflect() protoreflect.Message
- func (x *GetAPIDetailResponse) Reset()
- func (x *GetAPIDetailResponse) String() string
- type GetAllAPIResponse
- func (*GetAllAPIResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetAllAPIResponse) GetCode() Code
- func (x *GetAllAPIResponse) GetData() []*APIInfo
- func (x *GetAllAPIResponse) GetMessage() string
- func (*GetAllAPIResponse) ProtoMessage()
- func (x *GetAllAPIResponse) ProtoReflect() protoreflect.Message
- func (x *GetAllAPIResponse) Reset()
- func (x *GetAllAPIResponse) String() string
- type GetAllMenuResponse
- func (*GetAllMenuResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetAllMenuResponse) GetCode() Code
- func (x *GetAllMenuResponse) GetData() []*MenuInfo
- func (x *GetAllMenuResponse) GetMessage() string
- func (*GetAllMenuResponse) ProtoMessage()
- func (x *GetAllMenuResponse) ProtoReflect() protoreflect.Message
- func (x *GetAllMenuResponse) Reset()
- func (x *GetAllMenuResponse) String() string
- type GetAllRequest
- type GetAllRoleResponse
- func (*GetAllRoleResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetAllRoleResponse) GetCode() Code
- func (x *GetAllRoleResponse) GetData() []*RoleInfo
- func (x *GetAllRoleResponse) GetMessage() string
- func (*GetAllRoleResponse) ProtoMessage()
- func (x *GetAllRoleResponse) ProtoReflect() protoreflect.Message
- func (x *GetAllRoleResponse) Reset()
- func (x *GetAllRoleResponse) String() string
- type GetAllTenantResponse
- func (*GetAllTenantResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetAllTenantResponse) GetCode() Code
- func (x *GetAllTenantResponse) GetData() []*TenantInfo
- func (x *GetAllTenantResponse) GetMessage() string
- func (*GetAllTenantResponse) ProtoMessage()
- func (x *GetAllTenantResponse) ProtoReflect() protoreflect.Message
- func (x *GetAllTenantResponse) Reset()
- func (x *GetAllTenantResponse) String() string
- type GetAllUsersRequest
- func (*GetAllUsersRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetAllUsersRequest) GetGroup() string
- func (x *GetAllUsersRequest) GetTenantID() string
- func (x *GetAllUsersRequest) GetType() int32
- func (*GetAllUsersRequest) ProtoMessage()
- func (x *GetAllUsersRequest) ProtoReflect() protoreflect.Message
- func (x *GetAllUsersRequest) Reset()
- func (x *GetAllUsersRequest) String() string
- type GetAllUsersResponse
- func (*GetAllUsersResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetAllUsersResponse) GetCode() Code
- func (x *GetAllUsersResponse) GetData() []*UserInfo
- func (x *GetAllUsersResponse) GetMessage() string
- func (*GetAllUsersResponse) ProtoMessage()
- func (x *GetAllUsersResponse) ProtoReflect() protoreflect.Message
- func (x *GetAllUsersResponse) Reset()
- func (x *GetAllUsersResponse) String() string
- type GetDetailRequest
- func (*GetDetailRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetDetailRequest) GetId() string
- func (x *GetDetailRequest) GetTenantID() string
- func (*GetDetailRequest) ProtoMessage()
- func (x *GetDetailRequest) ProtoReflect() protoreflect.Message
- func (x *GetDetailRequest) Reset()
- func (x *GetDetailRequest) String() string
- type GetMenuDetailResponse
- func (*GetMenuDetailResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetMenuDetailResponse) GetCode() Code
- func (x *GetMenuDetailResponse) GetData() *MenuInfo
- func (x *GetMenuDetailResponse) GetMessage() string
- func (*GetMenuDetailResponse) ProtoMessage()
- func (x *GetMenuDetailResponse) ProtoReflect() protoreflect.Message
- func (x *GetMenuDetailResponse) Reset()
- func (x *GetMenuDetailResponse) String() string
- type GetProfileResponse
- func (*GetProfileResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetProfileResponse) GetCode() Code
- func (x *GetProfileResponse) GetData() *UserInfo
- func (x *GetProfileResponse) GetMessage() string
- func (*GetProfileResponse) ProtoMessage()
- func (x *GetProfileResponse) ProtoReflect() protoreflect.Message
- func (x *GetProfileResponse) Reset()
- func (x *GetProfileResponse) String() string
- type GetRoleDetailResponse
- func (*GetRoleDetailResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetRoleDetailResponse) GetCode() Code
- func (x *GetRoleDetailResponse) GetData() *RoleInfo
- func (x *GetRoleDetailResponse) GetMessage() string
- func (*GetRoleDetailResponse) ProtoMessage()
- func (x *GetRoleDetailResponse) ProtoReflect() protoreflect.Message
- func (x *GetRoleDetailResponse) Reset()
- func (x *GetRoleDetailResponse) String() string
- type GetTenantDetailResponse
- func (*GetTenantDetailResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetTenantDetailResponse) GetCode() Code
- func (x *GetTenantDetailResponse) GetData() *TenantInfo
- func (x *GetTenantDetailResponse) GetMessage() string
- func (*GetTenantDetailResponse) ProtoMessage()
- func (x *GetTenantDetailResponse) ProtoReflect() protoreflect.Message
- func (x *GetTenantDetailResponse) Reset()
- func (x *GetTenantDetailResponse) String() string
- type GetUserDetailResponse
- func (*GetUserDetailResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetUserDetailResponse) GetCode() Code
- func (x *GetUserDetailResponse) GetData() *UserInfo
- func (x *GetUserDetailResponse) GetMessage() string
- func (*GetUserDetailResponse) ProtoMessage()
- func (x *GetUserDetailResponse) ProtoReflect() protoreflect.Message
- func (x *GetUserDetailResponse) Reset()
- func (x *GetUserDetailResponse) String() string
- type IdentityClient
- type IdentityClientImpl
- type IdentityServer
- type LoginRequest
- func (*LoginRequest) Descriptor() ([]byte, []int)deprecated
- func (x *LoginRequest) GetPassword() string
- func (x *LoginRequest) GetUserName() string
- func (x *LoginRequest) GetWechatOpenID() string
- func (x *LoginRequest) GetWechatUnionID() string
- func (*LoginRequest) ProtoMessage()
- func (x *LoginRequest) ProtoReflect() protoreflect.Message
- func (x *LoginRequest) Reset()
- func (x *LoginRequest) String() string
- type LoginResponse
- func (*LoginResponse) Descriptor() ([]byte, []int)deprecated
- func (x *LoginResponse) GetCode() Code
- func (x *LoginResponse) GetData() string
- func (x *LoginResponse) GetMessage() string
- func (*LoginResponse) ProtoMessage()
- func (x *LoginResponse) ProtoReflect() protoreflect.Message
- func (x *LoginResponse) Reset()
- func (x *LoginResponse) String() string
- type LogoutRequest
- type MenuClient
- type MenuClientImpl
- type MenuFunc
- func (*MenuFunc) Descriptor() ([]byte, []int)deprecated
- 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
- func (*MenuFuncApi) Descriptor() ([]byte, []int)deprecated
- 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
- func (*MenuInfo) Descriptor() ([]byte, []int)deprecated
- 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
- func (*MenuParameter) Descriptor() ([]byte, []int)deprecated
- 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
- type MenuServer
- type QueryAPIRequest
- func (*QueryAPIRequest) Descriptor() ([]byte, []int)deprecated
- func (x *QueryAPIRequest) GetCheckAuth() int32
- func (x *QueryAPIRequest) GetCheckLogin() int32
- func (x *QueryAPIRequest) GetDesc() bool
- func (x *QueryAPIRequest) GetGroup() string
- func (x *QueryAPIRequest) GetMethod() string
- func (x *QueryAPIRequest) GetOrderField() string
- func (x *QueryAPIRequest) GetPageIndex() int64
- func (x *QueryAPIRequest) GetPageSize() int64
- func (x *QueryAPIRequest) GetPath() string
- func (*QueryAPIRequest) ProtoMessage()
- func (x *QueryAPIRequest) ProtoReflect() protoreflect.Message
- func (x *QueryAPIRequest) Reset()
- func (x *QueryAPIRequest) String() string
- type QueryAPIResponse
- func (*QueryAPIResponse) Descriptor() ([]byte, []int)deprecated
- func (x *QueryAPIResponse) GetCode() Code
- func (x *QueryAPIResponse) GetData() []*APIInfo
- func (x *QueryAPIResponse) GetMessage() string
- func (x *QueryAPIResponse) GetPages() int64
- func (x *QueryAPIResponse) GetRecords() int64
- func (x *QueryAPIResponse) GetTotal() int64
- func (*QueryAPIResponse) ProtoMessage()
- func (x *QueryAPIResponse) ProtoReflect() protoreflect.Message
- func (x *QueryAPIResponse) Reset()
- func (x *QueryAPIResponse) String() string
- type QueryMenuRequest
- func (*QueryMenuRequest) Descriptor() ([]byte, []int)deprecated
- func (x *QueryMenuRequest) GetDesc() bool
- func (x *QueryMenuRequest) GetLevel() int32
- func (x *QueryMenuRequest) GetName() string
- func (x *QueryMenuRequest) GetOrderField() string
- func (x *QueryMenuRequest) GetPageIndex() int64
- func (x *QueryMenuRequest) GetPageSize() int64
- func (x *QueryMenuRequest) GetParentID() string
- func (x *QueryMenuRequest) GetPath() string
- func (x *QueryMenuRequest) GetTitle() string
- func (*QueryMenuRequest) ProtoMessage()
- func (x *QueryMenuRequest) ProtoReflect() protoreflect.Message
- func (x *QueryMenuRequest) Reset()
- func (x *QueryMenuRequest) String() string
- type QueryMenuResponse
- func (*QueryMenuResponse) Descriptor() ([]byte, []int)deprecated
- func (x *QueryMenuResponse) GetCode() Code
- func (x *QueryMenuResponse) GetData() []*MenuInfo
- func (x *QueryMenuResponse) GetMessage() string
- func (x *QueryMenuResponse) GetPages() int64
- func (x *QueryMenuResponse) GetRecords() int64
- func (x *QueryMenuResponse) GetTotal() int64
- func (*QueryMenuResponse) ProtoMessage()
- func (x *QueryMenuResponse) ProtoReflect() protoreflect.Message
- func (x *QueryMenuResponse) Reset()
- func (x *QueryMenuResponse) String() string
- type QueryRoleRequest
- func (*QueryRoleRequest) Descriptor() ([]byte, []int)deprecated
- func (x *QueryRoleRequest) GetDesc() bool
- func (x *QueryRoleRequest) GetName() string
- func (x *QueryRoleRequest) GetOrderField() string
- func (x *QueryRoleRequest) GetPageIndex() int64
- func (x *QueryRoleRequest) GetPageSize() int64
- func (x *QueryRoleRequest) GetTenantID() string
- func (*QueryRoleRequest) ProtoMessage()
- func (x *QueryRoleRequest) ProtoReflect() protoreflect.Message
- func (x *QueryRoleRequest) Reset()
- func (x *QueryRoleRequest) String() string
- type QueryRoleResponse
- func (*QueryRoleResponse) Descriptor() ([]byte, []int)deprecated
- func (x *QueryRoleResponse) GetCode() Code
- func (x *QueryRoleResponse) GetData() []*RoleInfo
- func (x *QueryRoleResponse) GetMessage() string
- func (x *QueryRoleResponse) GetPages() int64
- func (x *QueryRoleResponse) GetRecords() int64
- func (x *QueryRoleResponse) GetTotal() int64
- func (*QueryRoleResponse) ProtoMessage()
- func (x *QueryRoleResponse) ProtoReflect() protoreflect.Message
- func (x *QueryRoleResponse) Reset()
- func (x *QueryRoleResponse) String() string
- type QueryTenantRequest
- func (*QueryTenantRequest) Descriptor() ([]byte, []int)deprecated
- func (x *QueryTenantRequest) GetDesc() bool
- func (x *QueryTenantRequest) GetName() string
- func (x *QueryTenantRequest) GetOrderField() string
- func (x *QueryTenantRequest) GetPageIndex() int64
- func (x *QueryTenantRequest) GetPageSize() int64
- func (*QueryTenantRequest) ProtoMessage()
- func (x *QueryTenantRequest) ProtoReflect() protoreflect.Message
- func (x *QueryTenantRequest) Reset()
- func (x *QueryTenantRequest) String() string
- type QueryTenantResponse
- func (*QueryTenantResponse) Descriptor() ([]byte, []int)deprecated
- func (x *QueryTenantResponse) GetCode() Code
- func (x *QueryTenantResponse) GetData() []*TenantInfo
- func (x *QueryTenantResponse) GetMessage() string
- func (x *QueryTenantResponse) GetPages() int64
- func (x *QueryTenantResponse) GetRecords() int64
- func (x *QueryTenantResponse) GetTotal() int64
- func (*QueryTenantResponse) ProtoMessage()
- func (x *QueryTenantResponse) ProtoReflect() protoreflect.Message
- func (x *QueryTenantResponse) Reset()
- func (x *QueryTenantResponse) String() string
- type QueryUserRequest
- func (*QueryUserRequest) Descriptor() ([]byte, []int)deprecated
- func (x *QueryUserRequest) GetDesc() bool
- func (x *QueryUserRequest) GetGroup() string
- func (x *QueryUserRequest) GetIdCard() string
- func (x *QueryUserRequest) GetMobile() string
- func (x *QueryUserRequest) GetNickname() string
- func (x *QueryUserRequest) GetOrderField() string
- func (x *QueryUserRequest) GetPageIndex() int64
- func (x *QueryUserRequest) GetPageSize() int64
- func (x *QueryUserRequest) GetTenantID() string
- func (x *QueryUserRequest) GetTitle() string
- func (x *QueryUserRequest) GetType() int32
- func (x *QueryUserRequest) GetUserName() string
- func (x *QueryUserRequest) GetUserNames() string
- func (x *QueryUserRequest) GetWechatID() string
- func (*QueryUserRequest) ProtoMessage()
- func (x *QueryUserRequest) ProtoReflect() protoreflect.Message
- func (x *QueryUserRequest) Reset()
- func (x *QueryUserRequest) String() string
- type QueryUserResponse
- func (*QueryUserResponse) Descriptor() ([]byte, []int)deprecated
- func (x *QueryUserResponse) GetCode() Code
- func (x *QueryUserResponse) GetData() []*UserInfo
- func (x *QueryUserResponse) GetMessage() string
- func (x *QueryUserResponse) GetPages() int64
- func (x *QueryUserResponse) GetRecords() int64
- func (x *QueryUserResponse) GetTotal() int64
- func (*QueryUserResponse) ProtoMessage()
- func (x *QueryUserResponse) ProtoReflect() protoreflect.Message
- func (x *QueryUserResponse) Reset()
- func (x *QueryUserResponse) String() string
- type RoleClient
- type RoleClientImpl
- type RoleInfo
- func (*RoleInfo) Descriptor() ([]byte, []int)deprecated
- func (x *RoleInfo) GetCanDel() bool
- func (x *RoleInfo) GetChildren() []*RoleInfo
- func (x *RoleInfo) GetDefaultRouter() string
- func (x *RoleInfo) GetDescription() string
- func (x *RoleInfo) GetId() string
- func (x *RoleInfo) GetName() string
- func (x *RoleInfo) GetParentID() string
- func (x *RoleInfo) GetRoleMenus() []*RoleMenu
- func (x *RoleInfo) GetTenantID() string
- func (x *RoleInfo) GetTenantName() string
- func (*RoleInfo) ProtoMessage()
- func (x *RoleInfo) ProtoReflect() protoreflect.Message
- func (x *RoleInfo) Reset()
- func (x *RoleInfo) String() string
- type RoleMenu
- func (*RoleMenu) Descriptor() ([]byte, []int)deprecated
- func (x *RoleMenu) GetFuncs() string
- func (x *RoleMenu) GetId() string
- func (x *RoleMenu) GetMenu() *MenuInfo
- func (x *RoleMenu) GetMenuID() string
- func (x *RoleMenu) GetRoleID() string
- func (*RoleMenu) ProtoMessage()
- func (x *RoleMenu) ProtoReflect() protoreflect.Message
- func (x *RoleMenu) Reset()
- func (x *RoleMenu) String() string
- type RoleServer
- type TenantClient
- type TenantClientImpl
- type TenantInfo
- func (*TenantInfo) Descriptor() ([]byte, []int)deprecated
- func (x *TenantInfo) GetAddress() string
- func (x *TenantInfo) GetAreaCovered() string
- func (x *TenantInfo) GetBusinessScope() string
- func (x *TenantInfo) GetCellPhone() string
- func (x *TenantInfo) GetContact() string
- func (x *TenantInfo) GetEnable() bool
- func (x *TenantInfo) GetId() string
- func (x *TenantInfo) GetName() string
- func (x *TenantInfo) GetStaffSize() int32
- func (*TenantInfo) ProtoMessage()
- func (x *TenantInfo) ProtoReflect() protoreflect.Message
- func (x *TenantInfo) Reset()
- func (x *TenantInfo) String() string
- type TenantServer
- type UnimplementedAPIServer
- func (UnimplementedAPIServer) Add(context.Context, *APIInfo) (*CommonResponse, error)
- func (UnimplementedAPIServer) Delete(context.Context, *DelRequest) (*CommonResponse, error)
- func (UnimplementedAPIServer) Enable(context.Context, *EnableRequest) (*CommonResponse, error)
- func (UnimplementedAPIServer) GetAll(context.Context, *GetAllRequest) (*GetAllAPIResponse, error)
- func (UnimplementedAPIServer) GetDetail(context.Context, *GetDetailRequest) (*GetAPIDetailResponse, error)
- func (UnimplementedAPIServer) Query(context.Context, *QueryAPIRequest) (*QueryAPIResponse, error)
- func (UnimplementedAPIServer) Update(context.Context, *APIInfo) (*CommonResponse, error)
- func (s *UnimplementedAPIServer) XXX_GetProxyImpl() protocol.Invoker
- func (s *UnimplementedAPIServer) XXX_ServiceDesc() *grpc.ServiceDesc
- func (s *UnimplementedAPIServer) XXX_SetProxyImpl(impl protocol.Invoker)
- type UnimplementedIdentityServer
- func (UnimplementedIdentityServer) Authenticate(context.Context, *AuthenticateRequest) (*AuthenticateResponse, error)
- func (s *UnimplementedIdentityServer) XXX_GetProxyImpl() protocol.Invoker
- func (s *UnimplementedIdentityServer) XXX_ServiceDesc() *grpc.ServiceDesc
- func (s *UnimplementedIdentityServer) XXX_SetProxyImpl(impl protocol.Invoker)
- type UnimplementedMenuServer
- func (UnimplementedMenuServer) Add(context.Context, *MenuInfo) (*CommonResponse, error)
- func (UnimplementedMenuServer) Delete(context.Context, *DelRequest) (*CommonResponse, error)
- func (UnimplementedMenuServer) GetAll(context.Context, *GetAllRequest) (*GetAllMenuResponse, error)
- func (UnimplementedMenuServer) GetDetail(context.Context, *GetDetailRequest) (*GetMenuDetailResponse, error)
- func (UnimplementedMenuServer) Query(context.Context, *QueryMenuRequest) (*QueryMenuResponse, error)
- func (UnimplementedMenuServer) Update(context.Context, *MenuInfo) (*CommonResponse, error)
- func (s *UnimplementedMenuServer) XXX_GetProxyImpl() protocol.Invoker
- func (s *UnimplementedMenuServer) XXX_ServiceDesc() *grpc.ServiceDesc
- func (s *UnimplementedMenuServer) XXX_SetProxyImpl(impl protocol.Invoker)
- type UnimplementedRoleServer
- func (UnimplementedRoleServer) Add(context.Context, *RoleInfo) (*CommonResponse, error)
- func (UnimplementedRoleServer) Delete(context.Context, *DelRequest) (*CommonResponse, error)
- func (UnimplementedRoleServer) GetAll(context.Context, *GetAllRequest) (*GetAllRoleResponse, error)
- func (UnimplementedRoleServer) GetDetail(context.Context, *GetDetailRequest) (*GetRoleDetailResponse, error)
- func (UnimplementedRoleServer) Query(context.Context, *QueryRoleRequest) (*QueryRoleResponse, error)
- func (UnimplementedRoleServer) Update(context.Context, *RoleInfo) (*CommonResponse, error)
- func (s *UnimplementedRoleServer) XXX_GetProxyImpl() protocol.Invoker
- func (s *UnimplementedRoleServer) XXX_ServiceDesc() *grpc.ServiceDesc
- func (s *UnimplementedRoleServer) XXX_SetProxyImpl(impl protocol.Invoker)
- type UnimplementedTenantServer
- func (UnimplementedTenantServer) Add(context.Context, *TenantInfo) (*CommonResponse, error)
- func (UnimplementedTenantServer) Delete(context.Context, *DelRequest) (*CommonResponse, error)
- func (UnimplementedTenantServer) Enable(context.Context, *EnableRequest) (*CommonResponse, error)
- func (UnimplementedTenantServer) GetAll(context.Context, *GetAllRequest) (*GetAllTenantResponse, error)
- func (UnimplementedTenantServer) GetDetail(context.Context, *GetDetailRequest) (*GetTenantDetailResponse, error)
- func (UnimplementedTenantServer) Query(context.Context, *QueryTenantRequest) (*QueryTenantResponse, error)
- func (UnimplementedTenantServer) Update(context.Context, *TenantInfo) (*CommonResponse, error)
- func (s *UnimplementedTenantServer) XXX_GetProxyImpl() protocol.Invoker
- func (s *UnimplementedTenantServer) XXX_ServiceDesc() *grpc.ServiceDesc
- func (s *UnimplementedTenantServer) XXX_SetProxyImpl(impl protocol.Invoker)
- type UnimplementedUserServer
- func (UnimplementedUserServer) Add(context.Context, *UserInfo) (*CommonResponse, error)
- func (UnimplementedUserServer) ChangePwd(context.Context, *ChangePwdRequest) (*CommonResponse, error)
- func (UnimplementedUserServer) Delete(context.Context, *DelRequest) (*CommonResponse, error)
- func (UnimplementedUserServer) Enable(context.Context, *EnableRequest) (*CommonResponse, error)
- func (UnimplementedUserServer) GetAll(context.Context, *GetAllUsersRequest) (*GetAllUsersResponse, error)
- func (UnimplementedUserServer) GetDetail(context.Context, *GetDetailRequest) (*GetUserDetailResponse, error)
- func (UnimplementedUserServer) GetProfile(context.Context, *GetDetailRequest) (*GetProfileResponse, error)
- func (UnimplementedUserServer) Login(context.Context, *LoginRequest) (*LoginResponse, error)
- func (UnimplementedUserServer) Logout(context.Context, *LogoutRequest) (*CommonResponse, error)
- func (UnimplementedUserServer) Query(context.Context, *QueryUserRequest) (*QueryUserResponse, error)
- func (UnimplementedUserServer) ResetPwd(context.Context, *GetDetailRequest) (*CommonResponse, error)
- func (UnimplementedUserServer) Update(context.Context, *UserInfo) (*CommonResponse, error)
- func (s *UnimplementedUserServer) XXX_GetProxyImpl() protocol.Invoker
- func (s *UnimplementedUserServer) XXX_ServiceDesc() *grpc.ServiceDesc
- func (s *UnimplementedUserServer) XXX_SetProxyImpl(impl protocol.Invoker)
- type UnsafeAPIServer
- type UnsafeIdentityServer
- type UnsafeMenuServer
- type UnsafeRoleServer
- type UnsafeTenantServer
- type UnsafeUserServer
- type UserClient
- type UserClientImpl
- type UserInfo
- func (*UserInfo) Descriptor() ([]byte, []int)deprecated
- func (x *UserInfo) GetAvatar() string
- func (x *UserInfo) GetDescription() string
- func (x *UserInfo) GetEid() string
- func (x *UserInfo) GetEmail() string
- func (x *UserInfo) GetEnable() bool
- func (x *UserInfo) GetGender() bool
- func (x *UserInfo) GetGroup() string
- func (x *UserInfo) GetId() string
- func (x *UserInfo) GetIdCard() string
- func (x *UserInfo) GetMobile() string
- func (x *UserInfo) GetNickname() string
- func (x *UserInfo) GetPassword() string
- func (x *UserInfo) GetRealName() string
- func (x *UserInfo) GetRoleIDs() []string
- func (x *UserInfo) GetTenantID() string
- func (x *UserInfo) GetTenantName() string
- func (x *UserInfo) GetTitle() string
- func (x *UserInfo) GetType() int32
- func (x *UserInfo) GetUserName() string
- func (x *UserInfo) GetUserRoles() []*UserRole
- func (*UserInfo) ProtoMessage()
- func (x *UserInfo) ProtoReflect() protoreflect.Message
- func (x *UserInfo) Reset()
- func (x *UserInfo) String() string
- type UserRole
- func (*UserRole) Descriptor() ([]byte, []int)deprecated
- func (x *UserRole) GetId() string
- func (x *UserRole) GetRoleID() string
- func (x *UserRole) GetUserID() string
- func (*UserRole) ProtoMessage()
- func (x *UserRole) ProtoReflect() protoreflect.Message
- func (x *UserRole) Reset()
- func (x *UserRole) String() string
- type UserServer
Constants ¶
This section is empty.
Variables ¶
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.
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)
var File_api_proto protoreflect.FileDescriptor
var File_common_proto protoreflect.FileDescriptor
var File_identity_proto protoreflect.FileDescriptor
var File_role_proto protoreflect.FileDescriptor
var File_tenant_proto protoreflect.FileDescriptor
var File_user_proto protoreflect.FileDescriptor
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)
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)
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)
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)
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 ¶
type APIClient interface { Add(ctx context.Context, in *APIInfo, opts ...grpc.CallOption) (*CommonResponse, common.ErrorWithAttachment) Update(ctx context.Context, in *APIInfo, opts ...grpc.CallOption) (*CommonResponse, common.ErrorWithAttachment) Delete(ctx context.Context, in *DelRequest, opts ...grpc.CallOption) (*CommonResponse, common.ErrorWithAttachment) Query(ctx context.Context, in *QueryAPIRequest, opts ...grpc.CallOption) (*QueryAPIResponse, common.ErrorWithAttachment) Enable(ctx context.Context, in *EnableRequest, opts ...grpc.CallOption) (*CommonResponse, common.ErrorWithAttachment) GetAll(ctx context.Context, in *GetAllRequest, opts ...grpc.CallOption) (*GetAllAPIResponse, common.ErrorWithAttachment) GetDetail(ctx context.Context, in *GetDetailRequest, opts ...grpc.CallOption) (*GetAPIDetailResponse, common.ErrorWithAttachment) }
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) GetCheckAuth ¶
func (*APIInfo) GetCheckLogin ¶
func (*APIInfo) GetDescription ¶
func (*APIInfo) ProtoMessage ¶
func (*APIInfo) ProtoMessage()
func (*APIInfo) ProtoReflect ¶
func (x *APIInfo) ProtoReflect() protoreflect.Message
type APIServer ¶
type APIServer interface { Add(context.Context, *APIInfo) (*CommonResponse, error) Update(context.Context, *APIInfo) (*CommonResponse, error) Delete(context.Context, *DelRequest) (*CommonResponse, error) Query(context.Context, *QueryAPIRequest) (*QueryAPIResponse, error) Enable(context.Context, *EnableRequest) (*CommonResponse, error) GetAll(context.Context, *GetAllRequest) (*GetAllAPIResponse, error) GetDetail(context.Context, *GetDetailRequest) (*GetAPIDetailResponse, error) // contains filtered or unexported methods }
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) EnumDescriptor
deprecated
func (Code) Number ¶
func (x Code) Number() protoreflect.EnumNumber
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
type MenuClient ¶
type MenuClient interface { Add(ctx context.Context, in *MenuInfo, opts ...grpc.CallOption) (*CommonResponse, common.ErrorWithAttachment) Update(ctx context.Context, in *MenuInfo, opts ...grpc.CallOption) (*CommonResponse, common.ErrorWithAttachment) Delete(ctx context.Context, in *DelRequest, opts ...grpc.CallOption) (*CommonResponse, common.ErrorWithAttachment) Query(ctx context.Context, in *QueryMenuRequest, opts ...grpc.CallOption) (*QueryMenuResponse, common.ErrorWithAttachment) GetAll(ctx context.Context, in *GetAllRequest, opts ...grpc.CallOption) (*GetAllMenuResponse, common.ErrorWithAttachment) GetDetail(ctx context.Context, in *GetDetailRequest, opts ...grpc.CallOption) (*GetMenuDetailResponse, common.ErrorWithAttachment) }
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 ¶
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 (*MenuClientImpl) GetDubboStub ¶
func (c *MenuClientImpl) GetDubboStub(cc *triple.TripleConn) MenuClient
type MenuFunc ¶
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
deprecated
func (*MenuFunc) GetMenuFuncApis ¶
func (x *MenuFunc) GetMenuFuncApis() []*MenuFuncApi
func (*MenuFunc) ProtoMessage ¶
func (*MenuFunc) ProtoMessage()
func (*MenuFunc) ProtoReflect ¶
func (x *MenuFunc) ProtoReflect() protoreflect.Message
type MenuFuncApi ¶
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
deprecated
func (*MenuFuncApi) Descriptor() ([]byte, []int)
Deprecated: Use MenuFuncApi.ProtoReflect.Descriptor instead.
func (*MenuFuncApi) GetApiID ¶
func (x *MenuFuncApi) GetApiID() string
func (*MenuFuncApi) GetApiInfo ¶
func (x *MenuFuncApi) GetApiInfo() *APIInfo
func (*MenuFuncApi) GetId ¶
func (x *MenuFuncApi) GetId() uint32
func (*MenuFuncApi) GetMenuFuncID ¶
func (x *MenuFuncApi) GetMenuFuncID() string
func (*MenuFuncApi) ProtoMessage ¶
func (*MenuFuncApi) ProtoMessage()
func (*MenuFuncApi) ProtoReflect ¶
func (x *MenuFuncApi) ProtoReflect() protoreflect.Message
func (*MenuFuncApi) Reset ¶
func (x *MenuFuncApi) Reset()
func (*MenuFuncApi) String ¶
func (x *MenuFuncApi) String() string
type MenuInfo ¶
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
deprecated
func (*MenuInfo) GetChildren ¶
func (*MenuInfo) GetCloseTab ¶
func (*MenuInfo) GetComponent ¶
func (*MenuInfo) GetDefaultMenu ¶
func (*MenuInfo) GetMenuFuncs ¶
func (*MenuInfo) GetParameters ¶
func (x *MenuInfo) GetParameters() []*MenuParameter
func (*MenuInfo) GetParentID ¶
func (*MenuInfo) ProtoMessage ¶
func (*MenuInfo) ProtoMessage()
func (*MenuInfo) ProtoReflect ¶
func (x *MenuInfo) ProtoReflect() protoreflect.Message
type MenuParameter ¶
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
deprecated
func (*MenuParameter) Descriptor() ([]byte, []int)
Deprecated: Use MenuParameter.ProtoReflect.Descriptor instead.
func (*MenuParameter) GetId ¶
func (x *MenuParameter) GetId() uint32
func (*MenuParameter) GetKey ¶
func (x *MenuParameter) GetKey() string
func (*MenuParameter) GetMenuID ¶
func (x *MenuParameter) GetMenuID() string
func (*MenuParameter) GetType ¶
func (x *MenuParameter) GetType() string
func (*MenuParameter) GetValue ¶
func (x *MenuParameter) GetValue() string
func (*MenuParameter) ProtoMessage ¶
func (*MenuParameter) ProtoMessage()
func (*MenuParameter) ProtoReflect ¶
func (x *MenuParameter) ProtoReflect() protoreflect.Message
func (*MenuParameter) Reset ¶
func (x *MenuParameter) Reset()
func (*MenuParameter) String ¶
func (x *MenuParameter) String() string
type MenuServer ¶
type MenuServer interface { Add(context.Context, *MenuInfo) (*CommonResponse, error) Update(context.Context, *MenuInfo) (*CommonResponse, error) Delete(context.Context, *DelRequest) (*CommonResponse, error) Query(context.Context, *QueryMenuRequest) (*QueryMenuResponse, error) GetAll(context.Context, *GetAllRequest) (*GetAllMenuResponse, error) GetDetail(context.Context, *GetDetailRequest) (*GetMenuDetailResponse, error) // contains filtered or unexported methods }
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 ¶
type RoleClient interface { Add(ctx context.Context, in *RoleInfo, opts ...grpc.CallOption) (*CommonResponse, common.ErrorWithAttachment) Update(ctx context.Context, in *RoleInfo, opts ...grpc.CallOption) (*CommonResponse, common.ErrorWithAttachment) Delete(ctx context.Context, in *DelRequest, opts ...grpc.CallOption) (*CommonResponse, common.ErrorWithAttachment) Query(ctx context.Context, in *QueryRoleRequest, opts ...grpc.CallOption) (*QueryRoleResponse, common.ErrorWithAttachment) GetAll(ctx context.Context, in *GetAllRequest, opts ...grpc.CallOption) (*GetAllRoleResponse, common.ErrorWithAttachment) GetDetail(ctx context.Context, in *GetDetailRequest, opts ...grpc.CallOption) (*GetRoleDetailResponse, common.ErrorWithAttachment) }
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) GetChildren ¶
func (*RoleInfo) GetDefaultRouter ¶
func (*RoleInfo) GetDescription ¶
func (*RoleInfo) GetParentID ¶
func (*RoleInfo) GetRoleMenus ¶
func (*RoleInfo) GetTenantID ¶
func (*RoleInfo) GetTenantName ¶ added in v1.0.13
func (*RoleInfo) ProtoMessage ¶
func (*RoleInfo) ProtoMessage()
func (*RoleInfo) ProtoReflect ¶
func (x *RoleInfo) ProtoReflect() protoreflect.Message
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) ProtoMessage ¶
func (*RoleMenu) ProtoMessage()
func (*RoleMenu) ProtoReflect ¶
func (x *RoleMenu) ProtoReflect() protoreflect.Message
type RoleServer ¶
type RoleServer interface { Add(context.Context, *RoleInfo) (*CommonResponse, error) Update(context.Context, *RoleInfo) (*CommonResponse, error) Delete(context.Context, *DelRequest) (*CommonResponse, error) Query(context.Context, *QueryRoleRequest) (*QueryRoleResponse, error) GetAll(context.Context, *GetAllRequest) (*GetAllRoleResponse, error) GetDetail(context.Context, *GetDetailRequest) (*GetRoleDetailResponse, error) // contains filtered or unexported methods }
RoleServer is the server API for Role service. All implementations must embed UnimplementedRoleServer for forward compatibility
type TenantClient ¶
type TenantClient interface { Add(ctx context.Context, in *TenantInfo, opts ...grpc.CallOption) (*CommonResponse, common.ErrorWithAttachment) Update(ctx context.Context, in *TenantInfo, opts ...grpc.CallOption) (*CommonResponse, common.ErrorWithAttachment) Delete(ctx context.Context, in *DelRequest, opts ...grpc.CallOption) (*CommonResponse, common.ErrorWithAttachment) Query(ctx context.Context, in *QueryTenantRequest, opts ...grpc.CallOption) (*QueryTenantResponse, common.ErrorWithAttachment) Enable(ctx context.Context, in *EnableRequest, opts ...grpc.CallOption) (*CommonResponse, common.ErrorWithAttachment) GetAll(ctx context.Context, in *GetAllRequest, opts ...grpc.CallOption) (*GetAllTenantResponse, common.ErrorWithAttachment) GetDetail(ctx context.Context, in *GetDetailRequest, opts ...grpc.CallOption) (*GetTenantDetailResponse, common.ErrorWithAttachment) }
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 ¶
type TenantServer interface { Add(context.Context, *TenantInfo) (*CommonResponse, error) Update(context.Context, *TenantInfo) (*CommonResponse, error) Delete(context.Context, *DelRequest) (*CommonResponse, error) Query(context.Context, *QueryTenantRequest) (*QueryTenantResponse, error) Enable(context.Context, *EnableRequest) (*CommonResponse, error) GetAll(context.Context, *GetAllRequest) (*GetAllTenantResponse, error) GetDetail(context.Context, *GetDetailRequest) (*GetTenantDetailResponse, error) // contains filtered or unexported methods }
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) Add(context.Context, *APIInfo) (*CommonResponse, error)
func (UnimplementedAPIServer) Delete ¶
func (UnimplementedAPIServer) Delete(context.Context, *DelRequest) (*CommonResponse, error)
func (UnimplementedAPIServer) Enable ¶
func (UnimplementedAPIServer) Enable(context.Context, *EnableRequest) (*CommonResponse, error)
func (UnimplementedAPIServer) GetAll ¶
func (UnimplementedAPIServer) GetAll(context.Context, *GetAllRequest) (*GetAllAPIResponse, error)
func (UnimplementedAPIServer) GetDetail ¶
func (UnimplementedAPIServer) GetDetail(context.Context, *GetDetailRequest) (*GetAPIDetailResponse, error)
func (UnimplementedAPIServer) Query ¶
func (UnimplementedAPIServer) Query(context.Context, *QueryAPIRequest) (*QueryAPIResponse, error)
func (UnimplementedAPIServer) Update ¶
func (UnimplementedAPIServer) Update(context.Context, *APIInfo) (*CommonResponse, error)
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) Authenticate(context.Context, *AuthenticateRequest) (*AuthenticateResponse, error)
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) Add(context.Context, *MenuInfo) (*CommonResponse, error)
func (UnimplementedMenuServer) Delete ¶
func (UnimplementedMenuServer) Delete(context.Context, *DelRequest) (*CommonResponse, error)
func (UnimplementedMenuServer) GetAll ¶
func (UnimplementedMenuServer) GetAll(context.Context, *GetAllRequest) (*GetAllMenuResponse, error)
func (UnimplementedMenuServer) GetDetail ¶
func (UnimplementedMenuServer) GetDetail(context.Context, *GetDetailRequest) (*GetMenuDetailResponse, error)
func (UnimplementedMenuServer) Query ¶
func (UnimplementedMenuServer) Query(context.Context, *QueryMenuRequest) (*QueryMenuResponse, error)
func (UnimplementedMenuServer) Update ¶
func (UnimplementedMenuServer) Update(context.Context, *MenuInfo) (*CommonResponse, error)
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) Add(context.Context, *RoleInfo) (*CommonResponse, error)
func (UnimplementedRoleServer) Delete ¶
func (UnimplementedRoleServer) Delete(context.Context, *DelRequest) (*CommonResponse, error)
func (UnimplementedRoleServer) GetAll ¶
func (UnimplementedRoleServer) GetAll(context.Context, *GetAllRequest) (*GetAllRoleResponse, error)
func (UnimplementedRoleServer) GetDetail ¶
func (UnimplementedRoleServer) GetDetail(context.Context, *GetDetailRequest) (*GetRoleDetailResponse, error)
func (UnimplementedRoleServer) Query ¶
func (UnimplementedRoleServer) Query(context.Context, *QueryRoleRequest) (*QueryRoleResponse, error)
func (UnimplementedRoleServer) Update ¶
func (UnimplementedRoleServer) Update(context.Context, *RoleInfo) (*CommonResponse, error)
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) Add(context.Context, *TenantInfo) (*CommonResponse, error)
func (UnimplementedTenantServer) Delete ¶
func (UnimplementedTenantServer) Delete(context.Context, *DelRequest) (*CommonResponse, error)
func (UnimplementedTenantServer) Enable ¶
func (UnimplementedTenantServer) Enable(context.Context, *EnableRequest) (*CommonResponse, error)
func (UnimplementedTenantServer) GetAll ¶
func (UnimplementedTenantServer) GetAll(context.Context, *GetAllRequest) (*GetAllTenantResponse, error)
func (UnimplementedTenantServer) GetDetail ¶
func (UnimplementedTenantServer) GetDetail(context.Context, *GetDetailRequest) (*GetTenantDetailResponse, error)
func (UnimplementedTenantServer) Query ¶
func (UnimplementedTenantServer) Query(context.Context, *QueryTenantRequest) (*QueryTenantResponse, error)
func (UnimplementedTenantServer) Update ¶
func (UnimplementedTenantServer) Update(context.Context, *TenantInfo) (*CommonResponse, error)
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) Add(context.Context, *UserInfo) (*CommonResponse, error)
func (UnimplementedUserServer) ChangePwd ¶
func (UnimplementedUserServer) ChangePwd(context.Context, *ChangePwdRequest) (*CommonResponse, error)
func (UnimplementedUserServer) Delete ¶
func (UnimplementedUserServer) Delete(context.Context, *DelRequest) (*CommonResponse, error)
func (UnimplementedUserServer) Enable ¶
func (UnimplementedUserServer) Enable(context.Context, *EnableRequest) (*CommonResponse, error)
func (UnimplementedUserServer) GetAll ¶
func (UnimplementedUserServer) GetAll(context.Context, *GetAllUsersRequest) (*GetAllUsersResponse, error)
func (UnimplementedUserServer) GetDetail ¶
func (UnimplementedUserServer) GetDetail(context.Context, *GetDetailRequest) (*GetUserDetailResponse, error)
func (UnimplementedUserServer) GetProfile ¶
func (UnimplementedUserServer) GetProfile(context.Context, *GetDetailRequest) (*GetProfileResponse, error)
func (UnimplementedUserServer) Login ¶
func (UnimplementedUserServer) Login(context.Context, *LoginRequest) (*LoginResponse, error)
func (UnimplementedUserServer) Logout ¶
func (UnimplementedUserServer) Logout(context.Context, *LogoutRequest) (*CommonResponse, error)
func (UnimplementedUserServer) Query ¶
func (UnimplementedUserServer) Query(context.Context, *QueryUserRequest) (*QueryUserResponse, error)
func (UnimplementedUserServer) ResetPwd ¶
func (UnimplementedUserServer) ResetPwd(context.Context, *GetDetailRequest) (*CommonResponse, error)
func (UnimplementedUserServer) Update ¶
func (UnimplementedUserServer) Update(context.Context, *UserInfo) (*CommonResponse, error)
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 ¶
type UserClient interface { Login(ctx context.Context, in *LoginRequest, opts ...grpc.CallOption) (*LoginResponse, common.ErrorWithAttachment) Add(ctx context.Context, in *UserInfo, opts ...grpc.CallOption) (*CommonResponse, common.ErrorWithAttachment) Update(ctx context.Context, in *UserInfo, opts ...grpc.CallOption) (*CommonResponse, common.ErrorWithAttachment) Delete(ctx context.Context, in *DelRequest, opts ...grpc.CallOption) (*CommonResponse, common.ErrorWithAttachment) Query(ctx context.Context, in *QueryUserRequest, opts ...grpc.CallOption) (*QueryUserResponse, common.ErrorWithAttachment) GetProfile(ctx context.Context, in *GetDetailRequest, opts ...grpc.CallOption) (*GetProfileResponse, common.ErrorWithAttachment) Enable(ctx context.Context, in *EnableRequest, opts ...grpc.CallOption) (*CommonResponse, common.ErrorWithAttachment) GetAll(ctx context.Context, in *GetAllUsersRequest, opts ...grpc.CallOption) (*GetAllUsersResponse, common.ErrorWithAttachment) GetDetail(ctx context.Context, in *GetDetailRequest, opts ...grpc.CallOption) (*GetUserDetailResponse, common.ErrorWithAttachment) ResetPwd(ctx context.Context, in *GetDetailRequest, opts ...grpc.CallOption) (*CommonResponse, common.ErrorWithAttachment) ChangePwd(ctx context.Context, in *ChangePwdRequest, opts ...grpc.CallOption) (*CommonResponse, common.ErrorWithAttachment) Logout(ctx context.Context, in *LogoutRequest, opts ...grpc.CallOption) (*CommonResponse, common.ErrorWithAttachment) }
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) GetDescription ¶
func (*UserInfo) GetNickname ¶
func (*UserInfo) GetPassword ¶ added in v1.0.3
func (*UserInfo) GetRealName ¶
func (*UserInfo) GetRoleIDs ¶
func (*UserInfo) GetTenantID ¶
func (*UserInfo) GetTenantName ¶ added in v1.0.13
func (*UserInfo) GetUserName ¶
func (*UserInfo) GetUserRoles ¶
func (*UserInfo) ProtoMessage ¶
func (*UserInfo) ProtoMessage()
func (*UserInfo) ProtoReflect ¶
func (x *UserInfo) ProtoReflect() protoreflect.Message
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) ProtoMessage ¶
func (*UserRole) ProtoMessage()
func (*UserRole) ProtoReflect ¶
func (x *UserRole) ProtoReflect() protoreflect.Message
type UserServer ¶
type UserServer interface { Login(context.Context, *LoginRequest) (*LoginResponse, error) Add(context.Context, *UserInfo) (*CommonResponse, error) Update(context.Context, *UserInfo) (*CommonResponse, error) Delete(context.Context, *DelRequest) (*CommonResponse, error) Query(context.Context, *QueryUserRequest) (*QueryUserResponse, error) GetProfile(context.Context, *GetDetailRequest) (*GetProfileResponse, error) Enable(context.Context, *EnableRequest) (*CommonResponse, error) GetAll(context.Context, *GetAllUsersRequest) (*GetAllUsersResponse, error) GetDetail(context.Context, *GetDetailRequest) (*GetUserDetailResponse, error) ResetPwd(context.Context, *GetDetailRequest) (*CommonResponse, error) ChangePwd(context.Context, *ChangePwdRequest) (*CommonResponse, error) Logout(context.Context, *LogoutRequest) (*CommonResponse, error) // contains filtered or unexported methods }
UserServer is the server API for User service. All implementations must embed UnimplementedUserServer for forward compatibility