user

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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 (*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 (*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) Descriptor() ([]byte, []int)

Deprecated: Use User.ProtoReflect.Descriptor instead.

func (*User) GetFollowCount

func (x *User) GetFollowCount() int64

func (*User) GetFollowerCount

func (x *User) GetFollowerCount() int64

func (*User) GetId

func (x *User) GetId() int64

func (*User) GetIsFollow

func (x *User) GetIsFollow() bool

func (*User) GetName

func (x *User) GetName() string

func (*User) ProtoMessage

func (*User) ProtoMessage()

func (*User) ProtoReflect

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

func (*User) Reset

func (x *User) Reset()

func (*User) String

func (x *User) String() string

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)
}

Directories

Path Synopsis
Code generated by Kitex v0.3.2.
Code generated by Kitex v0.3.2.

Jump to

Keyboard shortcuts

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