Documentation ¶
Index ¶
- Variables
- type BaseResp
- func (*BaseResp) Descriptor() ([]byte, []int)deprecated
- func (x *BaseResp) GetServiceTime() int64
- func (x *BaseResp) GetStatusCode() int64
- func (x *BaseResp) GetStatusMessage() string
- func (*BaseResp) ProtoMessage()
- func (x *BaseResp) ProtoReflect() protoreflect.Message
- func (x *BaseResp) Reset()
- func (x *BaseResp) String() string
- type CheckUserRequest
- func (*CheckUserRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CheckUserRequest) GetPassword() string
- func (x *CheckUserRequest) GetUserName() string
- func (*CheckUserRequest) ProtoMessage()
- func (x *CheckUserRequest) ProtoReflect() protoreflect.Message
- func (x *CheckUserRequest) Reset()
- func (x *CheckUserRequest) String() string
- type CheckUserResponse
- func (*CheckUserResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CheckUserResponse) GetBaseResp() *BaseResp
- func (x *CheckUserResponse) GetUserId() int64
- func (*CheckUserResponse) ProtoMessage()
- func (x *CheckUserResponse) ProtoReflect() protoreflect.Message
- func (x *CheckUserResponse) Reset()
- func (x *CheckUserResponse) String() string
- type CreateUserRequest
- func (*CreateUserRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateUserRequest) GetPassword() string
- func (x *CreateUserRequest) GetUserName() string
- func (*CreateUserRequest) ProtoMessage()
- func (x *CreateUserRequest) ProtoReflect() protoreflect.Message
- func (x *CreateUserRequest) Reset()
- func (x *CreateUserRequest) String() string
- type CreateUserResponse
- func (*CreateUserResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CreateUserResponse) GetBaseResp() *BaseResp
- func (*CreateUserResponse) ProtoMessage()
- func (x *CreateUserResponse) ProtoReflect() protoreflect.Message
- func (x *CreateUserResponse) Reset()
- func (x *CreateUserResponse) String() string
- type MGetUserRequest
- type MGetUserResponse
- func (*MGetUserResponse) Descriptor() ([]byte, []int)deprecated
- func (x *MGetUserResponse) GetBaseResp() *BaseResp
- func (x *MGetUserResponse) GetUsers() []*User
- func (*MGetUserResponse) ProtoMessage()
- func (x *MGetUserResponse) ProtoReflect() protoreflect.Message
- func (x *MGetUserResponse) Reset()
- func (x *MGetUserResponse) String() string
- type User
- type UserService
Constants ¶
This section is empty.
Variables ¶
View Source
var File_user_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type BaseResp ¶
type BaseResp struct { StatusCode int64 `protobuf:"varint,1,opt,name=status_code,json=statusCode,proto3" json:"status_code,omitempty"` StatusMessage string `protobuf:"bytes,2,opt,name=status_message,json=statusMessage,proto3" json:"status_message,omitempty"` ServiceTime int64 `protobuf:"varint,3,opt,name=service_time,json=serviceTime,proto3" json:"service_time,omitempty"` // contains filtered or unexported fields }
func (*BaseResp) Descriptor
deprecated
func (*BaseResp) GetServiceTime ¶
func (*BaseResp) GetStatusCode ¶
func (*BaseResp) GetStatusMessage ¶
func (*BaseResp) ProtoMessage ¶
func (*BaseResp) ProtoMessage()
func (*BaseResp) ProtoReflect ¶
func (x *BaseResp) ProtoReflect() protoreflect.Message
type CheckUserRequest ¶
type CheckUserRequest struct { UserName string `protobuf:"bytes,1,opt,name=user_name,json=userName,proto3" json:"user_name,omitempty"` Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` // contains filtered or unexported fields }
func (*CheckUserRequest) Descriptor
deprecated
func (*CheckUserRequest) Descriptor() ([]byte, []int)
Deprecated: Use CheckUserRequest.ProtoReflect.Descriptor instead.
func (*CheckUserRequest) GetPassword ¶
func (x *CheckUserRequest) GetPassword() string
func (*CheckUserRequest) GetUserName ¶
func (x *CheckUserRequest) GetUserName() string
func (*CheckUserRequest) ProtoMessage ¶
func (*CheckUserRequest) ProtoMessage()
func (*CheckUserRequest) ProtoReflect ¶
func (x *CheckUserRequest) ProtoReflect() protoreflect.Message
func (*CheckUserRequest) Reset ¶
func (x *CheckUserRequest) Reset()
func (*CheckUserRequest) String ¶
func (x *CheckUserRequest) String() string
type CheckUserResponse ¶
type CheckUserResponse struct { UserId int64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` BaseResp *BaseResp `protobuf:"bytes,2,opt,name=base_resp,json=baseResp,proto3" json:"base_resp,omitempty"` // contains filtered or unexported fields }
func (*CheckUserResponse) Descriptor
deprecated
func (*CheckUserResponse) Descriptor() ([]byte, []int)
Deprecated: Use CheckUserResponse.ProtoReflect.Descriptor instead.
func (*CheckUserResponse) GetBaseResp ¶
func (x *CheckUserResponse) GetBaseResp() *BaseResp
func (*CheckUserResponse) GetUserId ¶
func (x *CheckUserResponse) GetUserId() int64
func (*CheckUserResponse) ProtoMessage ¶
func (*CheckUserResponse) ProtoMessage()
func (*CheckUserResponse) ProtoReflect ¶
func (x *CheckUserResponse) ProtoReflect() protoreflect.Message
func (*CheckUserResponse) Reset ¶
func (x *CheckUserResponse) Reset()
func (*CheckUserResponse) String ¶
func (x *CheckUserResponse) String() string
type CreateUserRequest ¶
type CreateUserRequest struct { UserName string `protobuf:"bytes,1,opt,name=user_name,json=userName,proto3" json:"user_name,omitempty"` Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` // contains filtered or unexported fields }
func (*CreateUserRequest) Descriptor
deprecated
func (*CreateUserRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateUserRequest.ProtoReflect.Descriptor instead.
func (*CreateUserRequest) GetPassword ¶
func (x *CreateUserRequest) GetPassword() string
func (*CreateUserRequest) GetUserName ¶
func (x *CreateUserRequest) GetUserName() string
func (*CreateUserRequest) ProtoMessage ¶
func (*CreateUserRequest) ProtoMessage()
func (*CreateUserRequest) ProtoReflect ¶
func (x *CreateUserRequest) ProtoReflect() protoreflect.Message
func (*CreateUserRequest) Reset ¶
func (x *CreateUserRequest) Reset()
func (*CreateUserRequest) String ¶
func (x *CreateUserRequest) String() string
type CreateUserResponse ¶
type CreateUserResponse struct { BaseResp *BaseResp `protobuf:"bytes,1,opt,name=base_resp,json=baseResp,proto3" json:"base_resp,omitempty"` // contains filtered or unexported fields }
func (*CreateUserResponse) Descriptor
deprecated
func (*CreateUserResponse) Descriptor() ([]byte, []int)
Deprecated: Use CreateUserResponse.ProtoReflect.Descriptor instead.
func (*CreateUserResponse) GetBaseResp ¶
func (x *CreateUserResponse) GetBaseResp() *BaseResp
func (*CreateUserResponse) ProtoMessage ¶
func (*CreateUserResponse) ProtoMessage()
func (*CreateUserResponse) ProtoReflect ¶
func (x *CreateUserResponse) ProtoReflect() protoreflect.Message
func (*CreateUserResponse) Reset ¶
func (x *CreateUserResponse) Reset()
func (*CreateUserResponse) String ¶
func (x *CreateUserResponse) String() string
type MGetUserRequest ¶
type MGetUserRequest struct { UserIds []int64 `protobuf:"varint,1,rep,packed,name=user_ids,json=userIds,proto3" json:"user_ids,omitempty"` // contains filtered or unexported fields }
func (*MGetUserRequest) Descriptor
deprecated
func (*MGetUserRequest) Descriptor() ([]byte, []int)
Deprecated: Use MGetUserRequest.ProtoReflect.Descriptor instead.
func (*MGetUserRequest) GetUserIds ¶
func (x *MGetUserRequest) GetUserIds() []int64
func (*MGetUserRequest) ProtoMessage ¶
func (*MGetUserRequest) ProtoMessage()
func (*MGetUserRequest) ProtoReflect ¶
func (x *MGetUserRequest) ProtoReflect() protoreflect.Message
func (*MGetUserRequest) Reset ¶
func (x *MGetUserRequest) Reset()
func (*MGetUserRequest) String ¶
func (x *MGetUserRequest) String() string
type MGetUserResponse ¶
type MGetUserResponse struct { Users []*User `protobuf:"bytes,1,rep,name=users,proto3" json:"users,omitempty"` BaseResp *BaseResp `protobuf:"bytes,2,opt,name=base_resp,json=baseResp,proto3" json:"base_resp,omitempty"` // contains filtered or unexported fields }
func (*MGetUserResponse) Descriptor
deprecated
func (*MGetUserResponse) Descriptor() ([]byte, []int)
Deprecated: Use MGetUserResponse.ProtoReflect.Descriptor instead.
func (*MGetUserResponse) GetBaseResp ¶
func (x *MGetUserResponse) GetBaseResp() *BaseResp
func (*MGetUserResponse) GetUsers ¶
func (x *MGetUserResponse) GetUsers() []*User
func (*MGetUserResponse) ProtoMessage ¶
func (*MGetUserResponse) ProtoMessage()
func (*MGetUserResponse) ProtoReflect ¶
func (x *MGetUserResponse) ProtoReflect() protoreflect.Message
func (*MGetUserResponse) Reset ¶
func (x *MGetUserResponse) Reset()
func (*MGetUserResponse) String ¶
func (x *MGetUserResponse) String() string
type User ¶
type User struct { UserId int64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` UserName string `protobuf:"bytes,2,opt,name=user_name,json=userName,proto3" json:"user_name,omitempty"` Avatar string `protobuf:"bytes,3,opt,name=avatar,proto3" json:"avatar,omitempty"` // contains filtered or unexported fields }
func (*User) Descriptor
deprecated
func (*User) GetUserName ¶
func (*User) ProtoMessage ¶
func (*User) ProtoMessage()
func (*User) ProtoReflect ¶
func (x *User) ProtoReflect() protoreflect.Message
type UserService ¶
type UserService interface { CreateUser(ctx context.Context, req *CreateUserRequest) (res *CreateUserResponse, err error) MGetUser(ctx context.Context, req *MGetUserRequest) (res *MGetUserResponse, err error) CheckUser(ctx context.Context, req *CheckUserRequest) (res *CheckUserResponse, err error) }
Click to show internal directories.
Click to hide internal directories.