Documentation ¶
Index ¶
- Variables
- type DouyinUserRegisterRequest
- func (*DouyinUserRegisterRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DouyinUserRegisterRequest) GetPassword() string
- func (x *DouyinUserRegisterRequest) GetUsername() string
- func (*DouyinUserRegisterRequest) ProtoMessage()
- func (x *DouyinUserRegisterRequest) ProtoReflect() protoreflect.Message
- func (x *DouyinUserRegisterRequest) Reset()
- func (x *DouyinUserRegisterRequest) String() string
- type DouyinUserRegisterResponse
- func (*DouyinUserRegisterResponse) Descriptor() ([]byte, []int)deprecated
- func (x *DouyinUserRegisterResponse) GetStatusCode() int32
- func (x *DouyinUserRegisterResponse) GetStatusMsg() string
- func (x *DouyinUserRegisterResponse) GetToken() string
- func (x *DouyinUserRegisterResponse) GetUserId() int64
- func (*DouyinUserRegisterResponse) ProtoMessage()
- func (x *DouyinUserRegisterResponse) ProtoReflect() protoreflect.Message
- func (x *DouyinUserRegisterResponse) Reset()
- func (x *DouyinUserRegisterResponse) String() string
- type DouyinUserRequest
- func (*DouyinUserRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DouyinUserRequest) GetToken() string
- func (x *DouyinUserRequest) GetUserId() int64
- func (*DouyinUserRequest) ProtoMessage()
- func (x *DouyinUserRequest) ProtoReflect() protoreflect.Message
- func (x *DouyinUserRequest) Reset()
- func (x *DouyinUserRequest) String() string
- type DouyinUserResponse
- func (*DouyinUserResponse) Descriptor() ([]byte, []int)deprecated
- func (x *DouyinUserResponse) GetStatusCode() int32
- func (x *DouyinUserResponse) GetStatusMsg() string
- func (x *DouyinUserResponse) GetUser() *User
- func (*DouyinUserResponse) ProtoMessage()
- func (x *DouyinUserResponse) ProtoReflect() protoreflect.Message
- func (x *DouyinUserResponse) Reset()
- func (x *DouyinUserResponse) String() string
- type User
- func (*User) Descriptor() ([]byte, []int)deprecated
- func (x *User) GetFollowCount() int64
- func (x *User) GetFollowerCount() int64
- func (x *User) GetId() int64
- func (x *User) GetIsFollow() bool
- func (x *User) GetName() string
- func (*User) ProtoMessage()
- func (x *User) ProtoReflect() protoreflect.Message
- func (x *User) Reset()
- func (x *User) String() string
- type UserSrv
Constants ¶
This section is empty.
Variables ¶
View Source
var File_user_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type DouyinUserRegisterRequest ¶
type DouyinUserRegisterRequest struct { Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"` // 注册用户名,最长32个字符 Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` // 密码,最长32个字符 // contains filtered or unexported fields }
func (*DouyinUserRegisterRequest) Descriptor
deprecated
func (*DouyinUserRegisterRequest) Descriptor() ([]byte, []int)
Deprecated: Use DouyinUserRegisterRequest.ProtoReflect.Descriptor instead.
func (*DouyinUserRegisterRequest) GetPassword ¶
func (x *DouyinUserRegisterRequest) GetPassword() string
func (*DouyinUserRegisterRequest) GetUsername ¶
func (x *DouyinUserRegisterRequest) GetUsername() string
func (*DouyinUserRegisterRequest) ProtoMessage ¶
func (*DouyinUserRegisterRequest) ProtoMessage()
func (*DouyinUserRegisterRequest) ProtoReflect ¶
func (x *DouyinUserRegisterRequest) ProtoReflect() protoreflect.Message
func (*DouyinUserRegisterRequest) Reset ¶
func (x *DouyinUserRegisterRequest) Reset()
func (*DouyinUserRegisterRequest) String ¶
func (x *DouyinUserRegisterRequest) String() string
type DouyinUserRegisterResponse ¶
type DouyinUserRegisterResponse struct { StatusCode int32 `protobuf:"varint,1,opt,name=status_code,json=statusCode,proto3" json:"status_code,omitempty"` // 状态码,0-成功,其他值-失败 StatusMsg *string `protobuf:"bytes,2,opt,name=status_msg,json=statusMsg,proto3,oneof" json:"status_msg,omitempty"` // 返回状态描述 UserId int64 `protobuf:"varint,3,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // 用户id Token string `protobuf:"bytes,4,opt,name=token,proto3" json:"token,omitempty"` // 用户鉴权token // contains filtered or unexported fields }
func (*DouyinUserRegisterResponse) Descriptor
deprecated
func (*DouyinUserRegisterResponse) Descriptor() ([]byte, []int)
Deprecated: Use DouyinUserRegisterResponse.ProtoReflect.Descriptor instead.
func (*DouyinUserRegisterResponse) GetStatusCode ¶
func (x *DouyinUserRegisterResponse) GetStatusCode() int32
func (*DouyinUserRegisterResponse) GetStatusMsg ¶
func (x *DouyinUserRegisterResponse) GetStatusMsg() string
func (*DouyinUserRegisterResponse) GetToken ¶
func (x *DouyinUserRegisterResponse) GetToken() string
func (*DouyinUserRegisterResponse) GetUserId ¶
func (x *DouyinUserRegisterResponse) GetUserId() int64
func (*DouyinUserRegisterResponse) ProtoMessage ¶
func (*DouyinUserRegisterResponse) ProtoMessage()
func (*DouyinUserRegisterResponse) ProtoReflect ¶
func (x *DouyinUserRegisterResponse) ProtoReflect() protoreflect.Message
func (*DouyinUserRegisterResponse) Reset ¶
func (x *DouyinUserRegisterResponse) Reset()
func (*DouyinUserRegisterResponse) String ¶
func (x *DouyinUserRegisterResponse) String() string
type DouyinUserRequest ¶
type DouyinUserRequest struct { UserId int64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // 用户id Token string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"` // 用户鉴权token // contains filtered or unexported fields }
func (*DouyinUserRequest) Descriptor
deprecated
func (*DouyinUserRequest) Descriptor() ([]byte, []int)
Deprecated: Use DouyinUserRequest.ProtoReflect.Descriptor instead.
func (*DouyinUserRequest) GetToken ¶
func (x *DouyinUserRequest) GetToken() string
func (*DouyinUserRequest) GetUserId ¶
func (x *DouyinUserRequest) GetUserId() int64
func (*DouyinUserRequest) ProtoMessage ¶
func (*DouyinUserRequest) ProtoMessage()
func (*DouyinUserRequest) ProtoReflect ¶
func (x *DouyinUserRequest) ProtoReflect() protoreflect.Message
func (*DouyinUserRequest) Reset ¶
func (x *DouyinUserRequest) Reset()
func (*DouyinUserRequest) String ¶
func (x *DouyinUserRequest) String() string
type DouyinUserResponse ¶
type DouyinUserResponse struct { StatusCode int32 `protobuf:"varint,1,opt,name=status_code,json=statusCode,proto3" json:"status_code,omitempty"` // 状态码,0-成功,其他值-失败 StatusMsg *string `protobuf:"bytes,2,opt,name=status_msg,json=statusMsg,proto3,oneof" json:"status_msg,omitempty"` // 返回状态描述 User *User `protobuf:"bytes,3,opt,name=user,proto3" json:"user,omitempty"` // 用户信息 // contains filtered or unexported fields }
func (*DouyinUserResponse) Descriptor
deprecated
func (*DouyinUserResponse) Descriptor() ([]byte, []int)
Deprecated: Use DouyinUserResponse.ProtoReflect.Descriptor instead.
func (*DouyinUserResponse) GetStatusCode ¶
func (x *DouyinUserResponse) GetStatusCode() int32
func (*DouyinUserResponse) GetStatusMsg ¶
func (x *DouyinUserResponse) GetStatusMsg() string
func (*DouyinUserResponse) GetUser ¶
func (x *DouyinUserResponse) GetUser() *User
func (*DouyinUserResponse) ProtoMessage ¶
func (*DouyinUserResponse) ProtoMessage()
func (*DouyinUserResponse) ProtoReflect ¶
func (x *DouyinUserResponse) ProtoReflect() protoreflect.Message
func (*DouyinUserResponse) Reset ¶
func (x *DouyinUserResponse) Reset()
func (*DouyinUserResponse) String ¶
func (x *DouyinUserResponse) String() string
type User ¶
type User 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"` // 用户名称 FollowCount *int64 `protobuf:"varint,3,opt,name=follow_count,json=followCount,proto3,oneof" json:"follow_count,omitempty"` // 关注总数 FollowerCount *int64 `protobuf:"varint,4,opt,name=follower_count,json=followerCount,proto3,oneof" json:"follower_count,omitempty"` // 粉丝总数 IsFollow bool `protobuf:"varint,5,opt,name=is_follow,json=isFollow,proto3" json:"is_follow,omitempty"` // true-已关注,false-未关注 // contains filtered or unexported fields }
func (*User) Descriptor
deprecated
func (*User) GetFollowCount ¶
func (*User) GetFollowerCount ¶
func (*User) GetIsFollow ¶
func (*User) ProtoMessage ¶
func (*User) ProtoMessage()
func (*User) ProtoReflect ¶
func (x *User) ProtoReflect() protoreflect.Message
type UserSrv ¶
type UserSrv interface { Register(ctx context.Context, req *DouyinUserRegisterRequest) (res *DouyinUserRegisterResponse, err error) Login(ctx context.Context, req *DouyinUserRegisterRequest) (res *DouyinUserRegisterResponse, err error) GetUserById(ctx context.Context, req *DouyinUserRequest) (res *DouyinUserResponse, err error) }
Click to show internal directories.
Click to hide internal directories.