Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterSystemUserHTTPServer(s *http.Server, srv SystemUserHTTPServer)
- func RegisterSystemUserServer(s grpc.ServiceRegistrar, srv SystemUserServer)
- type CreateSystemUserReply
- type CreateSystemUserRequest
- func (*CreateSystemUserRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateSystemUserRequest) GetMobile() string
- func (x *CreateSystemUserRequest) GetNickname() string
- func (x *CreateSystemUserRequest) GetPassword() string
- func (x *CreateSystemUserRequest) GetUsername() string
- func (*CreateSystemUserRequest) ProtoMessage()
- func (x *CreateSystemUserRequest) ProtoReflect() protoreflect.Message
- func (x *CreateSystemUserRequest) Reset()
- func (x *CreateSystemUserRequest) String() string
- type DeleteSystemUserReply
- type DeleteSystemUserRequest
- type GetSystemUserReply
- func (*GetSystemUserReply) Descriptor() ([]byte, []int)deprecated
- func (x *GetSystemUserReply) GetId() int64
- func (x *GetSystemUserReply) GetMobile() string
- func (x *GetSystemUserReply) GetNickname() string
- func (x *GetSystemUserReply) GetPassword() string
- func (x *GetSystemUserReply) GetUsername() string
- func (*GetSystemUserReply) ProtoMessage()
- func (x *GetSystemUserReply) ProtoReflect() protoreflect.Message
- func (x *GetSystemUserReply) Reset()
- func (x *GetSystemUserReply) String() string
- type GetSystemUserRequest
- func (*GetSystemUserRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetSystemUserRequest) GetId() int64
- func (*GetSystemUserRequest) ProtoMessage()
- func (x *GetSystemUserRequest) ProtoReflect() protoreflect.Message
- func (x *GetSystemUserRequest) Reset()
- func (x *GetSystemUserRequest) String() string
- type GlobalResponse
- func (*GlobalResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GlobalResponse) GetCode() int32
- func (x *GlobalResponse) GetData() *anypb.Any
- func (x *GlobalResponse) GetMsg() string
- func (*GlobalResponse) ProtoMessage()
- func (x *GlobalResponse) ProtoReflect() protoreflect.Message
- func (x *GlobalResponse) Reset()
- func (x *GlobalResponse) String() string
- type ListSystemUserReply
- type ListSystemUserRequest
- type SystemUserClient
- type SystemUserHTTPClient
- type SystemUserHTTPClientImpl
- func (c *SystemUserHTTPClientImpl) CreateSystemUser(ctx context.Context, in *CreateSystemUserRequest, opts ...http.CallOption) (*CreateSystemUserReply, error)
- func (c *SystemUserHTTPClientImpl) GetSystemUser(ctx context.Context, in *GetSystemUserRequest, opts ...http.CallOption) (*GetSystemUserReply, error)
- type SystemUserHTTPServer
- type SystemUserServer
- type UnimplementedSystemUserServer
- func (UnimplementedSystemUserServer) CreateSystemUser(context.Context, *CreateSystemUserRequest) (*CreateSystemUserReply, error)
- func (UnimplementedSystemUserServer) DeleteSystemUser(context.Context, *DeleteSystemUserRequest) (*DeleteSystemUserReply, error)
- func (UnimplementedSystemUserServer) GetSystemUser(context.Context, *GetSystemUserRequest) (*GetSystemUserReply, error)
- func (UnimplementedSystemUserServer) ListSystemUser(context.Context, *ListSystemUserRequest) (*ListSystemUserReply, error)
- func (UnimplementedSystemUserServer) UpdateSystemUser(context.Context, *UpdateSystemUserRequest) (*UpdateSystemUserReply, error)
- type UnsafeSystemUserServer
- type UpdateSystemUserReply
- type UpdateSystemUserRequest
Constants ¶
const ( SystemUser_CreateSystemUser_FullMethodName = "/api.system.user.service.v1.SystemUser/CreateSystemUser" SystemUser_UpdateSystemUser_FullMethodName = "/api.system.user.service.v1.SystemUser/UpdateSystemUser" SystemUser_DeleteSystemUser_FullMethodName = "/api.system.user.service.v1.SystemUser/DeleteSystemUser" SystemUser_GetSystemUser_FullMethodName = "/api.system.user.service.v1.SystemUser/GetSystemUser" SystemUser_ListSystemUser_FullMethodName = "/api.system.user.service.v1.SystemUser/ListSystemUser" )
const OperationSystemUserCreateSystemUser = "/api.system.user.service.v1.SystemUser/CreateSystemUser"
const OperationSystemUserGetSystemUser = "/api.system.user.service.v1.SystemUser/GetSystemUser"
Variables ¶
var File_api_system_user_service_v1_system_user_proto protoreflect.FileDescriptor
var SystemUser_ServiceDesc = grpc.ServiceDesc{ ServiceName: "api.system.user.service.v1.SystemUser", HandlerType: (*SystemUserServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "CreateSystemUser", Handler: _SystemUser_CreateSystemUser_Handler, }, { MethodName: "UpdateSystemUser", Handler: _SystemUser_UpdateSystemUser_Handler, }, { MethodName: "DeleteSystemUser", Handler: _SystemUser_DeleteSystemUser_Handler, }, { MethodName: "GetSystemUser", Handler: _SystemUser_GetSystemUser_Handler, }, { MethodName: "ListSystemUser", Handler: _SystemUser_ListSystemUser_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "api/system/user/service/v1/system_user.proto", }
SystemUser_ServiceDesc is the grpc.ServiceDesc for SystemUser service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterSystemUserHTTPServer ¶
func RegisterSystemUserHTTPServer(s *http.Server, srv SystemUserHTTPServer)
func RegisterSystemUserServer ¶
func RegisterSystemUserServer(s grpc.ServiceRegistrar, srv SystemUserServer)
Types ¶
type CreateSystemUserReply ¶
type CreateSystemUserReply struct {
// contains filtered or unexported fields
}
func (*CreateSystemUserReply) Descriptor
deprecated
func (*CreateSystemUserReply) Descriptor() ([]byte, []int)
Deprecated: Use CreateSystemUserReply.ProtoReflect.Descriptor instead.
func (*CreateSystemUserReply) ProtoMessage ¶
func (*CreateSystemUserReply) ProtoMessage()
func (*CreateSystemUserReply) ProtoReflect ¶
func (x *CreateSystemUserReply) ProtoReflect() protoreflect.Message
func (*CreateSystemUserReply) Reset ¶
func (x *CreateSystemUserReply) Reset()
func (*CreateSystemUserReply) String ¶
func (x *CreateSystemUserReply) String() string
type CreateSystemUserRequest ¶
type CreateSystemUserRequest struct { Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"` Nickname string `protobuf:"bytes,2,opt,name=nickname,proto3" json:"nickname,omitempty"` Password string `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"` Mobile string `protobuf:"bytes,4,opt,name=mobile,proto3" json:"mobile,omitempty"` // contains filtered or unexported fields }
func (*CreateSystemUserRequest) Descriptor
deprecated
func (*CreateSystemUserRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateSystemUserRequest.ProtoReflect.Descriptor instead.
func (*CreateSystemUserRequest) GetMobile ¶
func (x *CreateSystemUserRequest) GetMobile() string
func (*CreateSystemUserRequest) GetNickname ¶
func (x *CreateSystemUserRequest) GetNickname() string
func (*CreateSystemUserRequest) GetPassword ¶
func (x *CreateSystemUserRequest) GetPassword() string
func (*CreateSystemUserRequest) GetUsername ¶
func (x *CreateSystemUserRequest) GetUsername() string
func (*CreateSystemUserRequest) ProtoMessage ¶
func (*CreateSystemUserRequest) ProtoMessage()
func (*CreateSystemUserRequest) ProtoReflect ¶
func (x *CreateSystemUserRequest) ProtoReflect() protoreflect.Message
func (*CreateSystemUserRequest) Reset ¶
func (x *CreateSystemUserRequest) Reset()
func (*CreateSystemUserRequest) String ¶
func (x *CreateSystemUserRequest) String() string
type DeleteSystemUserReply ¶
type DeleteSystemUserReply struct {
// contains filtered or unexported fields
}
func (*DeleteSystemUserReply) Descriptor
deprecated
func (*DeleteSystemUserReply) Descriptor() ([]byte, []int)
Deprecated: Use DeleteSystemUserReply.ProtoReflect.Descriptor instead.
func (*DeleteSystemUserReply) ProtoMessage ¶
func (*DeleteSystemUserReply) ProtoMessage()
func (*DeleteSystemUserReply) ProtoReflect ¶
func (x *DeleteSystemUserReply) ProtoReflect() protoreflect.Message
func (*DeleteSystemUserReply) Reset ¶
func (x *DeleteSystemUserReply) Reset()
func (*DeleteSystemUserReply) String ¶
func (x *DeleteSystemUserReply) String() string
type DeleteSystemUserRequest ¶
type DeleteSystemUserRequest struct {
// contains filtered or unexported fields
}
func (*DeleteSystemUserRequest) Descriptor
deprecated
func (*DeleteSystemUserRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteSystemUserRequest.ProtoReflect.Descriptor instead.
func (*DeleteSystemUserRequest) ProtoMessage ¶
func (*DeleteSystemUserRequest) ProtoMessage()
func (*DeleteSystemUserRequest) ProtoReflect ¶
func (x *DeleteSystemUserRequest) ProtoReflect() protoreflect.Message
func (*DeleteSystemUserRequest) Reset ¶
func (x *DeleteSystemUserRequest) Reset()
func (*DeleteSystemUserRequest) String ¶
func (x *DeleteSystemUserRequest) String() string
type GetSystemUserReply ¶
type GetSystemUserReply struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"` Nickname string `protobuf:"bytes,3,opt,name=nickname,proto3" json:"nickname,omitempty"` Password string `protobuf:"bytes,4,opt,name=password,proto3" json:"password,omitempty"` Mobile string `protobuf:"bytes,5,opt,name=mobile,proto3" json:"mobile,omitempty"` // contains filtered or unexported fields }
func (*GetSystemUserReply) Descriptor
deprecated
func (*GetSystemUserReply) Descriptor() ([]byte, []int)
Deprecated: Use GetSystemUserReply.ProtoReflect.Descriptor instead.
func (*GetSystemUserReply) GetId ¶
func (x *GetSystemUserReply) GetId() int64
func (*GetSystemUserReply) GetMobile ¶
func (x *GetSystemUserReply) GetMobile() string
func (*GetSystemUserReply) GetNickname ¶
func (x *GetSystemUserReply) GetNickname() string
func (*GetSystemUserReply) GetPassword ¶
func (x *GetSystemUserReply) GetPassword() string
func (*GetSystemUserReply) GetUsername ¶
func (x *GetSystemUserReply) GetUsername() string
func (*GetSystemUserReply) ProtoMessage ¶
func (*GetSystemUserReply) ProtoMessage()
func (*GetSystemUserReply) ProtoReflect ¶
func (x *GetSystemUserReply) ProtoReflect() protoreflect.Message
func (*GetSystemUserReply) Reset ¶
func (x *GetSystemUserReply) Reset()
func (*GetSystemUserReply) String ¶
func (x *GetSystemUserReply) String() string
type GetSystemUserRequest ¶
type GetSystemUserRequest struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*GetSystemUserRequest) Descriptor
deprecated
func (*GetSystemUserRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetSystemUserRequest.ProtoReflect.Descriptor instead.
func (*GetSystemUserRequest) GetId ¶
func (x *GetSystemUserRequest) GetId() int64
func (*GetSystemUserRequest) ProtoMessage ¶
func (*GetSystemUserRequest) ProtoMessage()
func (*GetSystemUserRequest) ProtoReflect ¶
func (x *GetSystemUserRequest) ProtoReflect() protoreflect.Message
func (*GetSystemUserRequest) Reset ¶
func (x *GetSystemUserRequest) Reset()
func (*GetSystemUserRequest) String ¶
func (x *GetSystemUserRequest) String() string
type GlobalResponse ¶
type GlobalResponse struct { Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` // 任意类型 Data *anypb.Any `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*GlobalResponse) Descriptor
deprecated
func (*GlobalResponse) Descriptor() ([]byte, []int)
Deprecated: Use GlobalResponse.ProtoReflect.Descriptor instead.
func (*GlobalResponse) GetCode ¶
func (x *GlobalResponse) GetCode() int32
func (*GlobalResponse) GetData ¶
func (x *GlobalResponse) GetData() *anypb.Any
func (*GlobalResponse) GetMsg ¶
func (x *GlobalResponse) GetMsg() string
func (*GlobalResponse) ProtoMessage ¶
func (*GlobalResponse) ProtoMessage()
func (*GlobalResponse) ProtoReflect ¶
func (x *GlobalResponse) ProtoReflect() protoreflect.Message
func (*GlobalResponse) Reset ¶
func (x *GlobalResponse) Reset()
func (*GlobalResponse) String ¶
func (x *GlobalResponse) String() string
type ListSystemUserReply ¶
type ListSystemUserReply struct {
// contains filtered or unexported fields
}
func (*ListSystemUserReply) Descriptor
deprecated
func (*ListSystemUserReply) Descriptor() ([]byte, []int)
Deprecated: Use ListSystemUserReply.ProtoReflect.Descriptor instead.
func (*ListSystemUserReply) ProtoMessage ¶
func (*ListSystemUserReply) ProtoMessage()
func (*ListSystemUserReply) ProtoReflect ¶
func (x *ListSystemUserReply) ProtoReflect() protoreflect.Message
func (*ListSystemUserReply) Reset ¶
func (x *ListSystemUserReply) Reset()
func (*ListSystemUserReply) String ¶
func (x *ListSystemUserReply) String() string
type ListSystemUserRequest ¶
type ListSystemUserRequest struct {
// contains filtered or unexported fields
}
func (*ListSystemUserRequest) Descriptor
deprecated
func (*ListSystemUserRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListSystemUserRequest.ProtoReflect.Descriptor instead.
func (*ListSystemUserRequest) ProtoMessage ¶
func (*ListSystemUserRequest) ProtoMessage()
func (*ListSystemUserRequest) ProtoReflect ¶
func (x *ListSystemUserRequest) ProtoReflect() protoreflect.Message
func (*ListSystemUserRequest) Reset ¶
func (x *ListSystemUserRequest) Reset()
func (*ListSystemUserRequest) String ¶
func (x *ListSystemUserRequest) String() string
type SystemUserClient ¶
type SystemUserClient interface { CreateSystemUser(ctx context.Context, in *CreateSystemUserRequest, opts ...grpc.CallOption) (*CreateSystemUserReply, error) UpdateSystemUser(ctx context.Context, in *UpdateSystemUserRequest, opts ...grpc.CallOption) (*UpdateSystemUserReply, error) DeleteSystemUser(ctx context.Context, in *DeleteSystemUserRequest, opts ...grpc.CallOption) (*DeleteSystemUserReply, error) GetSystemUser(ctx context.Context, in *GetSystemUserRequest, opts ...grpc.CallOption) (*GetSystemUserReply, error) ListSystemUser(ctx context.Context, in *ListSystemUserRequest, opts ...grpc.CallOption) (*ListSystemUserReply, error) }
SystemUserClient is the client API for SystemUser 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 NewSystemUserClient ¶
func NewSystemUserClient(cc grpc.ClientConnInterface) SystemUserClient
type SystemUserHTTPClient ¶
type SystemUserHTTPClient interface { CreateSystemUser(ctx context.Context, req *CreateSystemUserRequest, opts ...http.CallOption) (rsp *CreateSystemUserReply, err error) GetSystemUser(ctx context.Context, req *GetSystemUserRequest, opts ...http.CallOption) (rsp *GetSystemUserReply, err error) }
func NewSystemUserHTTPClient ¶
func NewSystemUserHTTPClient(client *http.Client) SystemUserHTTPClient
type SystemUserHTTPClientImpl ¶
type SystemUserHTTPClientImpl struct {
// contains filtered or unexported fields
}
func (*SystemUserHTTPClientImpl) CreateSystemUser ¶
func (c *SystemUserHTTPClientImpl) CreateSystemUser(ctx context.Context, in *CreateSystemUserRequest, opts ...http.CallOption) (*CreateSystemUserReply, error)
func (*SystemUserHTTPClientImpl) GetSystemUser ¶
func (c *SystemUserHTTPClientImpl) GetSystemUser(ctx context.Context, in *GetSystemUserRequest, opts ...http.CallOption) (*GetSystemUserReply, error)
type SystemUserHTTPServer ¶
type SystemUserHTTPServer interface { CreateSystemUser(context.Context, *CreateSystemUserRequest) (*CreateSystemUserReply, error) GetSystemUser(context.Context, *GetSystemUserRequest) (*GetSystemUserReply, error) }
type SystemUserServer ¶
type SystemUserServer interface { CreateSystemUser(context.Context, *CreateSystemUserRequest) (*CreateSystemUserReply, error) UpdateSystemUser(context.Context, *UpdateSystemUserRequest) (*UpdateSystemUserReply, error) DeleteSystemUser(context.Context, *DeleteSystemUserRequest) (*DeleteSystemUserReply, error) GetSystemUser(context.Context, *GetSystemUserRequest) (*GetSystemUserReply, error) ListSystemUser(context.Context, *ListSystemUserRequest) (*ListSystemUserReply, error) // contains filtered or unexported methods }
SystemUserServer is the server API for SystemUser service. All implementations must embed UnimplementedSystemUserServer for forward compatibility.
type UnimplementedSystemUserServer ¶
type UnimplementedSystemUserServer struct{}
UnimplementedSystemUserServer must be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedSystemUserServer) CreateSystemUser ¶
func (UnimplementedSystemUserServer) CreateSystemUser(context.Context, *CreateSystemUserRequest) (*CreateSystemUserReply, error)
func (UnimplementedSystemUserServer) DeleteSystemUser ¶
func (UnimplementedSystemUserServer) DeleteSystemUser(context.Context, *DeleteSystemUserRequest) (*DeleteSystemUserReply, error)
func (UnimplementedSystemUserServer) GetSystemUser ¶
func (UnimplementedSystemUserServer) GetSystemUser(context.Context, *GetSystemUserRequest) (*GetSystemUserReply, error)
func (UnimplementedSystemUserServer) ListSystemUser ¶
func (UnimplementedSystemUserServer) ListSystemUser(context.Context, *ListSystemUserRequest) (*ListSystemUserReply, error)
func (UnimplementedSystemUserServer) UpdateSystemUser ¶
func (UnimplementedSystemUserServer) UpdateSystemUser(context.Context, *UpdateSystemUserRequest) (*UpdateSystemUserReply, error)
type UnsafeSystemUserServer ¶
type UnsafeSystemUserServer interface {
// contains filtered or unexported methods
}
UnsafeSystemUserServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to SystemUserServer will result in compilation errors.
type UpdateSystemUserReply ¶
type UpdateSystemUserReply struct {
// contains filtered or unexported fields
}
func (*UpdateSystemUserReply) Descriptor
deprecated
func (*UpdateSystemUserReply) Descriptor() ([]byte, []int)
Deprecated: Use UpdateSystemUserReply.ProtoReflect.Descriptor instead.
func (*UpdateSystemUserReply) ProtoMessage ¶
func (*UpdateSystemUserReply) ProtoMessage()
func (*UpdateSystemUserReply) ProtoReflect ¶
func (x *UpdateSystemUserReply) ProtoReflect() protoreflect.Message
func (*UpdateSystemUserReply) Reset ¶
func (x *UpdateSystemUserReply) Reset()
func (*UpdateSystemUserReply) String ¶
func (x *UpdateSystemUserReply) String() string
type UpdateSystemUserRequest ¶
type UpdateSystemUserRequest struct {
// contains filtered or unexported fields
}
func (*UpdateSystemUserRequest) Descriptor
deprecated
func (*UpdateSystemUserRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateSystemUserRequest.ProtoReflect.Descriptor instead.
func (*UpdateSystemUserRequest) ProtoMessage ¶
func (*UpdateSystemUserRequest) ProtoMessage()
func (*UpdateSystemUserRequest) ProtoReflect ¶
func (x *UpdateSystemUserRequest) ProtoReflect() protoreflect.Message
func (*UpdateSystemUserRequest) Reset ¶
func (x *UpdateSystemUserRequest) Reset()
func (*UpdateSystemUserRequest) String ¶
func (x *UpdateSystemUserRequest) String() string