user

package
v0.0.0-...-d272d5c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 6, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Sex_name = map[int32]string{
		0: "SEX_UNKNOWN",
		1: "SEX_SECRET",
		2: "SEX_BOY",
		3: "SEX_GIRL",
	}
	Sex_value = map[string]int32{
		"SEX_UNKNOWN": 0,
		"SEX_SECRET":  1,
		"SEX_BOY":     2,
		"SEX_GIRL":    3,
	}
)

Enum value maps for Sex.

View Source
var (
	FriendPassType_name = map[int32]string{
		0: "FRIEND_PASS_TYPE_UNKNOWN",
		1: "FRIEND_PASS_TYPE_PASS",
		2: "FRIEND_PASS_TYPE_VERIFY",
		3: "FRIEND_PASS_TYPE_QUESTIONS_AND_ANSWERS",
		4: "FRIEND_PASS_TYPE_REFUSE",
	}
	FriendPassType_value = map[string]int32{
		"FRIEND_PASS_TYPE_UNKNOWN":               0,
		"FRIEND_PASS_TYPE_PASS":                  1,
		"FRIEND_PASS_TYPE_VERIFY":                2,
		"FRIEND_PASS_TYPE_QUESTIONS_AND_ANSWERS": 3,
		"FRIEND_PASS_TYPE_REFUSE":                4,
	}
)

Enum value maps for FriendPassType.

View Source
var File_v1_user_user_proto protoreflect.FileDescriptor
View Source
var User_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "User",
	HandlerType: (*UserServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "CreateUser",
			Handler:    _User_CreateUser_Handler,
		},
		{
			MethodName: "UpdateIdCard",
			Handler:    _User_UpdateIdCard_Handler,
		},
		{
			MethodName: "UpdatePhone",
			Handler:    _User_UpdatePhone_Handler,
		},
		{
			MethodName: "UpdatePassword",
			Handler:    _User_UpdatePassword_Handler,
		},
		{
			MethodName: "ForgetPassword",
			Handler:    _User_ForgetPassword_Handler,
		},
		{
			MethodName: "UpdateNickname",
			Handler:    _User_UpdateNickname_Handler,
		},
		{
			MethodName: "UpdateSex",
			Handler:    _User_UpdateSex_Handler,
		},
		{
			MethodName: "UpdateAvatarUrl",
			Handler:    _User_UpdateAvatarUrl_Handler,
		},
		{
			MethodName: "UpdatePersonalSign",
			Handler:    _User_UpdatePersonalSign_Handler,
		},
		{
			MethodName: "UpdateIntroduce",
			Handler:    _User_UpdateIntroduce_Handler,
		},
		{
			MethodName: "UpdateSnapCall",
			Handler:    _User_UpdateSnapCall_Handler,
		},
		{
			MethodName: "UpdateFriendPass",
			Handler:    _User_UpdateFriendPass_Handler,
		},
		{
			MethodName: "DeleteUser",
			Handler:    _User_DeleteUser_Handler,
		},
		{
			MethodName: "InfoUserBase",
			Handler:    _User_InfoUserBase_Handler,
		},
		{
			MethodName: "InfoAccount",
			Handler:    _User_InfoAccount_Handler,
		},
		{
			MethodName: "InfoSnapCall",
			Handler:    _User_InfoSnapCall_Handler,
		},
		{
			MethodName: "InfoFriendPass",
			Handler:    _User_InfoFriendPass_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "v1/user/user.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 RegisterUserHTTPServer

func RegisterUserHTTPServer(s *http.Server, srv UserHTTPServer)

func RegisterUserServer

func RegisterUserServer(s grpc.ServiceRegistrar, srv UserServer)

Types

type CreateUserReq

type CreateUserReq struct {
	Phone     string `protobuf:"bytes,1,opt,name=phone,proto3" json:"phone,omitempty"`                          //电话号码
	Password  string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`                    //密码
	Nickname  string `protobuf:"bytes,3,opt,name=nickname,proto3" json:"nickname,omitempty"`                    //昵称
	Sex       int32  `protobuf:"varint,4,opt,name=sex,proto3" json:"sex,omitempty"`                             //性别
	AvatarUrl string `protobuf:"bytes,5,opt,name=avatar_url,json=avatarUrl,proto3" json:"avatar_url,omitempty"` //头像URL
	// contains filtered or unexported fields
}

创建用户请求参数

func (*CreateUserReq) Descriptor deprecated

func (*CreateUserReq) Descriptor() ([]byte, []int)

Deprecated: Use CreateUserReq.ProtoReflect.Descriptor instead.

func (*CreateUserReq) GetAvatarUrl

func (x *CreateUserReq) GetAvatarUrl() string

func (*CreateUserReq) GetNickname

func (x *CreateUserReq) GetNickname() string

func (*CreateUserReq) GetPassword

func (x *CreateUserReq) GetPassword() string

func (*CreateUserReq) GetPhone

func (x *CreateUserReq) GetPhone() string

func (*CreateUserReq) GetSex

func (x *CreateUserReq) GetSex() int32

func (*CreateUserReq) ProtoMessage

func (*CreateUserReq) ProtoMessage()

func (*CreateUserReq) ProtoReflect

func (x *CreateUserReq) ProtoReflect() protoreflect.Message

func (*CreateUserReq) Reset

func (x *CreateUserReq) Reset()

func (*CreateUserReq) String

func (x *CreateUserReq) String() string

type CreateUserRsp

type CreateUserRsp struct {
	// contains filtered or unexported fields
}

创建用户响应参数

func (*CreateUserRsp) Descriptor deprecated

func (*CreateUserRsp) Descriptor() ([]byte, []int)

Deprecated: Use CreateUserRsp.ProtoReflect.Descriptor instead.

func (*CreateUserRsp) ProtoMessage

func (*CreateUserRsp) ProtoMessage()

func (*CreateUserRsp) ProtoReflect

func (x *CreateUserRsp) ProtoReflect() protoreflect.Message

func (*CreateUserRsp) Reset

func (x *CreateUserRsp) Reset()

func (*CreateUserRsp) String

func (x *CreateUserRsp) String() string

type DeleteUserReq

type DeleteUserReq struct {
	Id       int64  `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`            //用户id
	Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` //密码
	// contains filtered or unexported fields
}

删除帐号请求参数

func (*DeleteUserReq) Descriptor deprecated

func (*DeleteUserReq) Descriptor() ([]byte, []int)

Deprecated: Use DeleteUserReq.ProtoReflect.Descriptor instead.

func (*DeleteUserReq) GetId

func (x *DeleteUserReq) GetId() int64

func (*DeleteUserReq) GetPassword

func (x *DeleteUserReq) GetPassword() string

func (*DeleteUserReq) ProtoMessage

func (*DeleteUserReq) ProtoMessage()

func (*DeleteUserReq) ProtoReflect

func (x *DeleteUserReq) ProtoReflect() protoreflect.Message

func (*DeleteUserReq) Reset

func (x *DeleteUserReq) Reset()

func (*DeleteUserReq) String

func (x *DeleteUserReq) String() string

type DeleteUserRsp

type DeleteUserRsp struct {
	// contains filtered or unexported fields
}

删除帐号响应参数

func (*DeleteUserRsp) Descriptor deprecated

func (*DeleteUserRsp) Descriptor() ([]byte, []int)

Deprecated: Use DeleteUserRsp.ProtoReflect.Descriptor instead.

func (*DeleteUserRsp) ProtoMessage

func (*DeleteUserRsp) ProtoMessage()

func (*DeleteUserRsp) ProtoReflect

func (x *DeleteUserRsp) ProtoReflect() protoreflect.Message

func (*DeleteUserRsp) Reset

func (x *DeleteUserRsp) Reset()

func (*DeleteUserRsp) String

func (x *DeleteUserRsp) String() string

type ForgetPasswordReq

type ForgetPasswordReq struct {
	Phone    string `protobuf:"bytes,1,opt,name=phone,proto3" json:"phone,omitempty"`       //手机号
	Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` //密码
	Code     string `protobuf:"bytes,3,opt,name=code,proto3" json:"code,omitempty"`         //验证码
	// contains filtered or unexported fields
}

忘记密码请求参数

func (*ForgetPasswordReq) Descriptor deprecated

func (*ForgetPasswordReq) Descriptor() ([]byte, []int)

Deprecated: Use ForgetPasswordReq.ProtoReflect.Descriptor instead.

func (*ForgetPasswordReq) GetCode

func (x *ForgetPasswordReq) GetCode() string

func (*ForgetPasswordReq) GetPassword

func (x *ForgetPasswordReq) GetPassword() string

func (*ForgetPasswordReq) GetPhone

func (x *ForgetPasswordReq) GetPhone() string

func (*ForgetPasswordReq) ProtoMessage

func (*ForgetPasswordReq) ProtoMessage()

func (*ForgetPasswordReq) ProtoReflect

func (x *ForgetPasswordReq) ProtoReflect() protoreflect.Message

func (*ForgetPasswordReq) Reset

func (x *ForgetPasswordReq) Reset()

func (*ForgetPasswordReq) String

func (x *ForgetPasswordReq) String() string

type ForgetPasswordRsp

type ForgetPasswordRsp struct {
	// contains filtered or unexported fields
}

忘记密码响应参数

func (*ForgetPasswordRsp) Descriptor deprecated

func (*ForgetPasswordRsp) Descriptor() ([]byte, []int)

Deprecated: Use ForgetPasswordRsp.ProtoReflect.Descriptor instead.

func (*ForgetPasswordRsp) ProtoMessage

func (*ForgetPasswordRsp) ProtoMessage()

func (*ForgetPasswordRsp) ProtoReflect

func (x *ForgetPasswordRsp) ProtoReflect() protoreflect.Message

func (*ForgetPasswordRsp) Reset

func (x *ForgetPasswordRsp) Reset()

func (*ForgetPasswordRsp) String

func (x *ForgetPasswordRsp) String() string

type FriendPassType

type FriendPassType int32

添加好友方式

const (
	FriendPassType_FRIEND_PASS_TYPE_UNKNOWN               FriendPassType = 0 //未知
	FriendPassType_FRIEND_PASS_TYPE_PASS                  FriendPassType = 1 //直接通过
	FriendPassType_FRIEND_PASS_TYPE_VERIFY                FriendPassType = 2 //需要验证
	FriendPassType_FRIEND_PASS_TYPE_QUESTIONS_AND_ANSWERS FriendPassType = 3 //问题答案验证
	FriendPassType_FRIEND_PASS_TYPE_REFUSE                FriendPassType = 4 //拒绝加好友
)

func (FriendPassType) Descriptor

func (FriendPassType) Enum

func (x FriendPassType) Enum() *FriendPassType

func (FriendPassType) EnumDescriptor deprecated

func (FriendPassType) EnumDescriptor() ([]byte, []int)

Deprecated: Use FriendPassType.Descriptor instead.

func (FriendPassType) Number

func (FriendPassType) String

func (x FriendPassType) String() string

func (FriendPassType) Type

type InfoAccountReq

type InfoAccountReq struct {
	Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` //用户id
	// contains filtered or unexported fields
}

查询用户帐号信息请求参数

func (*InfoAccountReq) Descriptor deprecated

func (*InfoAccountReq) Descriptor() ([]byte, []int)

Deprecated: Use InfoAccountReq.ProtoReflect.Descriptor instead.

func (*InfoAccountReq) GetId

func (x *InfoAccountReq) GetId() int64

func (*InfoAccountReq) ProtoMessage

func (*InfoAccountReq) ProtoMessage()

func (*InfoAccountReq) ProtoReflect

func (x *InfoAccountReq) ProtoReflect() protoreflect.Message

func (*InfoAccountReq) Reset

func (x *InfoAccountReq) Reset()

func (*InfoAccountReq) String

func (x *InfoAccountReq) String() string

type InfoAccountRsp

type InfoAccountRsp struct {
	Phone  string `protobuf:"bytes,1,opt,name=phone,proto3" json:"phone,omitempty"`                 //手机号
	Name   string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`                   //姓名
	IdCard string `protobuf:"bytes,3,opt,name=id_card,json=idCard,proto3" json:"id_card,omitempty"` //身份证号码
	// contains filtered or unexported fields
}

查询用户帐号信息响应参数

func (*InfoAccountRsp) Descriptor deprecated

func (*InfoAccountRsp) Descriptor() ([]byte, []int)

Deprecated: Use InfoAccountRsp.ProtoReflect.Descriptor instead.

func (*InfoAccountRsp) GetIdCard

func (x *InfoAccountRsp) GetIdCard() string

func (*InfoAccountRsp) GetName

func (x *InfoAccountRsp) GetName() string

func (*InfoAccountRsp) GetPhone

func (x *InfoAccountRsp) GetPhone() string

func (*InfoAccountRsp) ProtoMessage

func (*InfoAccountRsp) ProtoMessage()

func (*InfoAccountRsp) ProtoReflect

func (x *InfoAccountRsp) ProtoReflect() protoreflect.Message

func (*InfoAccountRsp) Reset

func (x *InfoAccountRsp) Reset()

func (*InfoAccountRsp) String

func (x *InfoAccountRsp) String() string

type InfoFriendPassReq

type InfoFriendPassReq struct {
	Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` //用户id
	// contains filtered or unexported fields
}

查询用户添加好友方式请求参数

func (*InfoFriendPassReq) Descriptor deprecated

func (*InfoFriendPassReq) Descriptor() ([]byte, []int)

Deprecated: Use InfoFriendPassReq.ProtoReflect.Descriptor instead.

func (*InfoFriendPassReq) GetId

func (x *InfoFriendPassReq) GetId() int64

func (*InfoFriendPassReq) ProtoMessage

func (*InfoFriendPassReq) ProtoMessage()

func (*InfoFriendPassReq) ProtoReflect

func (x *InfoFriendPassReq) ProtoReflect() protoreflect.Message

func (*InfoFriendPassReq) Reset

func (x *InfoFriendPassReq) Reset()

func (*InfoFriendPassReq) String

func (x *InfoFriendPassReq) String() string

type InfoFriendPassRsp

type InfoFriendPassRsp struct {
	FriendPassType    int32  `protobuf:"varint,1,opt,name=friend_pass_type,json=friendPassType,proto3" json:"friend_pass_type,omitempty"`         //添加好友方式
	FriendPassProblem string `protobuf:"bytes,2,opt,name=friend_pass_problem,json=friendPassProblem,proto3" json:"friend_pass_problem,omitempty"` //通过问题添加好友的问题
	FriendPassAnswer  string `protobuf:"bytes,3,opt,name=friend_pass_answer,json=friendPassAnswer,proto3" json:"friend_pass_answer,omitempty"`    //通过问题添加好友的答案
	// contains filtered or unexported fields
}

查询用户添加好友方式响应参数

func (*InfoFriendPassRsp) Descriptor deprecated

func (*InfoFriendPassRsp) Descriptor() ([]byte, []int)

Deprecated: Use InfoFriendPassRsp.ProtoReflect.Descriptor instead.

func (*InfoFriendPassRsp) GetFriendPassAnswer

func (x *InfoFriendPassRsp) GetFriendPassAnswer() string

func (*InfoFriendPassRsp) GetFriendPassProblem

func (x *InfoFriendPassRsp) GetFriendPassProblem() string

func (*InfoFriendPassRsp) GetFriendPassType

func (x *InfoFriendPassRsp) GetFriendPassType() int32

func (*InfoFriendPassRsp) ProtoMessage

func (*InfoFriendPassRsp) ProtoMessage()

func (*InfoFriendPassRsp) ProtoReflect

func (x *InfoFriendPassRsp) ProtoReflect() protoreflect.Message

func (*InfoFriendPassRsp) Reset

func (x *InfoFriendPassRsp) Reset()

func (*InfoFriendPassRsp) String

func (x *InfoFriendPassRsp) String() string

type InfoSnapCallReq

type InfoSnapCallReq struct {
	Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` //用户id
	// contains filtered or unexported fields
}

查询用户是否允许临时会话请求参数

func (*InfoSnapCallReq) Descriptor deprecated

func (*InfoSnapCallReq) Descriptor() ([]byte, []int)

Deprecated: Use InfoSnapCallReq.ProtoReflect.Descriptor instead.

func (*InfoSnapCallReq) GetId

func (x *InfoSnapCallReq) GetId() int64

func (*InfoSnapCallReq) ProtoMessage

func (*InfoSnapCallReq) ProtoMessage()

func (*InfoSnapCallReq) ProtoReflect

func (x *InfoSnapCallReq) ProtoReflect() protoreflect.Message

func (*InfoSnapCallReq) Reset

func (x *InfoSnapCallReq) Reset()

func (*InfoSnapCallReq) String

func (x *InfoSnapCallReq) String() string

type InfoSnapCallRsp

type InfoSnapCallRsp struct {
	SnapCall bool `protobuf:"varint,1,opt,name=snap_call,json=snapCall,proto3" json:"snap_call,omitempty"` //是否允许临时会话
	// contains filtered or unexported fields
}

查询用户是否允许临时会话响应参数

func (*InfoSnapCallRsp) Descriptor deprecated

func (*InfoSnapCallRsp) Descriptor() ([]byte, []int)

Deprecated: Use InfoSnapCallRsp.ProtoReflect.Descriptor instead.

func (*InfoSnapCallRsp) GetSnapCall

func (x *InfoSnapCallRsp) GetSnapCall() bool

func (*InfoSnapCallRsp) ProtoMessage

func (*InfoSnapCallRsp) ProtoMessage()

func (*InfoSnapCallRsp) ProtoReflect

func (x *InfoSnapCallRsp) ProtoReflect() protoreflect.Message

func (*InfoSnapCallRsp) Reset

func (x *InfoSnapCallRsp) Reset()

func (*InfoSnapCallRsp) String

func (x *InfoSnapCallRsp) String() string

type InfoUserBaseReq

type InfoUserBaseReq struct {
	Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` //用户id
	// contains filtered or unexported fields
}

查询用户基本信息请求参数

func (*InfoUserBaseReq) Descriptor deprecated

func (*InfoUserBaseReq) Descriptor() ([]byte, []int)

Deprecated: Use InfoUserBaseReq.ProtoReflect.Descriptor instead.

func (*InfoUserBaseReq) GetId

func (x *InfoUserBaseReq) GetId() int64

func (*InfoUserBaseReq) ProtoMessage

func (*InfoUserBaseReq) ProtoMessage()

func (*InfoUserBaseReq) ProtoReflect

func (x *InfoUserBaseReq) ProtoReflect() protoreflect.Message

func (*InfoUserBaseReq) Reset

func (x *InfoUserBaseReq) Reset()

func (*InfoUserBaseReq) String

func (x *InfoUserBaseReq) String() string

type InfoUserBaseRsp

type InfoUserBaseRsp struct {
	Number       string `protobuf:"bytes,1,opt,name=number,proto3" json:"number,omitempty"`                                 //用户号
	Nickname     string `protobuf:"bytes,2,opt,name=nickname,proto3" json:"nickname,omitempty"`                             //昵称
	Sex          int32  `protobuf:"varint,3,opt,name=sex,proto3" json:"sex,omitempty"`                                      //性别
	AvatarUrl    string `protobuf:"bytes,4,opt,name=avatar_url,json=avatarUrl,proto3" json:"avatar_url,omitempty"`          //头像地址
	PersonalSign string `protobuf:"bytes,5,opt,name=personal_sign,json=personalSign,proto3" json:"personal_sign,omitempty"` //个性签名
	Introduce    string `protobuf:"bytes,6,opt,name=introduce,proto3" json:"introduce,omitempty"`                           //自我介绍
	// contains filtered or unexported fields
}

查询用户基本信息响应参数

func (*InfoUserBaseRsp) Descriptor deprecated

func (*InfoUserBaseRsp) Descriptor() ([]byte, []int)

Deprecated: Use InfoUserBaseRsp.ProtoReflect.Descriptor instead.

func (*InfoUserBaseRsp) GetAvatarUrl

func (x *InfoUserBaseRsp) GetAvatarUrl() string

func (*InfoUserBaseRsp) GetIntroduce

func (x *InfoUserBaseRsp) GetIntroduce() string

func (*InfoUserBaseRsp) GetNickname

func (x *InfoUserBaseRsp) GetNickname() string

func (*InfoUserBaseRsp) GetNumber

func (x *InfoUserBaseRsp) GetNumber() string

func (*InfoUserBaseRsp) GetPersonalSign

func (x *InfoUserBaseRsp) GetPersonalSign() string

func (*InfoUserBaseRsp) GetSex

func (x *InfoUserBaseRsp) GetSex() int32

func (*InfoUserBaseRsp) ProtoMessage

func (*InfoUserBaseRsp) ProtoMessage()

func (*InfoUserBaseRsp) ProtoReflect

func (x *InfoUserBaseRsp) ProtoReflect() protoreflect.Message

func (*InfoUserBaseRsp) Reset

func (x *InfoUserBaseRsp) Reset()

func (*InfoUserBaseRsp) String

func (x *InfoUserBaseRsp) String() string

type Sex

type Sex int32

性别枚举

const (
	Sex_SEX_UNKNOWN Sex = 0 //未知
	Sex_SEX_SECRET  Sex = 1 //保密
	Sex_SEX_BOY     Sex = 2 //男
	Sex_SEX_GIRL    Sex = 3 //女
)

func (Sex) Descriptor

func (Sex) Descriptor() protoreflect.EnumDescriptor

func (Sex) Enum

func (x Sex) Enum() *Sex

func (Sex) EnumDescriptor deprecated

func (Sex) EnumDescriptor() ([]byte, []int)

Deprecated: Use Sex.Descriptor instead.

func (Sex) Number

func (x Sex) Number() protoreflect.EnumNumber

func (Sex) String

func (x Sex) String() string

func (Sex) Type

func (Sex) Type() protoreflect.EnumType

type UnimplementedUserServer

type UnimplementedUserServer struct {
}

UnimplementedUserServer must be embedded to have forward compatible implementations.

func (UnimplementedUserServer) CreateUser

func (UnimplementedUserServer) DeleteUser

func (UnimplementedUserServer) ForgetPassword

func (UnimplementedUserServer) InfoAccount

func (UnimplementedUserServer) InfoFriendPass

func (UnimplementedUserServer) InfoSnapCall

func (UnimplementedUserServer) InfoUserBase

func (UnimplementedUserServer) UpdateAvatarUrl

func (UnimplementedUserServer) UpdateFriendPass

func (UnimplementedUserServer) UpdateIdCard

func (UnimplementedUserServer) UpdateIntroduce

func (UnimplementedUserServer) UpdateNickname

func (UnimplementedUserServer) UpdatePassword

func (UnimplementedUserServer) UpdatePersonalSign

func (UnimplementedUserServer) UpdatePhone

func (UnimplementedUserServer) UpdateSex

func (UnimplementedUserServer) UpdateSnapCall

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 UpdateAvatarUrlReq

type UpdateAvatarUrlReq struct {
	Id        int64  `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`                               //用户id
	AvatarUrl string `protobuf:"bytes,2,opt,name=avatar_url,json=avatarUrl,proto3" json:"avatar_url,omitempty"` //头像URL
	// contains filtered or unexported fields
}

修改头像请求参数

func (*UpdateAvatarUrlReq) Descriptor deprecated

func (*UpdateAvatarUrlReq) Descriptor() ([]byte, []int)

Deprecated: Use UpdateAvatarUrlReq.ProtoReflect.Descriptor instead.

func (*UpdateAvatarUrlReq) GetAvatarUrl

func (x *UpdateAvatarUrlReq) GetAvatarUrl() string

func (*UpdateAvatarUrlReq) GetId

func (x *UpdateAvatarUrlReq) GetId() int64

func (*UpdateAvatarUrlReq) ProtoMessage

func (*UpdateAvatarUrlReq) ProtoMessage()

func (*UpdateAvatarUrlReq) ProtoReflect

func (x *UpdateAvatarUrlReq) ProtoReflect() protoreflect.Message

func (*UpdateAvatarUrlReq) Reset

func (x *UpdateAvatarUrlReq) Reset()

func (*UpdateAvatarUrlReq) String

func (x *UpdateAvatarUrlReq) String() string

type UpdateAvatarUrlRsp

type UpdateAvatarUrlRsp struct {
	// contains filtered or unexported fields
}

修改头像响应参数

func (*UpdateAvatarUrlRsp) Descriptor deprecated

func (*UpdateAvatarUrlRsp) Descriptor() ([]byte, []int)

Deprecated: Use UpdateAvatarUrlRsp.ProtoReflect.Descriptor instead.

func (*UpdateAvatarUrlRsp) ProtoMessage

func (*UpdateAvatarUrlRsp) ProtoMessage()

func (*UpdateAvatarUrlRsp) ProtoReflect

func (x *UpdateAvatarUrlRsp) ProtoReflect() protoreflect.Message

func (*UpdateAvatarUrlRsp) Reset

func (x *UpdateAvatarUrlRsp) Reset()

func (*UpdateAvatarUrlRsp) String

func (x *UpdateAvatarUrlRsp) String() string

type UpdateFriendPassReq

type UpdateFriendPassReq struct {
	Id                int64  `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`                                                         //用户id
	AddFriendType     int32  `protobuf:"varint,2,opt,name=add_friend_type,json=addFriendType,proto3" json:"add_friend_type,omitempty"`            //添加好友方式
	FriendPassProblem string `protobuf:"bytes,3,opt,name=friend_pass_problem,json=friendPassProblem,proto3" json:"friend_pass_problem,omitempty"` //通过问题添加好友的问题
	FriendPassAnswer  string `protobuf:"bytes,4,opt,name=friend_pass_answer,json=friendPassAnswer,proto3" json:"friend_pass_answer,omitempty"`    //通过问题添加好友的答案
	// contains filtered or unexported fields
}

修改添加好友方式请求参数

func (*UpdateFriendPassReq) Descriptor deprecated

func (*UpdateFriendPassReq) Descriptor() ([]byte, []int)

Deprecated: Use UpdateFriendPassReq.ProtoReflect.Descriptor instead.

func (*UpdateFriendPassReq) GetAddFriendType

func (x *UpdateFriendPassReq) GetAddFriendType() int32

func (*UpdateFriendPassReq) GetFriendPassAnswer

func (x *UpdateFriendPassReq) GetFriendPassAnswer() string

func (*UpdateFriendPassReq) GetFriendPassProblem

func (x *UpdateFriendPassReq) GetFriendPassProblem() string

func (*UpdateFriendPassReq) GetId

func (x *UpdateFriendPassReq) GetId() int64

func (*UpdateFriendPassReq) ProtoMessage

func (*UpdateFriendPassReq) ProtoMessage()

func (*UpdateFriendPassReq) ProtoReflect

func (x *UpdateFriendPassReq) ProtoReflect() protoreflect.Message

func (*UpdateFriendPassReq) Reset

func (x *UpdateFriendPassReq) Reset()

func (*UpdateFriendPassReq) String

func (x *UpdateFriendPassReq) String() string

type UpdateFriendPassRsp

type UpdateFriendPassRsp struct {
	// contains filtered or unexported fields
}

修改添加好友方式响应参数

func (*UpdateFriendPassRsp) Descriptor deprecated

func (*UpdateFriendPassRsp) Descriptor() ([]byte, []int)

Deprecated: Use UpdateFriendPassRsp.ProtoReflect.Descriptor instead.

func (*UpdateFriendPassRsp) ProtoMessage

func (*UpdateFriendPassRsp) ProtoMessage()

func (*UpdateFriendPassRsp) ProtoReflect

func (x *UpdateFriendPassRsp) ProtoReflect() protoreflect.Message

func (*UpdateFriendPassRsp) Reset

func (x *UpdateFriendPassRsp) Reset()

func (*UpdateFriendPassRsp) String

func (x *UpdateFriendPassRsp) String() string

type UpdateIdCardReq

type UpdateIdCardReq struct {
	Id     int64  `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`                      //用户id
	Name   string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`                   //姓名
	IdCard string `protobuf:"bytes,3,opt,name=id_card,json=idCard,proto3" json:"id_card,omitempty"` //身份证号
	// contains filtered or unexported fields
}

修改身份信息请求参数

func (*UpdateIdCardReq) Descriptor deprecated

func (*UpdateIdCardReq) Descriptor() ([]byte, []int)

Deprecated: Use UpdateIdCardReq.ProtoReflect.Descriptor instead.

func (*UpdateIdCardReq) GetId

func (x *UpdateIdCardReq) GetId() int64

func (*UpdateIdCardReq) GetIdCard

func (x *UpdateIdCardReq) GetIdCard() string

func (*UpdateIdCardReq) GetName

func (x *UpdateIdCardReq) GetName() string

func (*UpdateIdCardReq) ProtoMessage

func (*UpdateIdCardReq) ProtoMessage()

func (*UpdateIdCardReq) ProtoReflect

func (x *UpdateIdCardReq) ProtoReflect() protoreflect.Message

func (*UpdateIdCardReq) Reset

func (x *UpdateIdCardReq) Reset()

func (*UpdateIdCardReq) String

func (x *UpdateIdCardReq) String() string

type UpdateIdCardRsp

type UpdateIdCardRsp struct {
	// contains filtered or unexported fields
}

修改身份信息响应参数

func (*UpdateIdCardRsp) Descriptor deprecated

func (*UpdateIdCardRsp) Descriptor() ([]byte, []int)

Deprecated: Use UpdateIdCardRsp.ProtoReflect.Descriptor instead.

func (*UpdateIdCardRsp) ProtoMessage

func (*UpdateIdCardRsp) ProtoMessage()

func (*UpdateIdCardRsp) ProtoReflect

func (x *UpdateIdCardRsp) ProtoReflect() protoreflect.Message

func (*UpdateIdCardRsp) Reset

func (x *UpdateIdCardRsp) Reset()

func (*UpdateIdCardRsp) String

func (x *UpdateIdCardRsp) String() string

type UpdateIntroduceReq

type UpdateIntroduceReq struct {
	Id        int64  `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`              //用户id
	Introduce string `protobuf:"bytes,2,opt,name=introduce,proto3" json:"introduce,omitempty"` //自我介绍
	// contains filtered or unexported fields
}

修改自我介绍请求参数

func (*UpdateIntroduceReq) Descriptor deprecated

func (*UpdateIntroduceReq) Descriptor() ([]byte, []int)

Deprecated: Use UpdateIntroduceReq.ProtoReflect.Descriptor instead.

func (*UpdateIntroduceReq) GetId

func (x *UpdateIntroduceReq) GetId() int64

func (*UpdateIntroduceReq) GetIntroduce

func (x *UpdateIntroduceReq) GetIntroduce() string

func (*UpdateIntroduceReq) ProtoMessage

func (*UpdateIntroduceReq) ProtoMessage()

func (*UpdateIntroduceReq) ProtoReflect

func (x *UpdateIntroduceReq) ProtoReflect() protoreflect.Message

func (*UpdateIntroduceReq) Reset

func (x *UpdateIntroduceReq) Reset()

func (*UpdateIntroduceReq) String

func (x *UpdateIntroduceReq) String() string

type UpdateIntroduceRsp

type UpdateIntroduceRsp struct {
	// contains filtered or unexported fields
}

修改自我介绍响应参数

func (*UpdateIntroduceRsp) Descriptor deprecated

func (*UpdateIntroduceRsp) Descriptor() ([]byte, []int)

Deprecated: Use UpdateIntroduceRsp.ProtoReflect.Descriptor instead.

func (*UpdateIntroduceRsp) ProtoMessage

func (*UpdateIntroduceRsp) ProtoMessage()

func (*UpdateIntroduceRsp) ProtoReflect

func (x *UpdateIntroduceRsp) ProtoReflect() protoreflect.Message

func (*UpdateIntroduceRsp) Reset

func (x *UpdateIntroduceRsp) Reset()

func (*UpdateIntroduceRsp) String

func (x *UpdateIntroduceRsp) String() string

type UpdateNicknameReq

type UpdateNicknameReq struct {
	Id       int64  `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`            //用户id
	Nickname string `protobuf:"bytes,2,opt,name=nickname,proto3" json:"nickname,omitempty"` //昵称
	// contains filtered or unexported fields
}

修改昵称请求参数

func (*UpdateNicknameReq) Descriptor deprecated

func (*UpdateNicknameReq) Descriptor() ([]byte, []int)

Deprecated: Use UpdateNicknameReq.ProtoReflect.Descriptor instead.

func (*UpdateNicknameReq) GetId

func (x *UpdateNicknameReq) GetId() int64

func (*UpdateNicknameReq) GetNickname

func (x *UpdateNicknameReq) GetNickname() string

func (*UpdateNicknameReq) ProtoMessage

func (*UpdateNicknameReq) ProtoMessage()

func (*UpdateNicknameReq) ProtoReflect

func (x *UpdateNicknameReq) ProtoReflect() protoreflect.Message

func (*UpdateNicknameReq) Reset

func (x *UpdateNicknameReq) Reset()

func (*UpdateNicknameReq) String

func (x *UpdateNicknameReq) String() string

type UpdateNicknameRsp

type UpdateNicknameRsp struct {
	// contains filtered or unexported fields
}

修改昵称响应参数

func (*UpdateNicknameRsp) Descriptor deprecated

func (*UpdateNicknameRsp) Descriptor() ([]byte, []int)

Deprecated: Use UpdateNicknameRsp.ProtoReflect.Descriptor instead.

func (*UpdateNicknameRsp) ProtoMessage

func (*UpdateNicknameRsp) ProtoMessage()

func (*UpdateNicknameRsp) ProtoReflect

func (x *UpdateNicknameRsp) ProtoReflect() protoreflect.Message

func (*UpdateNicknameRsp) Reset

func (x *UpdateNicknameRsp) Reset()

func (*UpdateNicknameRsp) String

func (x *UpdateNicknameRsp) String() string

type UpdatePasswordReq

type UpdatePasswordReq struct {
	Id          int64  `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`                                     //用户id
	OldPassword string `protobuf:"bytes,2,opt,name=old_password,json=oldPassword,proto3" json:"old_password,omitempty"` //旧密码
	NewPassword string `protobuf:"bytes,3,opt,name=new_password,json=newPassword,proto3" json:"new_password,omitempty"` //新密码
	// contains filtered or unexported fields
}

修改密码请求参数

func (*UpdatePasswordReq) Descriptor deprecated

func (*UpdatePasswordReq) Descriptor() ([]byte, []int)

Deprecated: Use UpdatePasswordReq.ProtoReflect.Descriptor instead.

func (*UpdatePasswordReq) GetId

func (x *UpdatePasswordReq) GetId() int64

func (*UpdatePasswordReq) GetNewPassword

func (x *UpdatePasswordReq) GetNewPassword() string

func (*UpdatePasswordReq) GetOldPassword

func (x *UpdatePasswordReq) GetOldPassword() string

func (*UpdatePasswordReq) ProtoMessage

func (*UpdatePasswordReq) ProtoMessage()

func (*UpdatePasswordReq) ProtoReflect

func (x *UpdatePasswordReq) ProtoReflect() protoreflect.Message

func (*UpdatePasswordReq) Reset

func (x *UpdatePasswordReq) Reset()

func (*UpdatePasswordReq) String

func (x *UpdatePasswordReq) String() string

type UpdatePasswordRsp

type UpdatePasswordRsp struct {
	// contains filtered or unexported fields
}

修改密码响应参数

func (*UpdatePasswordRsp) Descriptor deprecated

func (*UpdatePasswordRsp) Descriptor() ([]byte, []int)

Deprecated: Use UpdatePasswordRsp.ProtoReflect.Descriptor instead.

func (*UpdatePasswordRsp) ProtoMessage

func (*UpdatePasswordRsp) ProtoMessage()

func (*UpdatePasswordRsp) ProtoReflect

func (x *UpdatePasswordRsp) ProtoReflect() protoreflect.Message

func (*UpdatePasswordRsp) Reset

func (x *UpdatePasswordRsp) Reset()

func (*UpdatePasswordRsp) String

func (x *UpdatePasswordRsp) String() string

type UpdatePersonalSignReq

type UpdatePersonalSignReq struct {
	Id           int64  `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`                                        //用户id
	PersonalSign string `protobuf:"bytes,2,opt,name=personal_sign,json=personalSign,proto3" json:"personal_sign,omitempty"` //个性签名
	// contains filtered or unexported fields
}

修改个性签名请求参数

func (*UpdatePersonalSignReq) Descriptor deprecated

func (*UpdatePersonalSignReq) Descriptor() ([]byte, []int)

Deprecated: Use UpdatePersonalSignReq.ProtoReflect.Descriptor instead.

func (*UpdatePersonalSignReq) GetId

func (x *UpdatePersonalSignReq) GetId() int64

func (*UpdatePersonalSignReq) GetPersonalSign

func (x *UpdatePersonalSignReq) GetPersonalSign() string

func (*UpdatePersonalSignReq) ProtoMessage

func (*UpdatePersonalSignReq) ProtoMessage()

func (*UpdatePersonalSignReq) ProtoReflect

func (x *UpdatePersonalSignReq) ProtoReflect() protoreflect.Message

func (*UpdatePersonalSignReq) Reset

func (x *UpdatePersonalSignReq) Reset()

func (*UpdatePersonalSignReq) String

func (x *UpdatePersonalSignReq) String() string

type UpdatePersonalSignRsp

type UpdatePersonalSignRsp struct {
	// contains filtered or unexported fields
}

修改个性签名响应参数

func (*UpdatePersonalSignRsp) Descriptor deprecated

func (*UpdatePersonalSignRsp) Descriptor() ([]byte, []int)

Deprecated: Use UpdatePersonalSignRsp.ProtoReflect.Descriptor instead.

func (*UpdatePersonalSignRsp) ProtoMessage

func (*UpdatePersonalSignRsp) ProtoMessage()

func (*UpdatePersonalSignRsp) ProtoReflect

func (x *UpdatePersonalSignRsp) ProtoReflect() protoreflect.Message

func (*UpdatePersonalSignRsp) Reset

func (x *UpdatePersonalSignRsp) Reset()

func (*UpdatePersonalSignRsp) String

func (x *UpdatePersonalSignRsp) String() string

type UpdatePhoneReq

type UpdatePhoneReq struct {
	Id    int64  `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`      //用户id
	Phone string `protobuf:"bytes,2,opt,name=phone,proto3" json:"phone,omitempty"` //电话号码
	// contains filtered or unexported fields
}

修改电话号码请求参数

func (*UpdatePhoneReq) Descriptor deprecated

func (*UpdatePhoneReq) Descriptor() ([]byte, []int)

Deprecated: Use UpdatePhoneReq.ProtoReflect.Descriptor instead.

func (*UpdatePhoneReq) GetId

func (x *UpdatePhoneReq) GetId() int64

func (*UpdatePhoneReq) GetPhone

func (x *UpdatePhoneReq) GetPhone() string

func (*UpdatePhoneReq) ProtoMessage

func (*UpdatePhoneReq) ProtoMessage()

func (*UpdatePhoneReq) ProtoReflect

func (x *UpdatePhoneReq) ProtoReflect() protoreflect.Message

func (*UpdatePhoneReq) Reset

func (x *UpdatePhoneReq) Reset()

func (*UpdatePhoneReq) String

func (x *UpdatePhoneReq) String() string

type UpdatePhoneRsp

type UpdatePhoneRsp struct {
	// contains filtered or unexported fields
}

修改电话号码响应参数

func (*UpdatePhoneRsp) Descriptor deprecated

func (*UpdatePhoneRsp) Descriptor() ([]byte, []int)

Deprecated: Use UpdatePhoneRsp.ProtoReflect.Descriptor instead.

func (*UpdatePhoneRsp) ProtoMessage

func (*UpdatePhoneRsp) ProtoMessage()

func (*UpdatePhoneRsp) ProtoReflect

func (x *UpdatePhoneRsp) ProtoReflect() protoreflect.Message

func (*UpdatePhoneRsp) Reset

func (x *UpdatePhoneRsp) Reset()

func (*UpdatePhoneRsp) String

func (x *UpdatePhoneRsp) String() string

type UpdateSexReq

type UpdateSexReq struct {
	Id  int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`   //用户id
	Sex int32 `protobuf:"varint,2,opt,name=sex,proto3" json:"sex,omitempty"` //性别
	// contains filtered or unexported fields
}

修改性别请求参数

func (*UpdateSexReq) Descriptor deprecated

func (*UpdateSexReq) Descriptor() ([]byte, []int)

Deprecated: Use UpdateSexReq.ProtoReflect.Descriptor instead.

func (*UpdateSexReq) GetId

func (x *UpdateSexReq) GetId() int64

func (*UpdateSexReq) GetSex

func (x *UpdateSexReq) GetSex() int32

func (*UpdateSexReq) ProtoMessage

func (*UpdateSexReq) ProtoMessage()

func (*UpdateSexReq) ProtoReflect

func (x *UpdateSexReq) ProtoReflect() protoreflect.Message

func (*UpdateSexReq) Reset

func (x *UpdateSexReq) Reset()

func (*UpdateSexReq) String

func (x *UpdateSexReq) String() string

type UpdateSexRsp

type UpdateSexRsp struct {
	// contains filtered or unexported fields
}

修改性别响应参数

func (*UpdateSexRsp) Descriptor deprecated

func (*UpdateSexRsp) Descriptor() ([]byte, []int)

Deprecated: Use UpdateSexRsp.ProtoReflect.Descriptor instead.

func (*UpdateSexRsp) ProtoMessage

func (*UpdateSexRsp) ProtoMessage()

func (*UpdateSexRsp) ProtoReflect

func (x *UpdateSexRsp) ProtoReflect() protoreflect.Message

func (*UpdateSexRsp) Reset

func (x *UpdateSexRsp) Reset()

func (*UpdateSexRsp) String

func (x *UpdateSexRsp) String() string

type UpdateSnapCallReq

type UpdateSnapCallReq struct {
	Id       int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`                             //用户id
	SnapCall bool  `protobuf:"varint,2,opt,name=snap_call,json=snapCall,proto3" json:"snap_call,omitempty"` //是否允许临时会话
	// contains filtered or unexported fields
}

修改是否允许临时会话请求参数

func (*UpdateSnapCallReq) Descriptor deprecated

func (*UpdateSnapCallReq) Descriptor() ([]byte, []int)

Deprecated: Use UpdateSnapCallReq.ProtoReflect.Descriptor instead.

func (*UpdateSnapCallReq) GetId

func (x *UpdateSnapCallReq) GetId() int64

func (*UpdateSnapCallReq) GetSnapCall

func (x *UpdateSnapCallReq) GetSnapCall() bool

func (*UpdateSnapCallReq) ProtoMessage

func (*UpdateSnapCallReq) ProtoMessage()

func (*UpdateSnapCallReq) ProtoReflect

func (x *UpdateSnapCallReq) ProtoReflect() protoreflect.Message

func (*UpdateSnapCallReq) Reset

func (x *UpdateSnapCallReq) Reset()

func (*UpdateSnapCallReq) String

func (x *UpdateSnapCallReq) String() string

type UpdateSnapCallRsp

type UpdateSnapCallRsp struct {
	// contains filtered or unexported fields
}

修改是否允许临时会话响应参数

func (*UpdateSnapCallRsp) Descriptor deprecated

func (*UpdateSnapCallRsp) Descriptor() ([]byte, []int)

Deprecated: Use UpdateSnapCallRsp.ProtoReflect.Descriptor instead.

func (*UpdateSnapCallRsp) ProtoMessage

func (*UpdateSnapCallRsp) ProtoMessage()

func (*UpdateSnapCallRsp) ProtoReflect

func (x *UpdateSnapCallRsp) ProtoReflect() protoreflect.Message

func (*UpdateSnapCallRsp) Reset

func (x *UpdateSnapCallRsp) Reset()

func (*UpdateSnapCallRsp) String

func (x *UpdateSnapCallRsp) String() string

type UserClient

type UserClient interface {
	//创建用户
	CreateUser(ctx context.Context, in *CreateUserReq, opts ...grpc.CallOption) (*CreateUserRsp, error)
	//修改身份信息
	UpdateIdCard(ctx context.Context, in *UpdateIdCardReq, opts ...grpc.CallOption) (*UpdateIdCardRsp, error)
	//修改电话号码
	UpdatePhone(ctx context.Context, in *UpdatePhoneReq, opts ...grpc.CallOption) (*UpdatePhoneRsp, error)
	//修改密码
	UpdatePassword(ctx context.Context, in *UpdatePasswordReq, opts ...grpc.CallOption) (*UpdatePasswordRsp, error)
	//忘记密码
	ForgetPassword(ctx context.Context, in *ForgetPasswordReq, opts ...grpc.CallOption) (*ForgetPasswordRsp, error)
	//修改昵称
	UpdateNickname(ctx context.Context, in *UpdateNicknameReq, opts ...grpc.CallOption) (*UpdateNicknameRsp, error)
	//修改性别
	UpdateSex(ctx context.Context, in *UpdateSexReq, opts ...grpc.CallOption) (*UpdateSexRsp, error)
	//修改头像
	UpdateAvatarUrl(ctx context.Context, in *UpdateAvatarUrlReq, opts ...grpc.CallOption) (*UpdateAvatarUrlRsp, error)
	//修改个性签名
	UpdatePersonalSign(ctx context.Context, in *UpdatePersonalSignReq, opts ...grpc.CallOption) (*UpdatePersonalSignRsp, error)
	//修改个人介绍
	UpdateIntroduce(ctx context.Context, in *UpdateIntroduceReq, opts ...grpc.CallOption) (*UpdateIntroduceRsp, error)
	//修改是否允许临时会话
	UpdateSnapCall(ctx context.Context, in *UpdateSnapCallReq, opts ...grpc.CallOption) (*UpdateSnapCallRsp, error)
	//修改用户添加好友方式
	UpdateFriendPass(ctx context.Context, in *UpdateFriendPassReq, opts ...grpc.CallOption) (*UpdateFriendPassRsp, error)
	//删除帐号
	DeleteUser(ctx context.Context, in *DeleteUserReq, opts ...grpc.CallOption) (*DeleteUserRsp, error)
	//查询用户基本信息
	InfoUserBase(ctx context.Context, in *InfoUserBaseReq, opts ...grpc.CallOption) (*InfoUserBaseRsp, error)
	//查询用户帐号信息
	InfoAccount(ctx context.Context, in *InfoAccountReq, opts ...grpc.CallOption) (*InfoAccountRsp, error)
	//查询用户是否允许临时会话
	InfoSnapCall(ctx context.Context, in *InfoSnapCallReq, opts ...grpc.CallOption) (*InfoSnapCallRsp, error)
	//查询用户添加好友方式
	InfoFriendPass(ctx context.Context, in *InfoFriendPassReq, opts ...grpc.CallOption) (*InfoFriendPassRsp, 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 UserHTTPClient

type UserHTTPClient interface {
	Hello(ctx context.Context, req *HelloReq, opts ...http.CallOption) (rsp *HelloRsp, err error)
}

func NewUserHTTPClient

func NewUserHTTPClient(client *http.Client) UserHTTPClient

type UserHTTPClientImpl

type UserHTTPClientImpl struct {
	// contains filtered or unexported fields
}

func (*UserHTTPClientImpl) Hello

func (c *UserHTTPClientImpl) Hello(ctx context.Context, in *HelloReq, opts ...http.CallOption) (*HelloRsp, error)

type UserHTTPServer

type UserHTTPServer interface {
	Hello(context.Context, *HelloReq) (*HelloRsp, error)
}

type UserServer

type UserServer interface {
	//创建用户
	CreateUser(context.Context, *CreateUserReq) (*CreateUserRsp, error)
	//修改身份信息
	UpdateIdCard(context.Context, *UpdateIdCardReq) (*UpdateIdCardRsp, error)
	//修改电话号码
	UpdatePhone(context.Context, *UpdatePhoneReq) (*UpdatePhoneRsp, error)
	//修改密码
	UpdatePassword(context.Context, *UpdatePasswordReq) (*UpdatePasswordRsp, error)
	//忘记密码
	ForgetPassword(context.Context, *ForgetPasswordReq) (*ForgetPasswordRsp, error)
	//修改昵称
	UpdateNickname(context.Context, *UpdateNicknameReq) (*UpdateNicknameRsp, error)
	//修改性别
	UpdateSex(context.Context, *UpdateSexReq) (*UpdateSexRsp, error)
	//修改头像
	UpdateAvatarUrl(context.Context, *UpdateAvatarUrlReq) (*UpdateAvatarUrlRsp, error)
	//修改个性签名
	UpdatePersonalSign(context.Context, *UpdatePersonalSignReq) (*UpdatePersonalSignRsp, error)
	//修改个人介绍
	UpdateIntroduce(context.Context, *UpdateIntroduceReq) (*UpdateIntroduceRsp, error)
	//修改是否允许临时会话
	UpdateSnapCall(context.Context, *UpdateSnapCallReq) (*UpdateSnapCallRsp, error)
	//修改用户添加好友方式
	UpdateFriendPass(context.Context, *UpdateFriendPassReq) (*UpdateFriendPassRsp, error)
	//删除帐号
	DeleteUser(context.Context, *DeleteUserReq) (*DeleteUserRsp, error)
	//查询用户基本信息
	InfoUserBase(context.Context, *InfoUserBaseReq) (*InfoUserBaseRsp, error)
	//查询用户帐号信息
	InfoAccount(context.Context, *InfoAccountReq) (*InfoAccountRsp, error)
	//查询用户是否允许临时会话
	InfoSnapCall(context.Context, *InfoSnapCallReq) (*InfoSnapCallRsp, error)
	//查询用户添加好友方式
	InfoFriendPass(context.Context, *InfoFriendPassReq) (*InfoFriendPassRsp, error)
	// contains filtered or unexported methods
}

UserServer is the server API for User service. All implementations must embed UnimplementedUserServer for forward compatibility

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL