Versions in this module Expand all Collapse all v1 v1.0.2 Jun 19, 2022 v1.0.1 Jun 18, 2022 Changes in this version + var File_user_proto protoreflect.FileDescriptor + type DouyinUserRegisterRequest struct + Password string + Username string + func (*DouyinUserRegisterRequest) Descriptor() ([]byte, []int) + func (*DouyinUserRegisterRequest) ProtoMessage() + func (x *DouyinUserRegisterRequest) GetPassword() string + func (x *DouyinUserRegisterRequest) GetUsername() string + func (x *DouyinUserRegisterRequest) ProtoReflect() protoreflect.Message + func (x *DouyinUserRegisterRequest) Reset() + func (x *DouyinUserRegisterRequest) String() string + type DouyinUserRegisterResponse struct + StatusCode int32 + StatusMsg *string + Token string + UserId int64 + func (*DouyinUserRegisterResponse) Descriptor() ([]byte, []int) + func (*DouyinUserRegisterResponse) ProtoMessage() + func (x *DouyinUserRegisterResponse) GetStatusCode() int32 + func (x *DouyinUserRegisterResponse) GetStatusMsg() string + func (x *DouyinUserRegisterResponse) GetToken() string + func (x *DouyinUserRegisterResponse) GetUserId() int64 + func (x *DouyinUserRegisterResponse) ProtoReflect() protoreflect.Message + func (x *DouyinUserRegisterResponse) Reset() + func (x *DouyinUserRegisterResponse) String() string + type DouyinUserRequest struct + Token string + UserId int64 + func (*DouyinUserRequest) Descriptor() ([]byte, []int) + func (*DouyinUserRequest) ProtoMessage() + func (x *DouyinUserRequest) GetToken() string + func (x *DouyinUserRequest) GetUserId() int64 + func (x *DouyinUserRequest) ProtoReflect() protoreflect.Message + func (x *DouyinUserRequest) Reset() + func (x *DouyinUserRequest) String() string + type DouyinUserResponse struct + StatusCode int32 + StatusMsg *string + User *User + func (*DouyinUserResponse) Descriptor() ([]byte, []int) + func (*DouyinUserResponse) ProtoMessage() + func (x *DouyinUserResponse) GetStatusCode() int32 + func (x *DouyinUserResponse) GetStatusMsg() string + func (x *DouyinUserResponse) GetUser() *User + func (x *DouyinUserResponse) ProtoReflect() protoreflect.Message + func (x *DouyinUserResponse) Reset() + func (x *DouyinUserResponse) String() string + type User struct + FollowCount *int64 + FollowerCount *int64 + Id int64 + IsFollow bool + Name string + func (*User) Descriptor() ([]byte, []int) + func (*User) ProtoMessage() + 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 (x *User) ProtoReflect() protoreflect.Message + func (x *User) Reset() + func (x *User) String() string + type UserSrv interface + GetUserById func(ctx context.Context, req *DouyinUserRequest) (res *DouyinUserResponse, err error) + Login func(ctx context.Context, req *DouyinUserRegisterRequest) (res *DouyinUserRegisterResponse, err error) + Register func(ctx context.Context, req *DouyinUserRegisterRequest) (res *DouyinUserRegisterResponse, err error) v1.0.0 Jun 18, 2022