Versions in this module Expand all Collapse all v1 v1.1.0 Jul 18, 2022 Changes in this version + var File_user_proto protoreflect.FileDescriptor + type BaseResp struct + ServiceTime int64 + StatusCode int32 + StatusMessage string + func (*BaseResp) Descriptor() ([]byte, []int) + func (*BaseResp) ProtoMessage() + func (x *BaseResp) GetServiceTime() int64 + func (x *BaseResp) GetStatusCode() int32 + func (x *BaseResp) GetStatusMessage() string + func (x *BaseResp) ProtoReflect() protoreflect.Message + func (x *BaseResp) Reset() + func (x *BaseResp) String() string + type CheckUserRequest struct + Password string + Username string + func (*CheckUserRequest) Descriptor() ([]byte, []int) + func (*CheckUserRequest) ProtoMessage() + func (x *CheckUserRequest) GetPassword() string + func (x *CheckUserRequest) GetUsername() string + func (x *CheckUserRequest) ProtoReflect() protoreflect.Message + func (x *CheckUserRequest) Reset() + func (x *CheckUserRequest) String() string + type CheckUserResponse struct + BaseResp *BaseResp + UserId int64 + func (*CheckUserResponse) Descriptor() ([]byte, []int) + func (*CheckUserResponse) ProtoMessage() + func (x *CheckUserResponse) GetBaseResp() *BaseResp + func (x *CheckUserResponse) GetUserId() int64 + func (x *CheckUserResponse) ProtoReflect() protoreflect.Message + func (x *CheckUserResponse) Reset() + func (x *CheckUserResponse) String() string + type RegisterUserRequest struct + Password string + Username string + func (*RegisterUserRequest) Descriptor() ([]byte, []int) + func (*RegisterUserRequest) ProtoMessage() + func (x *RegisterUserRequest) GetPassword() string + func (x *RegisterUserRequest) GetUsername() string + func (x *RegisterUserRequest) ProtoReflect() protoreflect.Message + func (x *RegisterUserRequest) Reset() + func (x *RegisterUserRequest) String() string + type RegisterUserResponse struct + BaseResp *BaseResp + Token string + UserId int64 + func (*RegisterUserResponse) Descriptor() ([]byte, []int) + func (*RegisterUserResponse) ProtoMessage() + func (x *RegisterUserResponse) GetBaseResp() *BaseResp + func (x *RegisterUserResponse) GetToken() string + func (x *RegisterUserResponse) GetUserId() int64 + func (x *RegisterUserResponse) ProtoReflect() protoreflect.Message + func (x *RegisterUserResponse) Reset() + func (x *RegisterUserResponse) 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 UserInfoRequest struct + Token string + UserId int64 + func (*UserInfoRequest) Descriptor() ([]byte, []int) + func (*UserInfoRequest) ProtoMessage() + func (x *UserInfoRequest) GetToken() string + func (x *UserInfoRequest) GetUserId() int64 + func (x *UserInfoRequest) ProtoReflect() protoreflect.Message + func (x *UserInfoRequest) Reset() + func (x *UserInfoRequest) String() string + type UserInfoResponse struct + BaseResp *BaseResp + User *User + func (*UserInfoResponse) Descriptor() ([]byte, []int) + func (*UserInfoResponse) ProtoMessage() + func (x *UserInfoResponse) GetBaseResp() *BaseResp + func (x *UserInfoResponse) GetUser() *User + func (x *UserInfoResponse) ProtoReflect() protoreflect.Message + func (x *UserInfoResponse) Reset() + func (x *UserInfoResponse) String() string + type UserService interface + CheckUser func(ctx context.Context, req *CheckUserRequest) (res *CheckUserResponse, err error) + RegisterUser func(ctx context.Context, req *RegisterUserRequest) (res *RegisterUserResponse, err error) + UserInfo func(ctx context.Context, req *UserInfoRequest) (res *UserInfoResponse, err error)