Documentation
¶
Index ¶
- Variables
- func RegisterServiceApiServer(s *grpc.Server, srv ServiceApiServer)
- func RegisterServiceAuthServer(s *grpc.Server, srv ServiceAuthServer)
- func RegisterServiceCabinServer(s *grpc.Server, srv ServiceCabinServer)
- func RegisterServiceDomainServer(s *grpc.Server, srv ServiceDomainServer)
- func RegisterServiceGroupServer(s *grpc.Server, srv ServiceGroupServer)
- func RegisterServiceMenuServer(s *grpc.Server, srv ServiceMenuServer)
- func RegisterServiceRoleServer(s *grpc.Server, srv ServiceRoleServer)
- func RegisterUserServiceServer(s *grpc.Server, srv UserServiceServer)
- type AuthApiRequest
- type AuthApiResponse
- func (*AuthApiResponse) Descriptor() ([]byte, []int)deprecated
- func (x *AuthApiResponse) GetResult() *CodeResult
- func (x *AuthApiResponse) GetUser() *BaseUserInfo
- func (*AuthApiResponse) ProtoMessage()
- func (x *AuthApiResponse) ProtoReflect() protoreflect.Message
- func (x *AuthApiResponse) Reset()
- func (x *AuthApiResponse) String() string
- type BaseUserInfo
- func (*BaseUserInfo) Descriptor() ([]byte, []int)deprecated
- func (x *BaseUserInfo) GetId() uint64
- func (x *BaseUserInfo) GetNickname() string
- func (x *BaseUserInfo) GetUsername() string
- func (x *BaseUserInfo) GetUuid() string
- func (*BaseUserInfo) ProtoMessage()
- func (x *BaseUserInfo) ProtoReflect() protoreflect.Message
- func (x *BaseUserInfo) Reset()
- func (x *BaseUserInfo) String() string
- type BytesRequest
- type CodeResult
- type GetUserInfoRequest
- func (*GetUserInfoRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetUserInfoRequest) GetUserId() int64
- func (*GetUserInfoRequest) ProtoMessage()
- func (x *GetUserInfoRequest) ProtoReflect() protoreflect.Message
- func (x *GetUserInfoRequest) Reset()
- func (x *GetUserInfoRequest) String() string
- type GetUserInfoResponse
- func (*GetUserInfoResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetUserInfoResponse) GetResult() *CodeResult
- func (x *GetUserInfoResponse) GetUserId() int64
- func (x *GetUserInfoResponse) GetUserName() string
- func (*GetUserInfoResponse) ProtoMessage()
- func (x *GetUserInfoResponse) ProtoReflect() protoreflect.Message
- func (x *GetUserInfoResponse) Reset()
- func (x *GetUserInfoResponse) String() string
- type IdsRequest
- type ListRequest
- func (*ListRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListRequest) GetFilter() []string
- func (x *ListRequest) GetPage() int64
- func (x *ListRequest) GetPageSize() int64
- func (*ListRequest) ProtoMessage()
- func (x *ListRequest) ProtoReflect() protoreflect.Message
- func (x *ListRequest) Reset()
- func (x *ListRequest) String() string
- type ListResponse
- func (*ListResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListResponse) GetCounts() int64
- func (x *ListResponse) GetList() []byte
- func (x *ListResponse) GetPage() int64
- func (x *ListResponse) GetPageSize() int64
- func (x *ListResponse) GetResult() *CodeResult
- func (*ListResponse) ProtoMessage()
- func (x *ListResponse) ProtoReflect() protoreflect.Message
- func (x *ListResponse) Reset()
- func (x *ListResponse) String() string
- type LoginResponse
- func (*LoginResponse) Descriptor() ([]byte, []int)deprecated
- func (x *LoginResponse) GetResult() *CodeResult
- func (x *LoginResponse) GetToken() string
- func (*LoginResponse) ProtoMessage()
- func (x *LoginResponse) ProtoReflect() protoreflect.Message
- func (x *LoginResponse) Reset()
- func (x *LoginResponse) String() string
- type ServiceApiClient
- type ServiceApiServer
- type ServiceAuthClient
- type ServiceAuthServer
- type ServiceCabinClient
- type ServiceCabinServer
- type ServiceDomainClient
- type ServiceDomainServer
- type ServiceGroupClient
- type ServiceGroupServer
- type ServiceMenuClient
- type ServiceMenuServer
- type ServiceRoleClient
- type ServiceRoleServer
- type UnimplementedServiceApiServer
- func (*UnimplementedServiceApiServer) ApiAdd(context.Context, *BytesRequest) (*CodeResult, error)
- func (*UnimplementedServiceApiServer) ApiDelete(context.Context, *IdsRequest) (*CodeResult, error)
- func (*UnimplementedServiceApiServer) ApiList(context.Context, *ListRequest) (*ListResponse, error)
- func (*UnimplementedServiceApiServer) ApiModify(context.Context, *BytesRequest) (*CodeResult, error)
- type UnimplementedServiceAuthServer
- type UnimplementedServiceCabinServer
- func (*UnimplementedServiceCabinServer) CabinRuleAdd(context.Context, *BytesRequest) (*CodeResult, error)
- func (*UnimplementedServiceCabinServer) CabinRuleDelete(context.Context, *BytesRequest) (*CodeResult, error)
- func (*UnimplementedServiceCabinServer) CabinRuleList(context.Context, *ListRequest) (*ListResponse, error)
- func (*UnimplementedServiceCabinServer) CabinRuleModify(context.Context, *BytesRequest) (*CodeResult, error)
- func (*UnimplementedServiceCabinServer) GetCabinById(context.Context, *WithSliderParamRequest) (*WithBytesResponse, error)
- type UnimplementedServiceDomainServer
- func (*UnimplementedServiceDomainServer) DomainAdd(context.Context, *BytesRequest) (*CodeResult, error)
- func (*UnimplementedServiceDomainServer) DomainDelete(context.Context, *IdsRequest) (*CodeResult, error)
- func (*UnimplementedServiceDomainServer) DomainList(context.Context, *ListRequest) (*ListResponse, error)
- func (*UnimplementedServiceDomainServer) DomainModify(context.Context, *BytesRequest) (*CodeResult, error)
- type UnimplementedServiceGroupServer
- func (*UnimplementedServiceGroupServer) GroupAdd(context.Context, *BytesRequest) (*CodeResult, error)
- func (*UnimplementedServiceGroupServer) GroupDelete(context.Context, *IdsRequest) (*CodeResult, error)
- func (*UnimplementedServiceGroupServer) GroupList(context.Context, *ListRequest) (*ListResponse, error)
- func (*UnimplementedServiceGroupServer) GroupModify(context.Context, *BytesRequest) (*CodeResult, error)
- type UnimplementedServiceMenuServer
- func (*UnimplementedServiceMenuServer) MenuAdd(context.Context, *BytesRequest) (*CodeResult, error)
- func (*UnimplementedServiceMenuServer) MenuDelete(context.Context, *IdsRequest) (*CodeResult, error)
- func (*UnimplementedServiceMenuServer) MenuList(context.Context, *ListRequest) (*ListResponse, error)
- func (*UnimplementedServiceMenuServer) MenuModify(context.Context, *BytesRequest) (*CodeResult, error)
- type UnimplementedServiceRoleServer
- func (*UnimplementedServiceRoleServer) RoleAdd(context.Context, *BytesRequest) (*CodeResult, error)
- func (*UnimplementedServiceRoleServer) RoleDelete(context.Context, *IdsRequest) (*CodeResult, error)
- func (*UnimplementedServiceRoleServer) RoleList(context.Context, *ListRequest) (*ListResponse, error)
- func (*UnimplementedServiceRoleServer) RoleModify(context.Context, *BytesRequest) (*CodeResult, error)
- type UnimplementedUserServiceServer
- func (*UnimplementedUserServiceServer) GetUserInfo(context.Context, *GetUserInfoRequest) (*GetUserInfoResponse, error)
- func (*UnimplementedUserServiceServer) Login(context.Context, *WithPasswordRequest) (*LoginResponse, error)
- func (*UnimplementedUserServiceServer) Logout(context.Context, *WithNothingRequest) (*CodeResult, error)
- func (*UnimplementedUserServiceServer) Register(context.Context, *WithPasswordRequest) (*CodeResult, error)
- type UserLoginType
- func (UserLoginType) Descriptor() protoreflect.EnumDescriptor
- func (x UserLoginType) Enum() *UserLoginType
- func (UserLoginType) EnumDescriptor() ([]byte, []int)deprecated
- func (x UserLoginType) Number() protoreflect.EnumNumber
- func (x UserLoginType) String() string
- func (UserLoginType) Type() protoreflect.EnumType
- type UserServiceClient
- type UserServiceServer
- type WithBytesResponse
- func (*WithBytesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *WithBytesResponse) GetData() []byte
- func (x *WithBytesResponse) GetResult() *CodeResult
- func (*WithBytesResponse) ProtoMessage()
- func (x *WithBytesResponse) ProtoReflect() protoreflect.Message
- func (x *WithBytesResponse) Reset()
- func (x *WithBytesResponse) String() string
- type WithNothingRequest
- type WithPasswordRequest
- func (*WithPasswordRequest) Descriptor() ([]byte, []int)deprecated
- func (x *WithPasswordRequest) GetPassword() string
- func (x *WithPasswordRequest) GetType() UserLoginType
- func (x *WithPasswordRequest) GetUsername() string
- func (*WithPasswordRequest) ProtoMessage()
- func (x *WithPasswordRequest) ProtoReflect() protoreflect.Message
- func (x *WithPasswordRequest) Reset()
- func (x *WithPasswordRequest) String() string
- type WithSliderParamRequest
- func (*WithSliderParamRequest) Descriptor() ([]byte, []int)deprecated
- func (x *WithSliderParamRequest) GetFieldIndex() int64
- func (x *WithSliderParamRequest) GetFieldValue() []string
- func (x *WithSliderParamRequest) GetPType() string
- func (*WithSliderParamRequest) ProtoMessage()
- func (x *WithSliderParamRequest) ProtoReflect() protoreflect.Message
- func (x *WithSliderParamRequest) Reset()
- func (x *WithSliderParamRequest) String() string
Constants ¶
This section is empty.
Variables ¶
var ( UserLoginType_name = map[int32]string{ 0: "Local", 1: "AD", } UserLoginType_value = map[string]int32{ "Local": 0, "AD": 1, } )
Enum value maps for UserLoginType.
var File_user_proto protoreflect.FileDescriptor
Functions ¶
func RegisterServiceApiServer ¶
func RegisterServiceApiServer(s *grpc.Server, srv ServiceApiServer)
func RegisterServiceAuthServer ¶
func RegisterServiceAuthServer(s *grpc.Server, srv ServiceAuthServer)
func RegisterServiceCabinServer ¶
func RegisterServiceCabinServer(s *grpc.Server, srv ServiceCabinServer)
func RegisterServiceDomainServer ¶
func RegisterServiceDomainServer(s *grpc.Server, srv ServiceDomainServer)
func RegisterServiceGroupServer ¶
func RegisterServiceGroupServer(s *grpc.Server, srv ServiceGroupServer)
func RegisterServiceMenuServer ¶
func RegisterServiceMenuServer(s *grpc.Server, srv ServiceMenuServer)
func RegisterServiceRoleServer ¶
func RegisterServiceRoleServer(s *grpc.Server, srv ServiceRoleServer)
func RegisterUserServiceServer ¶
func RegisterUserServiceServer(s *grpc.Server, srv UserServiceServer)
Types ¶
type AuthApiRequest ¶
type AuthApiRequest struct {
Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
// contains filtered or unexported fields
}
api 权限
func (*AuthApiRequest) Descriptor
deprecated
func (*AuthApiRequest) Descriptor() ([]byte, []int)
Deprecated: Use AuthApiRequest.ProtoReflect.Descriptor instead.
func (*AuthApiRequest) GetPath ¶
func (x *AuthApiRequest) GetPath() string
func (*AuthApiRequest) ProtoMessage ¶
func (*AuthApiRequest) ProtoMessage()
func (*AuthApiRequest) ProtoReflect ¶
func (x *AuthApiRequest) ProtoReflect() protoreflect.Message
func (*AuthApiRequest) Reset ¶
func (x *AuthApiRequest) Reset()
func (*AuthApiRequest) String ¶
func (x *AuthApiRequest) String() string
type AuthApiResponse ¶
type AuthApiResponse struct {
Result *CodeResult `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"`
User *BaseUserInfo `protobuf:"bytes,2,opt,name=user,proto3" json:"user,omitempty"`
// contains filtered or unexported fields
}
func (*AuthApiResponse) Descriptor
deprecated
func (*AuthApiResponse) Descriptor() ([]byte, []int)
Deprecated: Use AuthApiResponse.ProtoReflect.Descriptor instead.
func (*AuthApiResponse) GetResult ¶
func (x *AuthApiResponse) GetResult() *CodeResult
func (*AuthApiResponse) GetUser ¶
func (x *AuthApiResponse) GetUser() *BaseUserInfo
func (*AuthApiResponse) ProtoMessage ¶
func (*AuthApiResponse) ProtoMessage()
func (*AuthApiResponse) ProtoReflect ¶
func (x *AuthApiResponse) ProtoReflect() protoreflect.Message
func (*AuthApiResponse) Reset ¶
func (x *AuthApiResponse) Reset()
func (*AuthApiResponse) String ¶
func (x *AuthApiResponse) String() string
type BaseUserInfo ¶
type BaseUserInfo struct {
Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"`
Id uint64 `protobuf:"varint,2,opt,name=id,proto3" json:"id,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"`
// contains filtered or unexported fields
}
func (*BaseUserInfo) Descriptor
deprecated
func (*BaseUserInfo) Descriptor() ([]byte, []int)
Deprecated: Use BaseUserInfo.ProtoReflect.Descriptor instead.
func (*BaseUserInfo) GetId ¶
func (x *BaseUserInfo) GetId() uint64
func (*BaseUserInfo) GetNickname ¶
func (x *BaseUserInfo) GetNickname() string
func (*BaseUserInfo) GetUsername ¶
func (x *BaseUserInfo) GetUsername() string
func (*BaseUserInfo) GetUuid ¶
func (x *BaseUserInfo) GetUuid() string
func (*BaseUserInfo) ProtoMessage ¶
func (*BaseUserInfo) ProtoMessage()
func (*BaseUserInfo) ProtoReflect ¶
func (x *BaseUserInfo) ProtoReflect() protoreflect.Message
func (*BaseUserInfo) Reset ¶
func (x *BaseUserInfo) Reset()
func (*BaseUserInfo) String ¶
func (x *BaseUserInfo) String() string
type BytesRequest ¶
type BytesRequest struct {
Data []byte `protobuf:"bytes,1,opt,name=Data,proto3" json:"Data,omitempty"`
// contains filtered or unexported fields
}
数据新增和修改接口
func (*BytesRequest) Descriptor
deprecated
func (*BytesRequest) Descriptor() ([]byte, []int)
Deprecated: Use BytesRequest.ProtoReflect.Descriptor instead.
func (*BytesRequest) GetData ¶
func (x *BytesRequest) GetData() []byte
func (*BytesRequest) ProtoMessage ¶
func (*BytesRequest) ProtoMessage()
func (*BytesRequest) ProtoReflect ¶
func (x *BytesRequest) ProtoReflect() protoreflect.Message
func (*BytesRequest) Reset ¶
func (x *BytesRequest) Reset()
func (*BytesRequest) String ¶
func (x *BytesRequest) String() string
type CodeResult ¶
type CodeResult struct {
Code int64 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"`
// contains filtered or unexported fields
}
标准响应体
func (*CodeResult) Descriptor
deprecated
func (*CodeResult) Descriptor() ([]byte, []int)
Deprecated: Use CodeResult.ProtoReflect.Descriptor instead.
func (*CodeResult) GetCode ¶
func (x *CodeResult) GetCode() int64
func (*CodeResult) GetMsg ¶
func (x *CodeResult) GetMsg() string
func (*CodeResult) ProtoMessage ¶
func (*CodeResult) ProtoMessage()
func (*CodeResult) ProtoReflect ¶
func (x *CodeResult) ProtoReflect() protoreflect.Message
func (*CodeResult) Reset ¶
func (x *CodeResult) Reset()
func (*CodeResult) String ¶
func (x *CodeResult) String() string
type GetUserInfoRequest ¶
type GetUserInfoRequest struct {
UserId int64 `protobuf:"varint,1,opt,name=userId,proto3" json:"userId,omitempty"`
// contains filtered or unexported fields
}
func (*GetUserInfoRequest) Descriptor
deprecated
func (*GetUserInfoRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetUserInfoRequest.ProtoReflect.Descriptor instead.
func (*GetUserInfoRequest) GetUserId ¶
func (x *GetUserInfoRequest) GetUserId() int64
func (*GetUserInfoRequest) ProtoMessage ¶
func (*GetUserInfoRequest) ProtoMessage()
func (*GetUserInfoRequest) ProtoReflect ¶
func (x *GetUserInfoRequest) ProtoReflect() protoreflect.Message
func (*GetUserInfoRequest) Reset ¶
func (x *GetUserInfoRequest) Reset()
func (*GetUserInfoRequest) String ¶
func (x *GetUserInfoRequest) String() string
type GetUserInfoResponse ¶
type GetUserInfoResponse struct {
Result *CodeResult `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"`
UserId int64 `protobuf:"varint,2,opt,name=UserId,proto3" json:"UserId,omitempty"`
UserName string `protobuf:"bytes,3,opt,name=UserName,proto3" json:"UserName,omitempty"`
// contains filtered or unexported fields
}
func (*GetUserInfoResponse) Descriptor
deprecated
func (*GetUserInfoResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetUserInfoResponse.ProtoReflect.Descriptor instead.
func (*GetUserInfoResponse) GetResult ¶
func (x *GetUserInfoResponse) GetResult() *CodeResult
func (*GetUserInfoResponse) GetUserId ¶
func (x *GetUserInfoResponse) GetUserId() int64
func (*GetUserInfoResponse) GetUserName ¶
func (x *GetUserInfoResponse) GetUserName() string
func (*GetUserInfoResponse) ProtoMessage ¶
func (*GetUserInfoResponse) ProtoMessage()
func (*GetUserInfoResponse) ProtoReflect ¶
func (x *GetUserInfoResponse) ProtoReflect() protoreflect.Message
func (*GetUserInfoResponse) Reset ¶
func (x *GetUserInfoResponse) Reset()
func (*GetUserInfoResponse) String ¶
func (x *GetUserInfoResponse) String() string
type IdsRequest ¶
type IdsRequest struct {
Ids []int64 `protobuf:"varint,1,rep,packed,name=ids,proto3" json:"ids,omitempty"`
// contains filtered or unexported fields
}
传数据ids的接口
func (*IdsRequest) Descriptor
deprecated
func (*IdsRequest) Descriptor() ([]byte, []int)
Deprecated: Use IdsRequest.ProtoReflect.Descriptor instead.
func (*IdsRequest) GetIds ¶
func (x *IdsRequest) GetIds() []int64
func (*IdsRequest) ProtoMessage ¶
func (*IdsRequest) ProtoMessage()
func (*IdsRequest) ProtoReflect ¶
func (x *IdsRequest) ProtoReflect() protoreflect.Message
func (*IdsRequest) Reset ¶
func (x *IdsRequest) Reset()
func (*IdsRequest) String ¶
func (x *IdsRequest) String() string
type ListRequest ¶
type ListRequest struct {
Page int64 `protobuf:"varint,1,opt,name=Page,proto3" json:"Page,omitempty"`
PageSize int64 `protobuf:"varint,2,opt,name=PageSize,proto3" json:"PageSize,omitempty"`
Filter []string `protobuf:"bytes,3,rep,name=Filter,proto3" json:"Filter,omitempty"`
// contains filtered or unexported fields
}
数据列表查询接口
func (*ListRequest) Descriptor
deprecated
func (*ListRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListRequest.ProtoReflect.Descriptor instead.
func (*ListRequest) GetFilter ¶
func (x *ListRequest) GetFilter() []string
func (*ListRequest) GetPage ¶
func (x *ListRequest) GetPage() int64
func (*ListRequest) GetPageSize ¶
func (x *ListRequest) GetPageSize() int64
func (*ListRequest) ProtoMessage ¶
func (*ListRequest) ProtoMessage()
func (*ListRequest) ProtoReflect ¶
func (x *ListRequest) ProtoReflect() protoreflect.Message
func (*ListRequest) Reset ¶
func (x *ListRequest) Reset()
func (*ListRequest) String ¶
func (x *ListRequest) String() string
type ListResponse ¶
type ListResponse struct {
Result *CodeResult `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"`
Page int64 `protobuf:"varint,2,opt,name=Page,proto3" json:"Page,omitempty"`
PageSize int64 `protobuf:"varint,3,opt,name=PageSize,proto3" json:"PageSize,omitempty"`
Counts int64 `protobuf:"varint,4,opt,name=Counts,proto3" json:"Counts,omitempty"`
List []byte `protobuf:"bytes,5,opt,name=List,proto3" json:"List,omitempty"`
// contains filtered or unexported fields
}
func (*ListResponse) Descriptor
deprecated
func (*ListResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListResponse.ProtoReflect.Descriptor instead.
func (*ListResponse) GetCounts ¶
func (x *ListResponse) GetCounts() int64
func (*ListResponse) GetList ¶
func (x *ListResponse) GetList() []byte
func (*ListResponse) GetPage ¶
func (x *ListResponse) GetPage() int64
func (*ListResponse) GetPageSize ¶
func (x *ListResponse) GetPageSize() int64
func (*ListResponse) GetResult ¶
func (x *ListResponse) GetResult() *CodeResult
func (*ListResponse) ProtoMessage ¶
func (*ListResponse) ProtoMessage()
func (*ListResponse) ProtoReflect ¶
func (x *ListResponse) ProtoReflect() protoreflect.Message
func (*ListResponse) Reset ¶
func (x *ListResponse) Reset()
func (*ListResponse) String ¶
func (x *ListResponse) String() string
type LoginResponse ¶
type LoginResponse struct {
Result *CodeResult `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"`
Token string `protobuf:"bytes,2,opt,name=Token,proto3" json:"Token,omitempty"`
// contains filtered or unexported fields
}
func (*LoginResponse) Descriptor
deprecated
func (*LoginResponse) Descriptor() ([]byte, []int)
Deprecated: Use LoginResponse.ProtoReflect.Descriptor instead.
func (*LoginResponse) GetResult ¶
func (x *LoginResponse) GetResult() *CodeResult
func (*LoginResponse) GetToken ¶
func (x *LoginResponse) GetToken() 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 ServiceApiClient ¶
type ServiceApiClient interface {
// api新增和修改
ApiAdd(ctx context.Context, in *BytesRequest, opts ...grpc.CallOption) (*CodeResult, error)
ApiModify(ctx context.Context, in *BytesRequest, opts ...grpc.CallOption) (*CodeResult, error)
ApiDelete(ctx context.Context, in *IdsRequest, opts ...grpc.CallOption) (*CodeResult, error)
ApiList(ctx context.Context, in *ListRequest, opts ...grpc.CallOption) (*ListResponse, error)
}
ServiceApiClient is the client API for ServiceApi service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewServiceApiClient ¶
func NewServiceApiClient(cc grpc.ClientConnInterface) ServiceApiClient
type ServiceApiServer ¶
type ServiceApiServer interface {
// api新增和修改
ApiAdd(context.Context, *BytesRequest) (*CodeResult, error)
ApiModify(context.Context, *BytesRequest) (*CodeResult, error)
ApiDelete(context.Context, *IdsRequest) (*CodeResult, error)
ApiList(context.Context, *ListRequest) (*ListResponse, error)
}
ServiceApiServer is the server API for ServiceApi service.
type ServiceAuthClient ¶
type ServiceAuthClient interface {
// 权限相关
AuthApi(ctx context.Context, in *AuthApiRequest, opts ...grpc.CallOption) (*AuthApiResponse, error)
}
ServiceAuthClient is the client API for ServiceAuth service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewServiceAuthClient ¶
func NewServiceAuthClient(cc grpc.ClientConnInterface) ServiceAuthClient
type ServiceAuthServer ¶
type ServiceAuthServer interface {
// 权限相关
AuthApi(context.Context, *AuthApiRequest) (*AuthApiResponse, error)
}
ServiceAuthServer is the server API for ServiceAuth service.
type ServiceCabinClient ¶
type ServiceCabinClient interface {
// api新增和修改
CabinRuleAdd(ctx context.Context, in *BytesRequest, opts ...grpc.CallOption) (*CodeResult, error)
CabinRuleModify(ctx context.Context, in *BytesRequest, opts ...grpc.CallOption) (*CodeResult, error)
CabinRuleDelete(ctx context.Context, in *BytesRequest, opts ...grpc.CallOption) (*CodeResult, error)
CabinRuleList(ctx context.Context, in *ListRequest, opts ...grpc.CallOption) (*ListResponse, error)
// 根据id 获取用户权限
GetCabinById(ctx context.Context, in *WithSliderParamRequest, opts ...grpc.CallOption) (*WithBytesResponse, error)
}
ServiceCabinClient is the client API for ServiceCabin service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewServiceCabinClient ¶
func NewServiceCabinClient(cc grpc.ClientConnInterface) ServiceCabinClient
type ServiceCabinServer ¶
type ServiceCabinServer interface {
// api新增和修改
CabinRuleAdd(context.Context, *BytesRequest) (*CodeResult, error)
CabinRuleModify(context.Context, *BytesRequest) (*CodeResult, error)
CabinRuleDelete(context.Context, *BytesRequest) (*CodeResult, error)
CabinRuleList(context.Context, *ListRequest) (*ListResponse, error)
// 根据id 获取用户权限
GetCabinById(context.Context, *WithSliderParamRequest) (*WithBytesResponse, error)
}
ServiceCabinServer is the server API for ServiceCabin service.
type ServiceDomainClient ¶
type ServiceDomainClient interface {
// 商户新增和修改
DomainAdd(ctx context.Context, in *BytesRequest, opts ...grpc.CallOption) (*CodeResult, error)
DomainModify(ctx context.Context, in *BytesRequest, opts ...grpc.CallOption) (*CodeResult, error)
DomainDelete(ctx context.Context, in *IdsRequest, opts ...grpc.CallOption) (*CodeResult, error)
DomainList(ctx context.Context, in *ListRequest, opts ...grpc.CallOption) (*ListResponse, error)
}
ServiceDomainClient is the client API for ServiceDomain service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewServiceDomainClient ¶
func NewServiceDomainClient(cc grpc.ClientConnInterface) ServiceDomainClient
type ServiceDomainServer ¶
type ServiceDomainServer interface {
// 商户新增和修改
DomainAdd(context.Context, *BytesRequest) (*CodeResult, error)
DomainModify(context.Context, *BytesRequest) (*CodeResult, error)
DomainDelete(context.Context, *IdsRequest) (*CodeResult, error)
DomainList(context.Context, *ListRequest) (*ListResponse, error)
}
ServiceDomainServer is the server API for ServiceDomain service.
type ServiceGroupClient ¶
type ServiceGroupClient interface {
// 组新增和修改
GroupAdd(ctx context.Context, in *BytesRequest, opts ...grpc.CallOption) (*CodeResult, error)
GroupModify(ctx context.Context, in *BytesRequest, opts ...grpc.CallOption) (*CodeResult, error)
GroupDelete(ctx context.Context, in *IdsRequest, opts ...grpc.CallOption) (*CodeResult, error)
GroupList(ctx context.Context, in *ListRequest, opts ...grpc.CallOption) (*ListResponse, error)
}
ServiceGroupClient is the client API for ServiceGroup service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewServiceGroupClient ¶
func NewServiceGroupClient(cc grpc.ClientConnInterface) ServiceGroupClient
type ServiceGroupServer ¶
type ServiceGroupServer interface {
// 组新增和修改
GroupAdd(context.Context, *BytesRequest) (*CodeResult, error)
GroupModify(context.Context, *BytesRequest) (*CodeResult, error)
GroupDelete(context.Context, *IdsRequest) (*CodeResult, error)
GroupList(context.Context, *ListRequest) (*ListResponse, error)
}
ServiceGroupServer is the server API for ServiceGroup service.
type ServiceMenuClient ¶
type ServiceMenuClient interface {
// 菜单新增和修改
MenuAdd(ctx context.Context, in *BytesRequest, opts ...grpc.CallOption) (*CodeResult, error)
MenuModify(ctx context.Context, in *BytesRequest, opts ...grpc.CallOption) (*CodeResult, error)
MenuDelete(ctx context.Context, in *IdsRequest, opts ...grpc.CallOption) (*CodeResult, error)
MenuList(ctx context.Context, in *ListRequest, opts ...grpc.CallOption) (*ListResponse, error)
}
ServiceMenuClient is the client API for ServiceMenu service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewServiceMenuClient ¶
func NewServiceMenuClient(cc grpc.ClientConnInterface) ServiceMenuClient
type ServiceMenuServer ¶
type ServiceMenuServer interface {
// 菜单新增和修改
MenuAdd(context.Context, *BytesRequest) (*CodeResult, error)
MenuModify(context.Context, *BytesRequest) (*CodeResult, error)
MenuDelete(context.Context, *IdsRequest) (*CodeResult, error)
MenuList(context.Context, *ListRequest) (*ListResponse, error)
}
ServiceMenuServer is the server API for ServiceMenu service.
type ServiceRoleClient ¶
type ServiceRoleClient interface {
// 角色新增和修改
RoleAdd(ctx context.Context, in *BytesRequest, opts ...grpc.CallOption) (*CodeResult, error)
RoleModify(ctx context.Context, in *BytesRequest, opts ...grpc.CallOption) (*CodeResult, error)
RoleDelete(ctx context.Context, in *IdsRequest, opts ...grpc.CallOption) (*CodeResult, error)
RoleList(ctx context.Context, in *ListRequest, opts ...grpc.CallOption) (*ListResponse, error)
}
ServiceRoleClient is the client API for ServiceRole service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewServiceRoleClient ¶
func NewServiceRoleClient(cc grpc.ClientConnInterface) ServiceRoleClient
type ServiceRoleServer ¶
type ServiceRoleServer interface {
// 角色新增和修改
RoleAdd(context.Context, *BytesRequest) (*CodeResult, error)
RoleModify(context.Context, *BytesRequest) (*CodeResult, error)
RoleDelete(context.Context, *IdsRequest) (*CodeResult, error)
RoleList(context.Context, *ListRequest) (*ListResponse, error)
}
ServiceRoleServer is the server API for ServiceRole service.
type UnimplementedServiceApiServer ¶
type UnimplementedServiceApiServer struct {
}
UnimplementedServiceApiServer can be embedded to have forward compatible implementations.
func (*UnimplementedServiceApiServer) ApiAdd ¶
func (*UnimplementedServiceApiServer) ApiAdd(context.Context, *BytesRequest) (*CodeResult, error)
func (*UnimplementedServiceApiServer) ApiDelete ¶
func (*UnimplementedServiceApiServer) ApiDelete(context.Context, *IdsRequest) (*CodeResult, error)
func (*UnimplementedServiceApiServer) ApiList ¶
func (*UnimplementedServiceApiServer) ApiList(context.Context, *ListRequest) (*ListResponse, error)
func (*UnimplementedServiceApiServer) ApiModify ¶
func (*UnimplementedServiceApiServer) ApiModify(context.Context, *BytesRequest) (*CodeResult, error)
type UnimplementedServiceAuthServer ¶
type UnimplementedServiceAuthServer struct {
}
UnimplementedServiceAuthServer can be embedded to have forward compatible implementations.
func (*UnimplementedServiceAuthServer) AuthApi ¶
func (*UnimplementedServiceAuthServer) AuthApi(context.Context, *AuthApiRequest) (*AuthApiResponse, error)
type UnimplementedServiceCabinServer ¶
type UnimplementedServiceCabinServer struct {
}
UnimplementedServiceCabinServer can be embedded to have forward compatible implementations.
func (*UnimplementedServiceCabinServer) CabinRuleAdd ¶
func (*UnimplementedServiceCabinServer) CabinRuleAdd(context.Context, *BytesRequest) (*CodeResult, error)
func (*UnimplementedServiceCabinServer) CabinRuleDelete ¶
func (*UnimplementedServiceCabinServer) CabinRuleDelete(context.Context, *BytesRequest) (*CodeResult, error)
func (*UnimplementedServiceCabinServer) CabinRuleList ¶
func (*UnimplementedServiceCabinServer) CabinRuleList(context.Context, *ListRequest) (*ListResponse, error)
func (*UnimplementedServiceCabinServer) CabinRuleModify ¶
func (*UnimplementedServiceCabinServer) CabinRuleModify(context.Context, *BytesRequest) (*CodeResult, error)
func (*UnimplementedServiceCabinServer) GetCabinById ¶
func (*UnimplementedServiceCabinServer) GetCabinById(context.Context, *WithSliderParamRequest) (*WithBytesResponse, error)
type UnimplementedServiceDomainServer ¶
type UnimplementedServiceDomainServer struct {
}
UnimplementedServiceDomainServer can be embedded to have forward compatible implementations.
func (*UnimplementedServiceDomainServer) DomainAdd ¶
func (*UnimplementedServiceDomainServer) DomainAdd(context.Context, *BytesRequest) (*CodeResult, error)
func (*UnimplementedServiceDomainServer) DomainDelete ¶
func (*UnimplementedServiceDomainServer) DomainDelete(context.Context, *IdsRequest) (*CodeResult, error)
func (*UnimplementedServiceDomainServer) DomainList ¶
func (*UnimplementedServiceDomainServer) DomainList(context.Context, *ListRequest) (*ListResponse, error)
func (*UnimplementedServiceDomainServer) DomainModify ¶
func (*UnimplementedServiceDomainServer) DomainModify(context.Context, *BytesRequest) (*CodeResult, error)
type UnimplementedServiceGroupServer ¶
type UnimplementedServiceGroupServer struct {
}
UnimplementedServiceGroupServer can be embedded to have forward compatible implementations.
func (*UnimplementedServiceGroupServer) GroupAdd ¶
func (*UnimplementedServiceGroupServer) GroupAdd(context.Context, *BytesRequest) (*CodeResult, error)
func (*UnimplementedServiceGroupServer) GroupDelete ¶
func (*UnimplementedServiceGroupServer) GroupDelete(context.Context, *IdsRequest) (*CodeResult, error)
func (*UnimplementedServiceGroupServer) GroupList ¶
func (*UnimplementedServiceGroupServer) GroupList(context.Context, *ListRequest) (*ListResponse, error)
func (*UnimplementedServiceGroupServer) GroupModify ¶
func (*UnimplementedServiceGroupServer) GroupModify(context.Context, *BytesRequest) (*CodeResult, error)
type UnimplementedServiceMenuServer ¶
type UnimplementedServiceMenuServer struct {
}
UnimplementedServiceMenuServer can be embedded to have forward compatible implementations.
func (*UnimplementedServiceMenuServer) MenuAdd ¶
func (*UnimplementedServiceMenuServer) MenuAdd(context.Context, *BytesRequest) (*CodeResult, error)
func (*UnimplementedServiceMenuServer) MenuDelete ¶
func (*UnimplementedServiceMenuServer) MenuDelete(context.Context, *IdsRequest) (*CodeResult, error)
func (*UnimplementedServiceMenuServer) MenuList ¶
func (*UnimplementedServiceMenuServer) MenuList(context.Context, *ListRequest) (*ListResponse, error)
func (*UnimplementedServiceMenuServer) MenuModify ¶
func (*UnimplementedServiceMenuServer) MenuModify(context.Context, *BytesRequest) (*CodeResult, error)
type UnimplementedServiceRoleServer ¶
type UnimplementedServiceRoleServer struct {
}
UnimplementedServiceRoleServer can be embedded to have forward compatible implementations.
func (*UnimplementedServiceRoleServer) RoleAdd ¶
func (*UnimplementedServiceRoleServer) RoleAdd(context.Context, *BytesRequest) (*CodeResult, error)
func (*UnimplementedServiceRoleServer) RoleDelete ¶
func (*UnimplementedServiceRoleServer) RoleDelete(context.Context, *IdsRequest) (*CodeResult, error)
func (*UnimplementedServiceRoleServer) RoleList ¶
func (*UnimplementedServiceRoleServer) RoleList(context.Context, *ListRequest) (*ListResponse, error)
func (*UnimplementedServiceRoleServer) RoleModify ¶
func (*UnimplementedServiceRoleServer) RoleModify(context.Context, *BytesRequest) (*CodeResult, error)
type UnimplementedUserServiceServer ¶
type UnimplementedUserServiceServer struct {
}
UnimplementedUserServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedUserServiceServer) GetUserInfo ¶
func (*UnimplementedUserServiceServer) GetUserInfo(context.Context, *GetUserInfoRequest) (*GetUserInfoResponse, error)
func (*UnimplementedUserServiceServer) Login ¶
func (*UnimplementedUserServiceServer) Login(context.Context, *WithPasswordRequest) (*LoginResponse, error)
func (*UnimplementedUserServiceServer) Logout ¶
func (*UnimplementedUserServiceServer) Logout(context.Context, *WithNothingRequest) (*CodeResult, error)
func (*UnimplementedUserServiceServer) Register ¶
func (*UnimplementedUserServiceServer) Register(context.Context, *WithPasswordRequest) (*CodeResult, error)
type UserLoginType ¶
type UserLoginType int32
const ( UserLoginType_Local UserLoginType = 0 UserLoginType_AD UserLoginType = 1 )
func (UserLoginType) Descriptor ¶
func (UserLoginType) Descriptor() protoreflect.EnumDescriptor
func (UserLoginType) Enum ¶
func (x UserLoginType) Enum() *UserLoginType
func (UserLoginType) EnumDescriptor
deprecated
func (UserLoginType) EnumDescriptor() ([]byte, []int)
Deprecated: Use UserLoginType.Descriptor instead.
func (UserLoginType) Number ¶
func (x UserLoginType) Number() protoreflect.EnumNumber
func (UserLoginType) String ¶
func (x UserLoginType) String() string
func (UserLoginType) Type ¶
func (UserLoginType) Type() protoreflect.EnumType
type UserServiceClient ¶
type UserServiceClient interface {
GetUserInfo(ctx context.Context, in *GetUserInfoRequest, opts ...grpc.CallOption) (*GetUserInfoResponse, error)
// 用户相关
Login(ctx context.Context, in *WithPasswordRequest, opts ...grpc.CallOption) (*LoginResponse, error)
Logout(ctx context.Context, in *WithNothingRequest, opts ...grpc.CallOption) (*CodeResult, error)
Register(ctx context.Context, in *WithPasswordRequest, opts ...grpc.CallOption) (*CodeResult, error)
}
UserServiceClient is the client API for UserService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewUserServiceClient ¶
func NewUserServiceClient(cc grpc.ClientConnInterface) UserServiceClient
type UserServiceServer ¶
type UserServiceServer interface {
GetUserInfo(context.Context, *GetUserInfoRequest) (*GetUserInfoResponse, error)
// 用户相关
Login(context.Context, *WithPasswordRequest) (*LoginResponse, error)
Logout(context.Context, *WithNothingRequest) (*CodeResult, error)
Register(context.Context, *WithPasswordRequest) (*CodeResult, error)
}
UserServiceServer is the server API for UserService service.
type WithBytesResponse ¶
type WithBytesResponse struct {
Result *CodeResult `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"`
Data []byte `protobuf:"bytes,2,opt,name=Data,proto3" json:"Data,omitempty"`
// contains filtered or unexported fields
}
带有id和类型的请求参数
func (*WithBytesResponse) Descriptor
deprecated
func (*WithBytesResponse) Descriptor() ([]byte, []int)
Deprecated: Use WithBytesResponse.ProtoReflect.Descriptor instead.
func (*WithBytesResponse) GetData ¶
func (x *WithBytesResponse) GetData() []byte
func (*WithBytesResponse) GetResult ¶
func (x *WithBytesResponse) GetResult() *CodeResult
func (*WithBytesResponse) ProtoMessage ¶
func (*WithBytesResponse) ProtoMessage()
func (*WithBytesResponse) ProtoReflect ¶
func (x *WithBytesResponse) ProtoReflect() protoreflect.Message
func (*WithBytesResponse) Reset ¶
func (x *WithBytesResponse) Reset()
func (*WithBytesResponse) String ¶
func (x *WithBytesResponse) String() string
type WithNothingRequest ¶
type WithNothingRequest struct {
// contains filtered or unexported fields
}
func (*WithNothingRequest) Descriptor
deprecated
func (*WithNothingRequest) Descriptor() ([]byte, []int)
Deprecated: Use WithNothingRequest.ProtoReflect.Descriptor instead.
func (*WithNothingRequest) ProtoMessage ¶
func (*WithNothingRequest) ProtoMessage()
func (*WithNothingRequest) ProtoReflect ¶
func (x *WithNothingRequest) ProtoReflect() protoreflect.Message
func (*WithNothingRequest) Reset ¶
func (x *WithNothingRequest) Reset()
func (*WithNothingRequest) String ¶
func (x *WithNothingRequest) String() string
type WithPasswordRequest ¶
type WithPasswordRequest 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"`
Type UserLoginType `protobuf:"varint,3,opt,name=type,proto3,enum=proto.UserLoginType" json:"type,omitempty"` // 用户类型
// contains filtered or unexported fields
}
func (*WithPasswordRequest) Descriptor
deprecated
func (*WithPasswordRequest) Descriptor() ([]byte, []int)
Deprecated: Use WithPasswordRequest.ProtoReflect.Descriptor instead.
func (*WithPasswordRequest) GetPassword ¶
func (x *WithPasswordRequest) GetPassword() string
func (*WithPasswordRequest) GetType ¶
func (x *WithPasswordRequest) GetType() UserLoginType
func (*WithPasswordRequest) GetUsername ¶
func (x *WithPasswordRequest) GetUsername() string
func (*WithPasswordRequest) ProtoMessage ¶
func (*WithPasswordRequest) ProtoMessage()
func (*WithPasswordRequest) ProtoReflect ¶
func (x *WithPasswordRequest) ProtoReflect() protoreflect.Message
func (*WithPasswordRequest) Reset ¶
func (x *WithPasswordRequest) Reset()
func (*WithPasswordRequest) String ¶
func (x *WithPasswordRequest) String() string
type WithSliderParamRequest ¶
type WithSliderParamRequest struct {
PType string `protobuf:"bytes,1,opt,name=pType,proto3" json:"pType,omitempty"`
FieldIndex int64 `protobuf:"varint,2,opt,name=fieldIndex,proto3" json:"fieldIndex,omitempty"`
FieldValue []string `protobuf:"bytes,3,rep,name=fieldValue,proto3" json:"fieldValue,omitempty"`
// contains filtered or unexported fields
}
带有id和类型的请求参数
func (*WithSliderParamRequest) Descriptor
deprecated
func (*WithSliderParamRequest) Descriptor() ([]byte, []int)
Deprecated: Use WithSliderParamRequest.ProtoReflect.Descriptor instead.
func (*WithSliderParamRequest) GetFieldIndex ¶
func (x *WithSliderParamRequest) GetFieldIndex() int64
func (*WithSliderParamRequest) GetFieldValue ¶
func (x *WithSliderParamRequest) GetFieldValue() []string
func (*WithSliderParamRequest) GetPType ¶
func (x *WithSliderParamRequest) GetPType() string
func (*WithSliderParamRequest) ProtoMessage ¶
func (*WithSliderParamRequest) ProtoMessage()
func (*WithSliderParamRequest) ProtoReflect ¶
func (x *WithSliderParamRequest) ProtoReflect() protoreflect.Message
func (*WithSliderParamRequest) Reset ¶
func (x *WithSliderParamRequest) Reset()
func (*WithSliderParamRequest) String ¶
func (x *WithSliderParamRequest) String() string