Documentation
¶
Index ¶
- Variables
- type UserLoginReq
- func (*UserLoginReq) Descriptor() ([]byte, []int)deprecated
- func (x *UserLoginReq) GetPassword() string
- func (x *UserLoginReq) GetUsername() string
- func (*UserLoginReq) ProtoMessage()
- func (x *UserLoginReq) ProtoReflect() protoreflect.Message
- func (x *UserLoginReq) Reset()
- func (x *UserLoginReq) String() string
- type UserLoginResp
- func (*UserLoginResp) Descriptor() ([]byte, []int)deprecated
- func (x *UserLoginResp) GetStatusCode() int32
- func (x *UserLoginResp) GetStatusMsg() string
- func (x *UserLoginResp) GetToken() string
- func (x *UserLoginResp) GetUserId() int64
- func (*UserLoginResp) ProtoMessage()
- func (x *UserLoginResp) ProtoReflect() protoreflect.Message
- func (x *UserLoginResp) Reset()
- func (x *UserLoginResp) String() string
- type UserRegisterReq
- func (*UserRegisterReq) Descriptor() ([]byte, []int)deprecated
- func (x *UserRegisterReq) GetPassword() string
- func (x *UserRegisterReq) GetUsername() string
- func (*UserRegisterReq) ProtoMessage()
- func (x *UserRegisterReq) ProtoReflect() protoreflect.Message
- func (x *UserRegisterReq) Reset()
- func (x *UserRegisterReq) String() string
- type UserRegisterResp
- func (*UserRegisterResp) Descriptor() ([]byte, []int)deprecated
- func (x *UserRegisterResp) GetStatusCode() int32
- func (x *UserRegisterResp) GetStatusMsg() string
- func (x *UserRegisterResp) GetToken() string
- func (x *UserRegisterResp) GetUserId() int64
- func (*UserRegisterResp) ProtoMessage()
- func (x *UserRegisterResp) ProtoReflect() protoreflect.Message
- func (x *UserRegisterResp) Reset()
- func (x *UserRegisterResp) String() string
- type UserReq
- type UserResp
- func (*UserResp) Descriptor() ([]byte, []int)deprecated
- func (x *UserResp) GetStatusCode() int32
- func (x *UserResp) GetStatusMsg() string
- func (x *UserResp) GetUser() *common.User
- func (*UserResp) ProtoMessage()
- func (x *UserResp) ProtoReflect() protoreflect.Message
- func (x *UserResp) Reset()
- func (x *UserResp) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var File_user_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type UserLoginReq ¶
type UserLoginReq struct { Username *string `protobuf:"bytes,1,req,name=username" json:"username,required" form:"username,required" query:"username,required"` // 登录用户名 Password *string `protobuf:"bytes,2,req,name=password" json:"password,required" form:"password,required" query:"password,required"` // 登录密码 // contains filtered or unexported fields }
func (*UserLoginReq) Descriptor
deprecated
func (*UserLoginReq) Descriptor() ([]byte, []int)
Deprecated: Use UserLoginReq.ProtoReflect.Descriptor instead.
func (*UserLoginReq) GetPassword ¶
func (x *UserLoginReq) GetPassword() string
func (*UserLoginReq) GetUsername ¶
func (x *UserLoginReq) GetUsername() string
func (*UserLoginReq) ProtoMessage ¶
func (*UserLoginReq) ProtoMessage()
func (*UserLoginReq) ProtoReflect ¶
func (x *UserLoginReq) ProtoReflect() protoreflect.Message
func (*UserLoginReq) Reset ¶
func (x *UserLoginReq) Reset()
func (*UserLoginReq) String ¶
func (x *UserLoginReq) String() string
type UserLoginResp ¶
type UserLoginResp struct { StatusCode *int32 `` // 状态码,0-成功,其他值-失败 /* 141-byte string literal not displayed */ StatusMsg *string `protobuf:"bytes,2,opt,name=status_msg,json=statusMsg" json:"status_msg,omitempty" form:"status_msg" query:"status_msg"` // 返回状态描述 UserId *int64 `protobuf:"varint,3,req,name=user_id,json=userId" json:"user_id,required" form:"user_id,required" query:"user_id,required"` // 用户id Token *string `protobuf:"bytes,4,req,name=token" json:"token,required" form:"token,required" query:"token,required"` // 用户鉴权token // contains filtered or unexported fields }
func (*UserLoginResp) Descriptor
deprecated
func (*UserLoginResp) Descriptor() ([]byte, []int)
Deprecated: Use UserLoginResp.ProtoReflect.Descriptor instead.
func (*UserLoginResp) GetStatusCode ¶
func (x *UserLoginResp) GetStatusCode() int32
func (*UserLoginResp) GetStatusMsg ¶
func (x *UserLoginResp) GetStatusMsg() string
func (*UserLoginResp) GetToken ¶
func (x *UserLoginResp) GetToken() string
func (*UserLoginResp) GetUserId ¶
func (x *UserLoginResp) GetUserId() int64
func (*UserLoginResp) ProtoMessage ¶
func (*UserLoginResp) ProtoMessage()
func (*UserLoginResp) ProtoReflect ¶
func (x *UserLoginResp) ProtoReflect() protoreflect.Message
func (*UserLoginResp) Reset ¶
func (x *UserLoginResp) Reset()
func (*UserLoginResp) String ¶
func (x *UserLoginResp) String() string
type UserRegisterReq ¶
type UserRegisterReq struct { Username *string `protobuf:"bytes,1,req,name=username" json:"username,required" form:"username,required" query:"username,required"` // 注册用户名,最长32个字符 Password *string `protobuf:"bytes,2,req,name=password" json:"password,required" form:"password,required" query:"password,required"` // 密码,最长32个字符 // contains filtered or unexported fields }
func (*UserRegisterReq) Descriptor
deprecated
func (*UserRegisterReq) Descriptor() ([]byte, []int)
Deprecated: Use UserRegisterReq.ProtoReflect.Descriptor instead.
func (*UserRegisterReq) GetPassword ¶
func (x *UserRegisterReq) GetPassword() string
func (*UserRegisterReq) GetUsername ¶
func (x *UserRegisterReq) GetUsername() string
func (*UserRegisterReq) ProtoMessage ¶
func (*UserRegisterReq) ProtoMessage()
func (*UserRegisterReq) ProtoReflect ¶
func (x *UserRegisterReq) ProtoReflect() protoreflect.Message
func (*UserRegisterReq) Reset ¶
func (x *UserRegisterReq) Reset()
func (*UserRegisterReq) String ¶
func (x *UserRegisterReq) String() string
type UserRegisterResp ¶
type UserRegisterResp struct { StatusCode *int32 `` // 状态码,0-成功,其他值-失败 /* 141-byte string literal not displayed */ StatusMsg *string `protobuf:"bytes,2,opt,name=status_msg,json=statusMsg" json:"status_msg,omitempty" form:"status_msg" query:"status_msg"` // 返回状态描述 UserId *int64 `protobuf:"varint,3,req,name=user_id,json=userId" json:"user_id,required" form:"user_id,required" query:"user_id,required"` // 用户id Token *string `protobuf:"bytes,4,req,name=token" json:"token,required" form:"token,required" query:"token,required"` // 用户鉴权token // contains filtered or unexported fields }
func (*UserRegisterResp) Descriptor
deprecated
func (*UserRegisterResp) Descriptor() ([]byte, []int)
Deprecated: Use UserRegisterResp.ProtoReflect.Descriptor instead.
func (*UserRegisterResp) GetStatusCode ¶
func (x *UserRegisterResp) GetStatusCode() int32
func (*UserRegisterResp) GetStatusMsg ¶
func (x *UserRegisterResp) GetStatusMsg() string
func (*UserRegisterResp) GetToken ¶
func (x *UserRegisterResp) GetToken() string
func (*UserRegisterResp) GetUserId ¶
func (x *UserRegisterResp) GetUserId() int64
func (*UserRegisterResp) ProtoMessage ¶
func (*UserRegisterResp) ProtoMessage()
func (*UserRegisterResp) ProtoReflect ¶
func (x *UserRegisterResp) ProtoReflect() protoreflect.Message
func (*UserRegisterResp) Reset ¶
func (x *UserRegisterResp) Reset()
func (*UserRegisterResp) String ¶
func (x *UserRegisterResp) String() string
type UserReq ¶
type UserReq struct { UserId *int64 `protobuf:"varint,1,req,name=user_id,json=userId" json:"user_id,required" form:"user_id,required" query:"user_id,required"` // 用户id Token *string `protobuf:"bytes,2,req,name=token" json:"token,required" form:"token,required" query:"token,required"` // 用户鉴权token // contains filtered or unexported fields }
func (*UserReq) Descriptor
deprecated
func (*UserReq) ProtoMessage ¶
func (*UserReq) ProtoMessage()
func (*UserReq) ProtoReflect ¶
func (x *UserReq) ProtoReflect() protoreflect.Message
type UserResp ¶
type UserResp struct { StatusCode *int32 `` // 状态码,0-成功,其他值-失败 /* 141-byte string literal not displayed */ StatusMsg *string `protobuf:"bytes,2,opt,name=status_msg,json=statusMsg" json:"status_msg,omitempty" form:"status_msg" query:"status_msg"` // 返回状态描述 User *common.User `protobuf:"bytes,3,req,name=user" json:"user,required" form:"user,required" query:"user,required"` // 用户信息 // contains filtered or unexported fields }
func (*UserResp) Descriptor
deprecated
func (*UserResp) GetStatusCode ¶
func (*UserResp) GetStatusMsg ¶
func (*UserResp) ProtoMessage ¶
func (*UserResp) ProtoMessage()
func (*UserResp) ProtoReflect ¶
func (x *UserResp) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.