Documentation ¶
Index ¶
- Variables
- func RegisterUserServer(s grpc.ServiceRegistrar, srv UserServer)
- type CheckTokenReq
- func (*CheckTokenReq) Descriptor() ([]byte, []int)deprecated
- func (x *CheckTokenReq) GetIp() string
- func (x *CheckTokenReq) GetToken() string
- func (*CheckTokenReq) ProtoMessage()
- func (x *CheckTokenReq) ProtoReflect() protoreflect.Message
- func (x *CheckTokenReq) Reset()
- func (x *CheckTokenReq) String() string
- type CheckTokenResp
- func (*CheckTokenResp) Descriptor() ([]byte, []int)deprecated
- func (x *CheckTokenResp) GetToken() string
- func (x *CheckTokenResp) GetUid() int64
- func (*CheckTokenResp) ProtoMessage()
- func (x *CheckTokenResp) ProtoReflect() protoreflect.Message
- func (x *CheckTokenResp) Reset()
- func (x *CheckTokenResp) String() string
- type GetUserCoreListReq
- func (*GetUserCoreListReq) Descriptor() ([]byte, []int)deprecated
- func (x *GetUserCoreListReq) GetPage() *PageInfo
- func (*GetUserCoreListReq) ProtoMessage()
- func (x *GetUserCoreListReq) ProtoReflect() protoreflect.Message
- func (x *GetUserCoreListReq) Reset()
- func (x *GetUserCoreListReq) String() string
- type GetUserCoreListResp
- func (*GetUserCoreListResp) Descriptor() ([]byte, []int)deprecated
- func (x *GetUserCoreListResp) GetInfo() []*UserCore
- func (x *GetUserCoreListResp) GetTotal() int64
- func (*GetUserCoreListResp) ProtoMessage()
- func (x *GetUserCoreListResp) ProtoReflect() protoreflect.Message
- func (x *GetUserCoreListResp) Reset()
- func (x *GetUserCoreListResp) String() string
- type JwtToken
- func (*JwtToken) Descriptor() ([]byte, []int)deprecated
- func (x *JwtToken) GetAccessExpire() int64
- func (x *JwtToken) GetAccessToken() string
- func (x *JwtToken) GetRefreshAfter() int64
- func (*JwtToken) ProtoMessage()
- func (x *JwtToken) ProtoReflect() protoreflect.Message
- func (x *JwtToken) Reset()
- func (x *JwtToken) String() string
- type LoginReq
- func (*LoginReq) Descriptor() ([]byte, []int)deprecated
- func (x *LoginReq) GetCode() string
- func (x *LoginReq) GetCodeID() string
- func (x *LoginReq) GetLoginType() string
- func (x *LoginReq) GetPassword() string
- func (x *LoginReq) GetPwdType() int32
- func (x *LoginReq) GetUserID() string
- func (*LoginReq) ProtoMessage()
- func (x *LoginReq) ProtoReflect() protoreflect.Message
- func (x *LoginReq) Reset()
- func (x *LoginReq) String() string
- type LoginResp
- func (*LoginResp) Descriptor() ([]byte, []int)deprecated
- func (x *LoginResp) GetInfo() *UserInfo
- func (x *LoginResp) GetRole() int64
- func (x *LoginResp) GetToken() *JwtToken
- func (*LoginResp) ProtoMessage()
- func (x *LoginResp) ProtoReflect() protoreflect.Message
- func (x *LoginResp) Reset()
- func (x *LoginResp) String() string
- type PageInfo
- type Response
- type UnimplementedUserServer
- func (UnimplementedUserServer) CheckToken(context.Context, *CheckTokenReq) (*CheckTokenResp, error)
- func (UnimplementedUserServer) CoreCreate(context.Context, *UserCoreCreateReq) (*UserCoreCreateResp, error)
- func (UnimplementedUserServer) GetUserCoreList(context.Context, *GetUserCoreListReq) (*GetUserCoreListResp, error)
- func (UnimplementedUserServer) InfoCreate(context.Context, *UserInfoCreateReq) (*Response, error)
- func (UnimplementedUserServer) InfoDelete(context.Context, *UserInfoDeleteReq) (*Response, error)
- func (UnimplementedUserServer) InfoUpdate(context.Context, *UserInfoUpdateReq) (*Response, error)
- func (UnimplementedUserServer) Login(context.Context, *LoginReq) (*LoginResp, error)
- func (UnimplementedUserServer) Read(context.Context, *UserReadReq) (*UserReadResp, error)
- type UnsafeUserServer
- type UserClient
- type UserCore
- func (*UserCore) Descriptor() ([]byte, []int)deprecated
- func (x *UserCore) GetCreatedTime() int64
- func (x *UserCore) GetEmail() string
- func (x *UserCore) GetLastIP() string
- func (x *UserCore) GetPassword() string
- func (x *UserCore) GetPhone() string
- func (x *UserCore) GetRegIP() string
- func (x *UserCore) GetRole() int64
- func (x *UserCore) GetStatus() int64
- func (x *UserCore) GetUid() int64
- func (x *UserCore) GetUserName() string
- func (x *UserCore) GetWechat() string
- func (*UserCore) ProtoMessage()
- func (x *UserCore) ProtoReflect() protoreflect.Message
- func (x *UserCore) Reset()
- func (x *UserCore) String() string
- type UserCoreCreateReq
- func (*UserCoreCreateReq) Descriptor() ([]byte, []int)deprecated
- func (x *UserCoreCreateReq) GetCode() string
- func (x *UserCoreCreateReq) GetCodeID() string
- func (x *UserCoreCreateReq) GetIdentity() string
- func (x *UserCoreCreateReq) GetPassword() string
- func (x *UserCoreCreateReq) GetReqType() string
- func (x *UserCoreCreateReq) GetRole() int64
- func (*UserCoreCreateReq) ProtoMessage()
- func (x *UserCoreCreateReq) ProtoReflect() protoreflect.Message
- func (x *UserCoreCreateReq) Reset()
- func (x *UserCoreCreateReq) String() string
- type UserCoreCreateResp
- func (*UserCoreCreateResp) Descriptor() ([]byte, []int)deprecated
- func (x *UserCoreCreateResp) GetJwtToken() *JwtToken
- func (x *UserCoreCreateResp) GetUid() int64
- func (*UserCoreCreateResp) ProtoMessage()
- func (x *UserCoreCreateResp) ProtoReflect() protoreflect.Message
- func (x *UserCoreCreateResp) Reset()
- func (x *UserCoreCreateResp) String() string
- type UserInfo
- func (*UserInfo) Descriptor() ([]byte, []int)deprecated
- func (x *UserInfo) GetCity() string
- func (x *UserInfo) GetCountry() string
- func (x *UserInfo) GetCreateTime() int64
- func (x *UserInfo) GetHeadImgUrl() string
- func (x *UserInfo) GetInviterId() string
- func (x *UserInfo) GetInviterUid() int64
- func (x *UserInfo) GetLanguage() string
- func (x *UserInfo) GetNickName() string
- func (x *UserInfo) GetProvince() string
- func (x *UserInfo) GetSex() int64
- func (x *UserInfo) GetUid() int64
- func (x *UserInfo) GetUserName() string
- func (*UserInfo) ProtoMessage()
- func (x *UserInfo) ProtoReflect() protoreflect.Message
- func (x *UserInfo) Reset()
- func (x *UserInfo) String() string
- type UserInfoCreateReq
- func (*UserInfoCreateReq) Descriptor() ([]byte, []int)deprecated
- func (x *UserInfoCreateReq) GetInfo() *UserInfo
- func (x *UserInfoCreateReq) GetToken() string
- func (*UserInfoCreateReq) ProtoMessage()
- func (x *UserInfoCreateReq) ProtoReflect() protoreflect.Message
- func (x *UserInfoCreateReq) Reset()
- func (x *UserInfoCreateReq) String() string
- type UserInfoDeleteReq
- type UserInfoUpdateReq
- func (*UserInfoUpdateReq) Descriptor() ([]byte, []int)deprecated
- func (x *UserInfoUpdateReq) GetCity() string
- func (x *UserInfoUpdateReq) GetCountry() string
- func (x *UserInfoUpdateReq) GetHeadImgUrl() string
- func (x *UserInfoUpdateReq) GetInviterId() string
- func (x *UserInfoUpdateReq) GetInviterUid() int64
- func (x *UserInfoUpdateReq) GetLanguage() string
- func (x *UserInfoUpdateReq) GetNickName() string
- func (x *UserInfoUpdateReq) GetProvince() string
- func (x *UserInfoUpdateReq) GetSex() int64
- func (x *UserInfoUpdateReq) GetUid() int64
- func (x *UserInfoUpdateReq) GetUserName() string
- func (*UserInfoUpdateReq) ProtoMessage()
- func (x *UserInfoUpdateReq) ProtoReflect() protoreflect.Message
- func (x *UserInfoUpdateReq) Reset()
- func (x *UserInfoUpdateReq) String() string
- type UserReadReq
- type UserReadResp
- func (*UserReadResp) Descriptor() ([]byte, []int)deprecated
- func (x *UserReadResp) GetCity() string
- func (x *UserReadResp) GetCountry() string
- func (x *UserReadResp) GetCreateTime() int64
- func (x *UserReadResp) GetEmail() string
- func (x *UserReadResp) GetHeadImgUrl() string
- func (x *UserReadResp) GetInviterId() string
- func (x *UserReadResp) GetInviterUid() int64
- func (x *UserReadResp) GetLanguage() string
- func (x *UserReadResp) GetLastIP() string
- func (x *UserReadResp) GetNickName() string
- func (x *UserReadResp) GetPassword() string
- func (x *UserReadResp) GetPhone() string
- func (x *UserReadResp) GetProvince() string
- func (x *UserReadResp) GetRegIP() string
- func (x *UserReadResp) GetSex() int64
- func (x *UserReadResp) GetStatus() int64
- func (x *UserReadResp) GetUid() int64
- func (x *UserReadResp) GetUserName() string
- func (x *UserReadResp) GetWechat() string
- func (*UserReadResp) ProtoMessage()
- func (x *UserReadResp) ProtoReflect() protoreflect.Message
- func (x *UserReadResp) Reset()
- func (x *UserReadResp) String() string
- type UserServer
Constants ¶
This section is empty.
Variables ¶
var File_proto_sys_proto protoreflect.FileDescriptor
var User_ServiceDesc = grpc.ServiceDesc{ ServiceName: "sys.User", HandlerType: (*UserServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "coreCreate", Handler: _User_CoreCreate_Handler, }, { MethodName: "infoCreate", Handler: _User_InfoCreate_Handler, }, { MethodName: "getUserCoreList", Handler: _User_GetUserCoreList_Handler, }, { MethodName: "infoUpdate", Handler: _User_InfoUpdate_Handler, }, { MethodName: "read", Handler: _User_Read_Handler, }, { MethodName: "infoDelete", Handler: _User_InfoDelete_Handler, }, { MethodName: "login", Handler: _User_Login_Handler, }, { MethodName: "checkToken", Handler: _User_CheckToken_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "proto/sys.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 RegisterUserServer ¶
func RegisterUserServer(s grpc.ServiceRegistrar, srv UserServer)
Types ¶
type CheckTokenReq ¶
type CheckTokenReq struct { Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` Ip string `protobuf:"bytes,2,opt,name=ip,proto3" json:"ip,omitempty"` // contains filtered or unexported fields }
func (*CheckTokenReq) Descriptor
deprecated
func (*CheckTokenReq) Descriptor() ([]byte, []int)
Deprecated: Use CheckTokenReq.ProtoReflect.Descriptor instead.
func (*CheckTokenReq) GetIp ¶
func (x *CheckTokenReq) GetIp() string
func (*CheckTokenReq) GetToken ¶
func (x *CheckTokenReq) GetToken() string
func (*CheckTokenReq) ProtoMessage ¶
func (*CheckTokenReq) ProtoMessage()
func (*CheckTokenReq) ProtoReflect ¶
func (x *CheckTokenReq) ProtoReflect() protoreflect.Message
func (*CheckTokenReq) Reset ¶
func (x *CheckTokenReq) Reset()
func (*CheckTokenReq) String ¶
func (x *CheckTokenReq) String() string
type CheckTokenResp ¶
type CheckTokenResp struct { Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` //如果时间不多会更新jwt,需要判断jwt是否为“” 如果不为空,则需要更新用户的token Uid int64 `protobuf:"varint,2,opt,name=uid,proto3" json:"uid,omitempty"` // contains filtered or unexported fields }
func (*CheckTokenResp) Descriptor
deprecated
func (*CheckTokenResp) Descriptor() ([]byte, []int)
Deprecated: Use CheckTokenResp.ProtoReflect.Descriptor instead.
func (*CheckTokenResp) GetToken ¶
func (x *CheckTokenResp) GetToken() string
func (*CheckTokenResp) GetUid ¶
func (x *CheckTokenResp) GetUid() int64
func (*CheckTokenResp) ProtoMessage ¶
func (*CheckTokenResp) ProtoMessage()
func (*CheckTokenResp) ProtoReflect ¶
func (x *CheckTokenResp) ProtoReflect() protoreflect.Message
func (*CheckTokenResp) Reset ¶
func (x *CheckTokenResp) Reset()
func (*CheckTokenResp) String ¶
func (x *CheckTokenResp) String() string
type GetUserCoreListReq ¶
type GetUserCoreListReq struct { Page *PageInfo `protobuf:"bytes,1,opt,name=page,proto3" json:"page,omitempty"` //分页信息 只获取一个则不填 搜索的字段: uid:用户id userName:登录用户名 email:邮箱 phone:手机号 // contains filtered or unexported fields }
func (*GetUserCoreListReq) Descriptor
deprecated
func (*GetUserCoreListReq) Descriptor() ([]byte, []int)
Deprecated: Use GetUserCoreListReq.ProtoReflect.Descriptor instead.
func (*GetUserCoreListReq) GetPage ¶
func (x *GetUserCoreListReq) GetPage() *PageInfo
func (*GetUserCoreListReq) ProtoMessage ¶
func (*GetUserCoreListReq) ProtoMessage()
func (*GetUserCoreListReq) ProtoReflect ¶
func (x *GetUserCoreListReq) ProtoReflect() protoreflect.Message
func (*GetUserCoreListReq) Reset ¶
func (x *GetUserCoreListReq) Reset()
func (*GetUserCoreListReq) String ¶
func (x *GetUserCoreListReq) String() string
type GetUserCoreListResp ¶
type GetUserCoreListResp struct { Info []*UserCore `protobuf:"bytes,1,rep,name=info,proto3" json:"info,omitempty"` Total int64 `protobuf:"varint,2,opt,name=total,proto3" json:"total,omitempty"` // contains filtered or unexported fields }
func (*GetUserCoreListResp) Descriptor
deprecated
func (*GetUserCoreListResp) Descriptor() ([]byte, []int)
Deprecated: Use GetUserCoreListResp.ProtoReflect.Descriptor instead.
func (*GetUserCoreListResp) GetInfo ¶
func (x *GetUserCoreListResp) GetInfo() []*UserCore
func (*GetUserCoreListResp) GetTotal ¶
func (x *GetUserCoreListResp) GetTotal() int64
func (*GetUserCoreListResp) ProtoMessage ¶
func (*GetUserCoreListResp) ProtoMessage()
func (*GetUserCoreListResp) ProtoReflect ¶
func (x *GetUserCoreListResp) ProtoReflect() protoreflect.Message
func (*GetUserCoreListResp) Reset ¶
func (x *GetUserCoreListResp) Reset()
func (*GetUserCoreListResp) String ¶
func (x *GetUserCoreListResp) String() string
type JwtToken ¶
type JwtToken struct { AccessToken string `protobuf:"bytes,1,opt,name=accessToken,proto3" json:"accessToken,omitempty"` AccessExpire int64 `protobuf:"varint,2,opt,name=accessExpire,proto3" json:"accessExpire,omitempty"` RefreshAfter int64 `protobuf:"varint,3,opt,name=refreshAfter,proto3" json:"refreshAfter,omitempty"` // contains filtered or unexported fields }
func (*JwtToken) Descriptor
deprecated
func (*JwtToken) GetAccessExpire ¶
func (*JwtToken) GetAccessToken ¶
func (*JwtToken) GetRefreshAfter ¶
func (*JwtToken) ProtoMessage ¶
func (*JwtToken) ProtoMessage()
func (*JwtToken) ProtoReflect ¶
func (x *JwtToken) ProtoReflect() protoreflect.Message
type LoginReq ¶
type LoginReq struct { UserID string `protobuf:"bytes,1,opt,name=userID,proto3" json:"userID,omitempty"` //登录账号(支持用户名,手机号登录) 账号密码登录时需要填写 PwdType int32 `protobuf:"varint,2,opt,name=pwdType,proto3" json:"pwdType,omitempty"` //账号密码登录时需要填写.0,无密码 1,明文 2,md5加密 Password string `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"` //密码,建议md5转换 密码登录时需要填写 LoginType string `protobuf:"bytes,4,opt,name=loginType,proto3" json:"loginType,omitempty"` //验证类型 sms 短信验证码 img 图形验证码加账号密码登录 wxopen 微信开放平台登录 wxin 微信内登录 wxmini 微信小程序 Code string `protobuf:"bytes,5,opt,name=code,proto3" json:"code,omitempty"` //验证码 微信登录填code CodeID string `protobuf:"bytes,6,opt,name=codeID,proto3" json:"codeID,omitempty"` //验证码编号 微信登录填state // contains filtered or unexported fields }
func (*LoginReq) Descriptor
deprecated
func (*LoginReq) GetLoginType ¶
func (*LoginReq) GetPassword ¶
func (*LoginReq) GetPwdType ¶
func (*LoginReq) ProtoMessage ¶
func (*LoginReq) ProtoMessage()
func (*LoginReq) ProtoReflect ¶
func (x *LoginReq) ProtoReflect() protoreflect.Message
type LoginResp ¶
type LoginResp struct { Info *UserInfo `protobuf:"bytes,1,opt,name=info,proto3" json:"info,omitempty"` Token *JwtToken `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"` Role int64 `protobuf:"varint,3,opt,name=Role,proto3" json:"Role,omitempty"` // contains filtered or unexported fields }
func (*LoginResp) Descriptor
deprecated
func (*LoginResp) ProtoMessage ¶
func (*LoginResp) ProtoMessage()
func (*LoginResp) ProtoReflect ¶
func (x *LoginResp) ProtoReflect() protoreflect.Message
type PageInfo ¶
type PageInfo struct { Page int64 `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"` Size int64 `protobuf:"varint,2,opt,name=size,proto3" json:"size,omitempty"` // contains filtered or unexported fields }
func (*PageInfo) Descriptor
deprecated
func (*PageInfo) ProtoMessage ¶
func (*PageInfo) ProtoMessage()
func (*PageInfo) ProtoReflect ¶
func (x *PageInfo) ProtoReflect() protoreflect.Message
type Response ¶
type Response struct {
// contains filtered or unexported fields
}
func (*Response) Descriptor
deprecated
func (*Response) ProtoMessage ¶
func (*Response) ProtoMessage()
func (*Response) ProtoReflect ¶
func (x *Response) ProtoReflect() protoreflect.Message
type UnimplementedUserServer ¶
type UnimplementedUserServer struct { }
UnimplementedUserServer must be embedded to have forward compatible implementations.
func (UnimplementedUserServer) CheckToken ¶
func (UnimplementedUserServer) CheckToken(context.Context, *CheckTokenReq) (*CheckTokenResp, error)
func (UnimplementedUserServer) CoreCreate ¶
func (UnimplementedUserServer) CoreCreate(context.Context, *UserCoreCreateReq) (*UserCoreCreateResp, error)
func (UnimplementedUserServer) GetUserCoreList ¶
func (UnimplementedUserServer) GetUserCoreList(context.Context, *GetUserCoreListReq) (*GetUserCoreListResp, error)
func (UnimplementedUserServer) InfoCreate ¶
func (UnimplementedUserServer) InfoCreate(context.Context, *UserInfoCreateReq) (*Response, error)
func (UnimplementedUserServer) InfoDelete ¶
func (UnimplementedUserServer) InfoDelete(context.Context, *UserInfoDeleteReq) (*Response, error)
func (UnimplementedUserServer) InfoUpdate ¶
func (UnimplementedUserServer) InfoUpdate(context.Context, *UserInfoUpdateReq) (*Response, error)
func (UnimplementedUserServer) Read ¶
func (UnimplementedUserServer) Read(context.Context, *UserReadReq) (*UserReadResp, error)
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 { CoreCreate(ctx context.Context, in *UserCoreCreateReq, opts ...grpc.CallOption) (*UserCoreCreateResp, error) InfoCreate(ctx context.Context, in *UserInfoCreateReq, opts ...grpc.CallOption) (*Response, error) GetUserCoreList(ctx context.Context, in *GetUserCoreListReq, opts ...grpc.CallOption) (*GetUserCoreListResp, error) InfoUpdate(ctx context.Context, in *UserInfoUpdateReq, opts ...grpc.CallOption) (*Response, error) Read(ctx context.Context, in *UserReadReq, opts ...grpc.CallOption) (*UserReadResp, error) InfoDelete(ctx context.Context, in *UserInfoDeleteReq, opts ...grpc.CallOption) (*Response, error) Login(ctx context.Context, in *LoginReq, opts ...grpc.CallOption) (*LoginResp, error) CheckToken(ctx context.Context, in *CheckTokenReq, opts ...grpc.CallOption) (*CheckTokenResp, error) }
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 grpc.ClientConnInterface) UserClient
type UserCore ¶
type UserCore struct { Uid int64 `protobuf:"varint,1,opt,name=uid,proto3" json:"uid,omitempty"` UserName string `protobuf:"bytes,2,opt,name=userName,proto3" json:"userName,omitempty"` Password string `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"` // 登录密码 Email string `protobuf:"bytes,4,opt,name=email,proto3" json:"email,omitempty"` // 邮箱 Phone string `protobuf:"bytes,5,opt,name=phone,proto3" json:"phone,omitempty"` // 手机号 Wechat string `protobuf:"bytes,6,opt,name=wechat,proto3" json:"wechat,omitempty"` // 微信UnionID LastIP string `protobuf:"bytes,7,opt,name=lastIP,proto3" json:"lastIP,omitempty"` // 最后登录ip RegIP string `protobuf:"bytes,8,opt,name=regIP,proto3" json:"regIP,omitempty"` // 注册ip CreatedTime int64 `protobuf:"varint,9,opt,name=createdTime,proto3" json:"createdTime,omitempty"` //创建时间 Status int64 `protobuf:"varint,10,opt,name=status,proto3" json:"status,omitempty"` // 用户状态:0为未注册状态 Role int64 `protobuf:"varint,11,opt,name=role,proto3" json:"role,omitempty"` // contains filtered or unexported fields }
用户信息
func (*UserCore) Descriptor
deprecated
func (*UserCore) GetCreatedTime ¶
func (*UserCore) GetPassword ¶
func (*UserCore) GetUserName ¶
func (*UserCore) ProtoMessage ¶
func (*UserCore) ProtoMessage()
func (*UserCore) ProtoReflect ¶
func (x *UserCore) ProtoReflect() protoreflect.Message
type UserCoreCreateReq ¶
type UserCoreCreateReq struct { ReqType string `protobuf:"bytes,1,opt,name=reqType,proto3" json:"reqType,omitempty"` //注册方式 phone|wxopen|wxin|wxminip|password| -> phone手机号注册 wxopen 微信开放平台登录 wxin 微信内登录 wxminip 微信小程序 密码方式 password 账密方式 Identity string `protobuf:"bytes,2,opt,name=identity,proto3" json:"identity,omitempty"` //手机号注册时填写手机号 或者用户账号 Code string `protobuf:"bytes,3,opt,name=code,proto3" json:"code,omitempty"` //验证码 微信登录填code CodeID string `protobuf:"bytes,4,opt,name=codeID,proto3" json:"codeID,omitempty"` //验证码编号 微信登录填state Password string `protobuf:"bytes,5,opt,name=password,proto3" json:"password,omitempty"` //明文密码 Role int64 `protobuf:"varint,6,opt,name=role,proto3" json:"role,omitempty"` //用户角色,1- admin 2-供应商 3-user // contains filtered or unexported fields }
func (*UserCoreCreateReq) Descriptor
deprecated
func (*UserCoreCreateReq) Descriptor() ([]byte, []int)
Deprecated: Use UserCoreCreateReq.ProtoReflect.Descriptor instead.
func (*UserCoreCreateReq) GetCode ¶
func (x *UserCoreCreateReq) GetCode() string
func (*UserCoreCreateReq) GetCodeID ¶
func (x *UserCoreCreateReq) GetCodeID() string
func (*UserCoreCreateReq) GetIdentity ¶
func (x *UserCoreCreateReq) GetIdentity() string
func (*UserCoreCreateReq) GetPassword ¶
func (x *UserCoreCreateReq) GetPassword() string
func (*UserCoreCreateReq) GetReqType ¶
func (x *UserCoreCreateReq) GetReqType() string
func (*UserCoreCreateReq) GetRole ¶
func (x *UserCoreCreateReq) GetRole() int64
func (*UserCoreCreateReq) ProtoMessage ¶
func (*UserCoreCreateReq) ProtoMessage()
func (*UserCoreCreateReq) ProtoReflect ¶
func (x *UserCoreCreateReq) ProtoReflect() protoreflect.Message
func (*UserCoreCreateReq) Reset ¶
func (x *UserCoreCreateReq) Reset()
func (*UserCoreCreateReq) String ¶
func (x *UserCoreCreateReq) String() string
type UserCoreCreateResp ¶
type UserCoreCreateResp struct { Uid int64 `protobuf:"varint,1,opt,name=uid,proto3" json:"uid,omitempty"` //用户id JwtToken *JwtToken `protobuf:"bytes,2,opt,name=jwtToken,proto3" json:"jwtToken,omitempty"` // contains filtered or unexported fields }
func (*UserCoreCreateResp) Descriptor
deprecated
func (*UserCoreCreateResp) Descriptor() ([]byte, []int)
Deprecated: Use UserCoreCreateResp.ProtoReflect.Descriptor instead.
func (*UserCoreCreateResp) GetJwtToken ¶
func (x *UserCoreCreateResp) GetJwtToken() *JwtToken
func (*UserCoreCreateResp) GetUid ¶
func (x *UserCoreCreateResp) GetUid() int64
func (*UserCoreCreateResp) ProtoMessage ¶
func (*UserCoreCreateResp) ProtoMessage()
func (*UserCoreCreateResp) ProtoReflect ¶
func (x *UserCoreCreateResp) ProtoReflect() protoreflect.Message
func (*UserCoreCreateResp) Reset ¶
func (x *UserCoreCreateResp) Reset()
func (*UserCoreCreateResp) String ¶
func (x *UserCoreCreateResp) String() string
type UserInfo ¶
type UserInfo struct { Uid int64 `protobuf:"varint,1,opt,name=uid,proto3" json:"uid,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"` InviterUid int64 `protobuf:"varint,4,opt,name=inviterUid,proto3" json:"inviterUid,omitempty"` InviterId string `protobuf:"bytes,5,opt,name=inviterId,proto3" json:"inviterId,omitempty"` Sex int64 `protobuf:"varint,6,opt,name=sex,proto3" json:"sex,omitempty"` City string `protobuf:"bytes,7,opt,name=city,proto3" json:"city,omitempty"` Country string `protobuf:"bytes,8,opt,name=country,proto3" json:"country,omitempty"` Province string `protobuf:"bytes,9,opt,name=province,proto3" json:"province,omitempty"` Language string `protobuf:"bytes,10,opt,name=language,proto3" json:"language,omitempty"` HeadImgUrl string `protobuf:"bytes,11,opt,name=headImgUrl,proto3" json:"headImgUrl,omitempty"` CreateTime int64 `protobuf:"varint,12,opt,name=createTime,proto3" json:"createTime,omitempty"` // contains filtered or unexported fields }
用户属性信息
func (*UserInfo) Descriptor
deprecated
func (*UserInfo) GetCountry ¶
func (*UserInfo) GetCreateTime ¶
func (*UserInfo) GetHeadImgUrl ¶
func (*UserInfo) GetInviterId ¶
func (*UserInfo) GetInviterUid ¶
func (*UserInfo) GetLanguage ¶
func (*UserInfo) GetNickName ¶
func (*UserInfo) GetProvince ¶
func (*UserInfo) GetUserName ¶
func (*UserInfo) ProtoMessage ¶
func (*UserInfo) ProtoMessage()
func (*UserInfo) ProtoReflect ¶
func (x *UserInfo) ProtoReflect() protoreflect.Message
type UserInfoCreateReq ¶
type UserInfoCreateReq struct { Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` Info *UserInfo `protobuf:"bytes,2,opt,name=info,proto3" json:"info,omitempty"` // contains filtered or unexported fields }
func (*UserInfoCreateReq) Descriptor
deprecated
func (*UserInfoCreateReq) Descriptor() ([]byte, []int)
Deprecated: Use UserInfoCreateReq.ProtoReflect.Descriptor instead.
func (*UserInfoCreateReq) GetInfo ¶
func (x *UserInfoCreateReq) GetInfo() *UserInfo
func (*UserInfoCreateReq) GetToken ¶
func (x *UserInfoCreateReq) GetToken() string
func (*UserInfoCreateReq) ProtoMessage ¶
func (*UserInfoCreateReq) ProtoMessage()
func (*UserInfoCreateReq) ProtoReflect ¶
func (x *UserInfoCreateReq) ProtoReflect() protoreflect.Message
func (*UserInfoCreateReq) Reset ¶
func (x *UserInfoCreateReq) Reset()
func (*UserInfoCreateReq) String ¶
func (x *UserInfoCreateReq) String() string
type UserInfoDeleteReq ¶
type UserInfoDeleteReq struct { Uid int64 `protobuf:"varint,1,opt,name=uid,proto3" json:"uid,omitempty"` // contains filtered or unexported fields }
func (*UserInfoDeleteReq) Descriptor
deprecated
func (*UserInfoDeleteReq) Descriptor() ([]byte, []int)
Deprecated: Use UserInfoDeleteReq.ProtoReflect.Descriptor instead.
func (*UserInfoDeleteReq) GetUid ¶
func (x *UserInfoDeleteReq) GetUid() int64
func (*UserInfoDeleteReq) ProtoMessage ¶
func (*UserInfoDeleteReq) ProtoMessage()
func (*UserInfoDeleteReq) ProtoReflect ¶
func (x *UserInfoDeleteReq) ProtoReflect() protoreflect.Message
func (*UserInfoDeleteReq) Reset ¶
func (x *UserInfoDeleteReq) Reset()
func (*UserInfoDeleteReq) String ¶
func (x *UserInfoDeleteReq) String() string
type UserInfoUpdateReq ¶
type UserInfoUpdateReq struct { Uid int64 `protobuf:"varint,1,opt,name=uid,proto3" json:"uid,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"` InviterUid int64 `protobuf:"varint,4,opt,name=inviterUid,proto3" json:"inviterUid,omitempty"` InviterId string `protobuf:"bytes,5,opt,name=inviterId,proto3" json:"inviterId,omitempty"` Sex int64 `protobuf:"varint,6,opt,name=sex,proto3" json:"sex,omitempty"` City string `protobuf:"bytes,7,opt,name=city,proto3" json:"city,omitempty"` Country string `protobuf:"bytes,8,opt,name=country,proto3" json:"country,omitempty"` Province string `protobuf:"bytes,9,opt,name=province,proto3" json:"province,omitempty"` Language string `protobuf:"bytes,10,opt,name=language,proto3" json:"language,omitempty"` HeadImgUrl string `protobuf:"bytes,11,opt,name=headImgUrl,proto3" json:"headImgUrl,omitempty"` // contains filtered or unexported fields }
func (*UserInfoUpdateReq) Descriptor
deprecated
func (*UserInfoUpdateReq) Descriptor() ([]byte, []int)
Deprecated: Use UserInfoUpdateReq.ProtoReflect.Descriptor instead.
func (*UserInfoUpdateReq) GetCity ¶
func (x *UserInfoUpdateReq) GetCity() string
func (*UserInfoUpdateReq) GetCountry ¶
func (x *UserInfoUpdateReq) GetCountry() string
func (*UserInfoUpdateReq) GetHeadImgUrl ¶
func (x *UserInfoUpdateReq) GetHeadImgUrl() string
func (*UserInfoUpdateReq) GetInviterId ¶
func (x *UserInfoUpdateReq) GetInviterId() string
func (*UserInfoUpdateReq) GetInviterUid ¶
func (x *UserInfoUpdateReq) GetInviterUid() int64
func (*UserInfoUpdateReq) GetLanguage ¶
func (x *UserInfoUpdateReq) GetLanguage() string
func (*UserInfoUpdateReq) GetNickName ¶
func (x *UserInfoUpdateReq) GetNickName() string
func (*UserInfoUpdateReq) GetProvince ¶
func (x *UserInfoUpdateReq) GetProvince() string
func (*UserInfoUpdateReq) GetSex ¶
func (x *UserInfoUpdateReq) GetSex() int64
func (*UserInfoUpdateReq) GetUid ¶
func (x *UserInfoUpdateReq) GetUid() int64
func (*UserInfoUpdateReq) GetUserName ¶
func (x *UserInfoUpdateReq) GetUserName() string
func (*UserInfoUpdateReq) ProtoMessage ¶
func (*UserInfoUpdateReq) ProtoMessage()
func (*UserInfoUpdateReq) ProtoReflect ¶
func (x *UserInfoUpdateReq) ProtoReflect() protoreflect.Message
func (*UserInfoUpdateReq) Reset ¶
func (x *UserInfoUpdateReq) Reset()
func (*UserInfoUpdateReq) String ¶
func (x *UserInfoUpdateReq) String() string
type UserReadReq ¶
type UserReadReq struct { Uid int64 `protobuf:"varint,1,opt,name=uid,proto3" json:"uid,omitempty"` // contains filtered or unexported fields }
func (*UserReadReq) Descriptor
deprecated
func (*UserReadReq) Descriptor() ([]byte, []int)
Deprecated: Use UserReadReq.ProtoReflect.Descriptor instead.
func (*UserReadReq) GetUid ¶
func (x *UserReadReq) GetUid() int64
func (*UserReadReq) ProtoMessage ¶
func (*UserReadReq) ProtoMessage()
func (*UserReadReq) ProtoReflect ¶
func (x *UserReadReq) ProtoReflect() protoreflect.Message
func (*UserReadReq) Reset ¶
func (x *UserReadReq) Reset()
func (*UserReadReq) String ¶
func (x *UserReadReq) String() string
type UserReadResp ¶
type UserReadResp struct { Uid int64 `protobuf:"varint,1,opt,name=uid,proto3" json:"uid,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"` InviterUid int64 `protobuf:"varint,4,opt,name=inviterUid,proto3" json:"inviterUid,omitempty"` InviterId string `protobuf:"bytes,5,opt,name=inviterId,proto3" json:"inviterId,omitempty"` City string `protobuf:"bytes,6,opt,name=city,proto3" json:"city,omitempty"` Country string `protobuf:"bytes,7,opt,name=country,proto3" json:"country,omitempty"` Province string `protobuf:"bytes,8,opt,name=province,proto3" json:"province,omitempty"` Language string `protobuf:"bytes,9,opt,name=language,proto3" json:"language,omitempty"` HeadImgUrl string `protobuf:"bytes,10,opt,name=headImgUrl,proto3" json:"headImgUrl,omitempty"` CreateTime int64 `protobuf:"varint,11,opt,name=createTime,proto3" json:"createTime,omitempty"` Password string `protobuf:"bytes,12,opt,name=password,proto3" json:"password,omitempty"` // 登录密码 Email string `protobuf:"bytes,13,opt,name=email,proto3" json:"email,omitempty"` // 邮箱 Phone string `protobuf:"bytes,14,opt,name=phone,proto3" json:"phone,omitempty"` // 手机号 Wechat string `protobuf:"bytes,15,opt,name=wechat,proto3" json:"wechat,omitempty"` // 微信UnionID LastIP string `protobuf:"bytes,16,opt,name=lastIP,proto3" json:"lastIP,omitempty"` // 最后登录ip RegIP string `protobuf:"bytes,17,opt,name=regIP,proto3" json:"regIP,omitempty"` // 注册ip Status int64 `protobuf:"varint,18,opt,name=status,proto3" json:"status,omitempty"` // 用户状态:0为未注册状态 Sex int64 `protobuf:"varint,19,opt,name=sex,proto3" json:"sex,omitempty"` // contains filtered or unexported fields }
func (*UserReadResp) Descriptor
deprecated
func (*UserReadResp) Descriptor() ([]byte, []int)
Deprecated: Use UserReadResp.ProtoReflect.Descriptor instead.
func (*UserReadResp) GetCity ¶
func (x *UserReadResp) GetCity() string
func (*UserReadResp) GetCountry ¶
func (x *UserReadResp) GetCountry() string
func (*UserReadResp) GetCreateTime ¶
func (x *UserReadResp) GetCreateTime() int64
func (*UserReadResp) GetEmail ¶
func (x *UserReadResp) GetEmail() string
func (*UserReadResp) GetHeadImgUrl ¶
func (x *UserReadResp) GetHeadImgUrl() string
func (*UserReadResp) GetInviterId ¶
func (x *UserReadResp) GetInviterId() string
func (*UserReadResp) GetInviterUid ¶
func (x *UserReadResp) GetInviterUid() int64
func (*UserReadResp) GetLanguage ¶
func (x *UserReadResp) GetLanguage() string
func (*UserReadResp) GetLastIP ¶
func (x *UserReadResp) GetLastIP() string
func (*UserReadResp) GetNickName ¶
func (x *UserReadResp) GetNickName() string
func (*UserReadResp) GetPassword ¶
func (x *UserReadResp) GetPassword() string
func (*UserReadResp) GetPhone ¶
func (x *UserReadResp) GetPhone() string
func (*UserReadResp) GetProvince ¶
func (x *UserReadResp) GetProvince() string
func (*UserReadResp) GetRegIP ¶
func (x *UserReadResp) GetRegIP() string
func (*UserReadResp) GetSex ¶
func (x *UserReadResp) GetSex() int64
func (*UserReadResp) GetStatus ¶
func (x *UserReadResp) GetStatus() int64
func (*UserReadResp) GetUid ¶
func (x *UserReadResp) GetUid() int64
func (*UserReadResp) GetUserName ¶
func (x *UserReadResp) GetUserName() string
func (*UserReadResp) GetWechat ¶
func (x *UserReadResp) GetWechat() string
func (*UserReadResp) ProtoMessage ¶
func (*UserReadResp) ProtoMessage()
func (*UserReadResp) ProtoReflect ¶
func (x *UserReadResp) ProtoReflect() protoreflect.Message
func (*UserReadResp) Reset ¶
func (x *UserReadResp) Reset()
func (*UserReadResp) String ¶
func (x *UserReadResp) String() string
type UserServer ¶
type UserServer interface { CoreCreate(context.Context, *UserCoreCreateReq) (*UserCoreCreateResp, error) InfoCreate(context.Context, *UserInfoCreateReq) (*Response, error) GetUserCoreList(context.Context, *GetUserCoreListReq) (*GetUserCoreListResp, error) InfoUpdate(context.Context, *UserInfoUpdateReq) (*Response, error) Read(context.Context, *UserReadReq) (*UserReadResp, error) InfoDelete(context.Context, *UserInfoDeleteReq) (*Response, error) Login(context.Context, *LoginReq) (*LoginResp, error) CheckToken(context.Context, *CheckTokenReq) (*CheckTokenResp, error) // contains filtered or unexported methods }
UserServer is the server API for User service. All implementations must embed UnimplementedUserServer for forward compatibility