user

package
v0.0.0-...-4036ab3 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2025 License: GPL-2.0 Imports: 8 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	LikeType_name = map[int32]string{
		0: "Unknown",
		1: "Post",
		2: "Comment",
		3: "Cat",
		4: "Moment",
		5: "CatPhoto",
		6: "User",
	}
	LikeType_value = map[string]int32{
		"Unknown":  0,
		"Post":     1,
		"Comment":  2,
		"Cat":      3,
		"Moment":   4,
		"CatPhoto": 5,
		"User":     6,
	}
)

Enum value maps for LikeType.

View Source
var File_meowchat_user_common_proto protoreflect.FileDescriptor
View Source
var File_meowchat_user_user_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type DoLikeReq

type DoLikeReq struct {
	UserId string `protobuf:"bytes,1,opt,name=userId,proto3" json:"userId,omitempty"`
	// 点赞的目标ID,可以是评论ID,文章ID等
	TargetId string `protobuf:"bytes,2,opt,name=targetId,proto3" json:"targetId,omitempty"`
	// 点赞的类型,点赞评论、点赞文章等都可以视为点赞的不同类型
	Type LikeType `protobuf:"varint,3,opt,name=type,proto3,enum=meowchat.user.LikeType" json:"type,omitempty"`
	// 对象所关联的ID,比如评论点赞对应文章ID等
	AssociatedId string `protobuf:"bytes,4,opt,name=associatedId,proto3" json:"associatedId,omitempty"`
	// 被点赞用户的ID
	LikedUserId string `protobuf:"bytes,5,opt,name=likedUserId,proto3" json:"likedUserId,omitempty"`
	// contains filtered or unexported fields
}

func (*DoLikeReq) Descriptor deprecated

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

Deprecated: Use DoLikeReq.ProtoReflect.Descriptor instead.

func (*DoLikeReq) FastRead

func (x *DoLikeReq) FastRead(buf []byte, _type int8, number int32) (offset int, err error)

func (*DoLikeReq) FastWrite

func (x *DoLikeReq) FastWrite(buf []byte) (offset int)

func (*DoLikeReq) GetAssociatedId

func (x *DoLikeReq) GetAssociatedId() string

func (*DoLikeReq) GetLikedUserId

func (x *DoLikeReq) GetLikedUserId() string

func (*DoLikeReq) GetTargetId

func (x *DoLikeReq) GetTargetId() string

func (*DoLikeReq) GetType

func (x *DoLikeReq) GetType() LikeType

func (*DoLikeReq) GetUserId

func (x *DoLikeReq) GetUserId() string

func (*DoLikeReq) ProtoMessage

func (*DoLikeReq) ProtoMessage()

func (*DoLikeReq) ProtoReflect

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

func (*DoLikeReq) Reset

func (x *DoLikeReq) Reset()

func (*DoLikeReq) Size

func (x *DoLikeReq) Size() (n int)

func (*DoLikeReq) String

func (x *DoLikeReq) String() string

type DoLikeResp

type DoLikeResp struct {
	GetFish      bool  `protobuf:"varint,1,opt,name=getFish,proto3" json:"getFish,omitempty"`
	GetFishTimes int64 `protobuf:"varint,2,opt,name=getFishTimes,proto3" json:"getFishTimes,omitempty"`
	Liked        bool  `protobuf:"varint,3,opt,name=liked,proto3" json:"liked,omitempty"`
	// contains filtered or unexported fields
}

func (*DoLikeResp) Descriptor deprecated

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

Deprecated: Use DoLikeResp.ProtoReflect.Descriptor instead.

func (*DoLikeResp) FastRead

func (x *DoLikeResp) FastRead(buf []byte, _type int8, number int32) (offset int, err error)

func (*DoLikeResp) FastWrite

func (x *DoLikeResp) FastWrite(buf []byte) (offset int)

func (*DoLikeResp) GetGetFish

func (x *DoLikeResp) GetGetFish() bool

func (*DoLikeResp) GetGetFishTimes

func (x *DoLikeResp) GetGetFishTimes() int64

func (*DoLikeResp) GetLiked

func (x *DoLikeResp) GetLiked() bool

func (*DoLikeResp) ProtoMessage

func (*DoLikeResp) ProtoMessage()

func (*DoLikeResp) ProtoReflect

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

func (*DoLikeResp) Reset

func (x *DoLikeResp) Reset()

func (*DoLikeResp) Size

func (x *DoLikeResp) Size() (n int)

func (*DoLikeResp) String

func (x *DoLikeResp) String() string

type GetLikedUsersReq

type GetLikedUsersReq struct {
	TargetId          string                   `protobuf:"bytes,1,opt,name=targetId,proto3" json:"targetId,omitempty"`
	Type              LikeType                 `protobuf:"varint,2,opt,name=type,proto3,enum=meowchat.user.LikeType" json:"type,omitempty"`
	PaginationOptions *basic.PaginationOptions `protobuf:"bytes,3,opt,name=paginationOptions,proto3,oneof" json:"paginationOptions,omitempty"`
	// contains filtered or unexported fields
}

func (*GetLikedUsersReq) Descriptor deprecated

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

Deprecated: Use GetLikedUsersReq.ProtoReflect.Descriptor instead.

func (*GetLikedUsersReq) FastRead

func (x *GetLikedUsersReq) FastRead(buf []byte, _type int8, number int32) (offset int, err error)

func (*GetLikedUsersReq) FastWrite

func (x *GetLikedUsersReq) FastWrite(buf []byte) (offset int)

func (*GetLikedUsersReq) GetPaginationOptions

func (x *GetLikedUsersReq) GetPaginationOptions() *basic.PaginationOptions

func (*GetLikedUsersReq) GetTargetId

func (x *GetLikedUsersReq) GetTargetId() string

func (*GetLikedUsersReq) GetType

func (x *GetLikedUsersReq) GetType() LikeType

func (*GetLikedUsersReq) ProtoMessage

func (*GetLikedUsersReq) ProtoMessage()

func (*GetLikedUsersReq) ProtoReflect

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

func (*GetLikedUsersReq) Reset

func (x *GetLikedUsersReq) Reset()

func (*GetLikedUsersReq) Size

func (x *GetLikedUsersReq) Size() (n int)

func (*GetLikedUsersReq) String

func (x *GetLikedUsersReq) String() string

type GetLikedUsersResp

type GetLikedUsersResp struct {
	UserIds []string `protobuf:"bytes,1,rep,name=userIds,proto3" json:"userIds,omitempty"`
	Token   string   `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"`
	Total   int64    `protobuf:"varint,3,opt,name=total,proto3" json:"total,omitempty"`
	// contains filtered or unexported fields
}

func (*GetLikedUsersResp) Descriptor deprecated

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

Deprecated: Use GetLikedUsersResp.ProtoReflect.Descriptor instead.

func (*GetLikedUsersResp) FastRead

func (x *GetLikedUsersResp) FastRead(buf []byte, _type int8, number int32) (offset int, err error)

func (*GetLikedUsersResp) FastWrite

func (x *GetLikedUsersResp) FastWrite(buf []byte) (offset int)

func (*GetLikedUsersResp) GetToken

func (x *GetLikedUsersResp) GetToken() string

func (*GetLikedUsersResp) GetTotal

func (x *GetLikedUsersResp) GetTotal() int64

func (*GetLikedUsersResp) GetUserIds

func (x *GetLikedUsersResp) GetUserIds() []string

func (*GetLikedUsersResp) ProtoMessage

func (*GetLikedUsersResp) ProtoMessage()

func (*GetLikedUsersResp) ProtoReflect

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

func (*GetLikedUsersResp) Reset

func (x *GetLikedUsersResp) Reset()

func (*GetLikedUsersResp) Size

func (x *GetLikedUsersResp) Size() (n int)

func (*GetLikedUsersResp) String

func (x *GetLikedUsersResp) String() string

type GetTargetLikesReq

type GetTargetLikesReq struct {
	TargetId string   `protobuf:"bytes,1,opt,name=targetId,proto3" json:"targetId,omitempty"`
	Type     LikeType `protobuf:"varint,2,opt,name=type,proto3,enum=meowchat.user.LikeType" json:"type,omitempty"`
	// contains filtered or unexported fields
}

func (*GetTargetLikesReq) Descriptor deprecated

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

Deprecated: Use GetTargetLikesReq.ProtoReflect.Descriptor instead.

func (*GetTargetLikesReq) FastRead

func (x *GetTargetLikesReq) FastRead(buf []byte, _type int8, number int32) (offset int, err error)

func (*GetTargetLikesReq) FastWrite

func (x *GetTargetLikesReq) FastWrite(buf []byte) (offset int)

func (*GetTargetLikesReq) GetTargetId

func (x *GetTargetLikesReq) GetTargetId() string

func (*GetTargetLikesReq) GetType

func (x *GetTargetLikesReq) GetType() LikeType

func (*GetTargetLikesReq) ProtoMessage

func (*GetTargetLikesReq) ProtoMessage()

func (*GetTargetLikesReq) ProtoReflect

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

func (*GetTargetLikesReq) Reset

func (x *GetTargetLikesReq) Reset()

func (*GetTargetLikesReq) Size

func (x *GetTargetLikesReq) Size() (n int)

func (*GetTargetLikesReq) String

func (x *GetTargetLikesReq) String() string

type GetTargetLikesResp

type GetTargetLikesResp struct {
	Count int64 `protobuf:"varint,1,opt,name=count,proto3" json:"count,omitempty"`
	// contains filtered or unexported fields
}

func (*GetTargetLikesResp) Descriptor deprecated

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

Deprecated: Use GetTargetLikesResp.ProtoReflect.Descriptor instead.

func (*GetTargetLikesResp) FastRead

func (x *GetTargetLikesResp) FastRead(buf []byte, _type int8, number int32) (offset int, err error)

func (*GetTargetLikesResp) FastWrite

func (x *GetTargetLikesResp) FastWrite(buf []byte) (offset int)

func (*GetTargetLikesResp) GetCount

func (x *GetTargetLikesResp) GetCount() int64

func (*GetTargetLikesResp) ProtoMessage

func (*GetTargetLikesResp) ProtoMessage()

func (*GetTargetLikesResp) ProtoReflect

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

func (*GetTargetLikesResp) Reset

func (x *GetTargetLikesResp) Reset()

func (*GetTargetLikesResp) Size

func (x *GetTargetLikesResp) Size() (n int)

func (*GetTargetLikesResp) String

func (x *GetTargetLikesResp) String() string

type GetUserDetailReq

type GetUserDetailReq struct {
	UserId string `protobuf:"bytes,1,opt,name=userId,proto3" json:"userId,omitempty"`
	// contains filtered or unexported fields
}

func (*GetUserDetailReq) Descriptor deprecated

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

Deprecated: Use GetUserDetailReq.ProtoReflect.Descriptor instead.

func (*GetUserDetailReq) FastRead

func (x *GetUserDetailReq) FastRead(buf []byte, _type int8, number int32) (offset int, err error)

func (*GetUserDetailReq) FastWrite

func (x *GetUserDetailReq) FastWrite(buf []byte) (offset int)

func (*GetUserDetailReq) GetUserId

func (x *GetUserDetailReq) GetUserId() string

func (*GetUserDetailReq) ProtoMessage

func (*GetUserDetailReq) ProtoMessage()

func (*GetUserDetailReq) ProtoReflect

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

func (*GetUserDetailReq) Reset

func (x *GetUserDetailReq) Reset()

func (*GetUserDetailReq) Size

func (x *GetUserDetailReq) Size() (n int)

func (*GetUserDetailReq) String

func (x *GetUserDetailReq) String() string

type GetUserDetailResp

type GetUserDetailResp struct {
	User *UserDetail `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
	// contains filtered or unexported fields
}

func (*GetUserDetailResp) Descriptor deprecated

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

Deprecated: Use GetUserDetailResp.ProtoReflect.Descriptor instead.

func (*GetUserDetailResp) FastRead

func (x *GetUserDetailResp) FastRead(buf []byte, _type int8, number int32) (offset int, err error)

func (*GetUserDetailResp) FastWrite

func (x *GetUserDetailResp) FastWrite(buf []byte) (offset int)

func (*GetUserDetailResp) GetUser

func (x *GetUserDetailResp) GetUser() *UserDetail

func (*GetUserDetailResp) ProtoMessage

func (*GetUserDetailResp) ProtoMessage()

func (*GetUserDetailResp) ProtoReflect

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

func (*GetUserDetailResp) Reset

func (x *GetUserDetailResp) Reset()

func (*GetUserDetailResp) Size

func (x *GetUserDetailResp) Size() (n int)

func (*GetUserDetailResp) String

func (x *GetUserDetailResp) String() string

type GetUserLikedReq

type GetUserLikedReq struct {
	UserId   string   `protobuf:"bytes,1,opt,name=userId,proto3" json:"userId,omitempty"`
	TargetId string   `protobuf:"bytes,2,opt,name=targetId,proto3" json:"targetId,omitempty"`
	Type     LikeType `protobuf:"varint,3,opt,name=type,proto3,enum=meowchat.user.LikeType" json:"type,omitempty"`
	// contains filtered or unexported fields
}

func (*GetUserLikedReq) Descriptor deprecated

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

Deprecated: Use GetUserLikedReq.ProtoReflect.Descriptor instead.

func (*GetUserLikedReq) FastRead

func (x *GetUserLikedReq) FastRead(buf []byte, _type int8, number int32) (offset int, err error)

func (*GetUserLikedReq) FastWrite

func (x *GetUserLikedReq) FastWrite(buf []byte) (offset int)

func (*GetUserLikedReq) GetTargetId

func (x *GetUserLikedReq) GetTargetId() string

func (*GetUserLikedReq) GetType

func (x *GetUserLikedReq) GetType() LikeType

func (*GetUserLikedReq) GetUserId

func (x *GetUserLikedReq) GetUserId() string

func (*GetUserLikedReq) ProtoMessage

func (*GetUserLikedReq) ProtoMessage()

func (*GetUserLikedReq) ProtoReflect

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

func (*GetUserLikedReq) Reset

func (x *GetUserLikedReq) Reset()

func (*GetUserLikedReq) Size

func (x *GetUserLikedReq) Size() (n int)

func (*GetUserLikedReq) String

func (x *GetUserLikedReq) String() string

type GetUserLikedResp

type GetUserLikedResp struct {
	Liked bool `protobuf:"varint,1,opt,name=liked,proto3" json:"liked,omitempty"`
	// contains filtered or unexported fields
}

func (*GetUserLikedResp) Descriptor deprecated

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

Deprecated: Use GetUserLikedResp.ProtoReflect.Descriptor instead.

func (*GetUserLikedResp) FastRead

func (x *GetUserLikedResp) FastRead(buf []byte, _type int8, number int32) (offset int, err error)

func (*GetUserLikedResp) FastWrite

func (x *GetUserLikedResp) FastWrite(buf []byte) (offset int)

func (*GetUserLikedResp) GetLiked

func (x *GetUserLikedResp) GetLiked() bool

func (*GetUserLikedResp) ProtoMessage

func (*GetUserLikedResp) ProtoMessage()

func (*GetUserLikedResp) ProtoReflect

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

func (*GetUserLikedResp) Reset

func (x *GetUserLikedResp) Reset()

func (*GetUserLikedResp) Size

func (x *GetUserLikedResp) Size() (n int)

func (*GetUserLikedResp) String

func (x *GetUserLikedResp) String() string

type GetUserLikesReq

type GetUserLikesReq struct {
	UserId            string                   `protobuf:"bytes,1,opt,name=userId,proto3" json:"userId,omitempty"`
	Type              LikeType                 `protobuf:"varint,2,opt,name=type,proto3,enum=meowchat.user.LikeType" json:"type,omitempty"`
	PaginationOptions *basic.PaginationOptions `protobuf:"bytes,3,opt,name=paginationOptions,proto3,oneof" json:"paginationOptions,omitempty"`
	// contains filtered or unexported fields
}

func (*GetUserLikesReq) Descriptor deprecated

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

Deprecated: Use GetUserLikesReq.ProtoReflect.Descriptor instead.

func (*GetUserLikesReq) FastRead

func (x *GetUserLikesReq) FastRead(buf []byte, _type int8, number int32) (offset int, err error)

func (*GetUserLikesReq) FastWrite

func (x *GetUserLikesReq) FastWrite(buf []byte) (offset int)

func (*GetUserLikesReq) GetPaginationOptions

func (x *GetUserLikesReq) GetPaginationOptions() *basic.PaginationOptions

func (*GetUserLikesReq) GetType

func (x *GetUserLikesReq) GetType() LikeType

func (*GetUserLikesReq) GetUserId

func (x *GetUserLikesReq) GetUserId() string

func (*GetUserLikesReq) ProtoMessage

func (*GetUserLikesReq) ProtoMessage()

func (*GetUserLikesReq) ProtoReflect

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

func (*GetUserLikesReq) Reset

func (x *GetUserLikesReq) Reset()

func (*GetUserLikesReq) Size

func (x *GetUserLikesReq) Size() (n int)

func (*GetUserLikesReq) String

func (x *GetUserLikesReq) String() string

type GetUserLikesResp

type GetUserLikesResp struct {
	Likes []*Like `protobuf:"bytes,1,rep,name=likes,proto3" json:"likes,omitempty"`
	Total int64   `protobuf:"varint,2,opt,name=total,proto3" json:"total,omitempty"`
	Token string  `protobuf:"bytes,3,opt,name=token,proto3" json:"token,omitempty"`
	// contains filtered or unexported fields
}

func (*GetUserLikesResp) Descriptor deprecated

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

Deprecated: Use GetUserLikesResp.ProtoReflect.Descriptor instead.

func (*GetUserLikesResp) FastRead

func (x *GetUserLikesResp) FastRead(buf []byte, _type int8, number int32) (offset int, err error)

func (*GetUserLikesResp) FastWrite

func (x *GetUserLikesResp) FastWrite(buf []byte) (offset int)

func (*GetUserLikesResp) GetLikes

func (x *GetUserLikesResp) GetLikes() []*Like

func (*GetUserLikesResp) GetToken

func (x *GetUserLikesResp) GetToken() string

func (*GetUserLikesResp) GetTotal

func (x *GetUserLikesResp) GetTotal() int64

func (*GetUserLikesResp) ProtoMessage

func (*GetUserLikesResp) ProtoMessage()

func (*GetUserLikesResp) ProtoReflect

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

func (*GetUserLikesResp) Reset

func (x *GetUserLikesResp) Reset()

func (*GetUserLikesResp) Size

func (x *GetUserLikesResp) Size() (n int)

func (*GetUserLikesResp) String

func (x *GetUserLikesResp) String() string

type GetUserReq

type GetUserReq struct {
	UserId string `protobuf:"bytes,1,opt,name=userId,proto3" json:"userId,omitempty"`
	// contains filtered or unexported fields
}

func (*GetUserReq) Descriptor deprecated

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

Deprecated: Use GetUserReq.ProtoReflect.Descriptor instead.

func (*GetUserReq) FastRead

func (x *GetUserReq) FastRead(buf []byte, _type int8, number int32) (offset int, err error)

func (*GetUserReq) FastWrite

func (x *GetUserReq) FastWrite(buf []byte) (offset int)

func (*GetUserReq) GetUserId

func (x *GetUserReq) GetUserId() string

func (*GetUserReq) ProtoMessage

func (*GetUserReq) ProtoMessage()

func (*GetUserReq) ProtoReflect

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

func (*GetUserReq) Reset

func (x *GetUserReq) Reset()

func (*GetUserReq) Size

func (x *GetUserReq) Size() (n int)

func (*GetUserReq) String

func (x *GetUserReq) String() string

type GetUserResp

type GetUserResp struct {
	User *UserPreview `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
	// contains filtered or unexported fields
}

func (*GetUserResp) Descriptor deprecated

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

Deprecated: Use GetUserResp.ProtoReflect.Descriptor instead.

func (*GetUserResp) FastRead

func (x *GetUserResp) FastRead(buf []byte, _type int8, number int32) (offset int, err error)

func (*GetUserResp) FastWrite

func (x *GetUserResp) FastWrite(buf []byte) (offset int)

func (*GetUserResp) GetUser

func (x *GetUserResp) GetUser() *UserPreview

func (*GetUserResp) ProtoMessage

func (*GetUserResp) ProtoMessage()

func (*GetUserResp) ProtoReflect

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

func (*GetUserResp) Reset

func (x *GetUserResp) Reset()

func (*GetUserResp) Size

func (x *GetUserResp) Size() (n int)

func (*GetUserResp) String

func (x *GetUserResp) String() string

type ItemScore

type ItemScore struct {
	Id    string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Score int64  `protobuf:"varint,2,opt,name=score,proto3" json:"score,omitempty"`
	// contains filtered or unexported fields
}

func (*ItemScore) Descriptor deprecated

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

Deprecated: Use ItemScore.ProtoReflect.Descriptor instead.

func (*ItemScore) FastRead

func (x *ItemScore) FastRead(buf []byte, _type int8, number int32) (offset int, err error)

func (*ItemScore) FastWrite

func (x *ItemScore) FastWrite(buf []byte) (offset int)

func (*ItemScore) GetId

func (x *ItemScore) GetId() string

func (*ItemScore) GetScore

func (x *ItemScore) GetScore() int64

func (*ItemScore) ProtoMessage

func (*ItemScore) ProtoMessage()

func (*ItemScore) ProtoReflect

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

func (*ItemScore) Reset

func (x *ItemScore) Reset()

func (*ItemScore) Size

func (x *ItemScore) Size() (n int)

func (*ItemScore) String

func (x *ItemScore) String() string

type Like

type Like struct {
	TargetId     string `protobuf:"bytes,1,opt,name=targetId,proto3" json:"targetId,omitempty"`
	AssociatedId string `protobuf:"bytes,2,opt,name=associatedId,proto3" json:"associatedId,omitempty"`
	// contains filtered or unexported fields
}

func (*Like) Descriptor deprecated

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

Deprecated: Use Like.ProtoReflect.Descriptor instead.

func (*Like) FastRead

func (x *Like) FastRead(buf []byte, _type int8, number int32) (offset int, err error)

func (*Like) FastWrite

func (x *Like) FastWrite(buf []byte) (offset int)

func (*Like) GetAssociatedId

func (x *Like) GetAssociatedId() string

func (*Like) GetTargetId

func (x *Like) GetTargetId() string

func (*Like) ProtoMessage

func (*Like) ProtoMessage()

func (*Like) ProtoReflect

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

func (*Like) Reset

func (x *Like) Reset()

func (*Like) Size

func (x *Like) Size() (n int)

func (*Like) String

func (x *Like) String() string

type LikeType

type LikeType int32
const (
	LikeType_Unknown  LikeType = 0
	LikeType_Post     LikeType = 1
	LikeType_Comment  LikeType = 2
	LikeType_Cat      LikeType = 3
	LikeType_Moment   LikeType = 4
	LikeType_CatPhoto LikeType = 5
	LikeType_User     LikeType = 6
)

func (LikeType) Descriptor

func (LikeType) Descriptor() protoreflect.EnumDescriptor

func (LikeType) Enum

func (x LikeType) Enum() *LikeType

func (LikeType) EnumDescriptor deprecated

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

Deprecated: Use LikeType.Descriptor instead.

func (LikeType) Number

func (x LikeType) Number() protoreflect.EnumNumber

func (LikeType) String

func (x LikeType) String() string

func (LikeType) Type

type SearchUserReq

type SearchUserReq struct {
	Nickname  string  `protobuf:"bytes,1,opt,name=nickname,proto3" json:"nickname,omitempty"`
	Offset    *int64  `protobuf:"varint,2,opt,name=offset,proto3,oneof" json:"offset,omitempty"`
	Limit     *int64  `protobuf:"varint,3,opt,name=limit,proto3,oneof" json:"limit,omitempty"`
	Backward  *bool   `protobuf:"varint,4,opt,name=backward,proto3,oneof" json:"backward,omitempty"`
	LastToken *string `protobuf:"bytes,5,opt,name=lastToken,proto3,oneof" json:"lastToken,omitempty"`
	// contains filtered or unexported fields
}

func (*SearchUserReq) Descriptor deprecated

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

Deprecated: Use SearchUserReq.ProtoReflect.Descriptor instead.

func (*SearchUserReq) FastRead

func (x *SearchUserReq) FastRead(buf []byte, _type int8, number int32) (offset int, err error)

func (*SearchUserReq) FastWrite

func (x *SearchUserReq) FastWrite(buf []byte) (offset int)

func (*SearchUserReq) GetBackward

func (x *SearchUserReq) GetBackward() bool

func (*SearchUserReq) GetLastToken

func (x *SearchUserReq) GetLastToken() string

func (*SearchUserReq) GetLimit

func (x *SearchUserReq) GetLimit() int64

func (*SearchUserReq) GetNickname

func (x *SearchUserReq) GetNickname() string

func (*SearchUserReq) GetOffset

func (x *SearchUserReq) GetOffset() int64

func (*SearchUserReq) ProtoMessage

func (*SearchUserReq) ProtoMessage()

func (*SearchUserReq) ProtoReflect

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

func (*SearchUserReq) Reset

func (x *SearchUserReq) Reset()

func (*SearchUserReq) Size

func (x *SearchUserReq) Size() (n int)

func (*SearchUserReq) String

func (x *SearchUserReq) String() string

type SearchUserResp

type SearchUserResp struct {
	Users []*UserPreview `protobuf:"bytes,1,rep,name=users,proto3" json:"users,omitempty"`
	Total int64          `protobuf:"varint,2,opt,name=total,proto3" json:"total,omitempty"`
	Token string         `protobuf:"bytes,3,opt,name=token,proto3" json:"token,omitempty"`
	// contains filtered or unexported fields
}

func (*SearchUserResp) Descriptor deprecated

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

Deprecated: Use SearchUserResp.ProtoReflect.Descriptor instead.

func (*SearchUserResp) FastRead

func (x *SearchUserResp) FastRead(buf []byte, _type int8, number int32) (offset int, err error)

func (*SearchUserResp) FastWrite

func (x *SearchUserResp) FastWrite(buf []byte) (offset int)

func (*SearchUserResp) GetToken

func (x *SearchUserResp) GetToken() string

func (*SearchUserResp) GetTotal

func (x *SearchUserResp) GetTotal() int64

func (*SearchUserResp) GetUsers

func (x *SearchUserResp) GetUsers() []*UserPreview

func (*SearchUserResp) ProtoMessage

func (*SearchUserResp) ProtoMessage()

func (*SearchUserResp) ProtoReflect

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

func (*SearchUserResp) Reset

func (x *SearchUserResp) Reset()

func (*SearchUserResp) Size

func (x *SearchUserResp) Size() (n int)

func (*SearchUserResp) String

func (x *SearchUserResp) String() string

type UpdateUserReq

type UpdateUserReq struct {
	User *UserDetail `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateUserReq) Descriptor deprecated

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

Deprecated: Use UpdateUserReq.ProtoReflect.Descriptor instead.

func (*UpdateUserReq) FastRead

func (x *UpdateUserReq) FastRead(buf []byte, _type int8, number int32) (offset int, err error)

func (*UpdateUserReq) FastWrite

func (x *UpdateUserReq) FastWrite(buf []byte) (offset int)

func (*UpdateUserReq) GetUser

func (x *UpdateUserReq) GetUser() *UserDetail

func (*UpdateUserReq) ProtoMessage

func (*UpdateUserReq) ProtoMessage()

func (*UpdateUserReq) ProtoReflect

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

func (*UpdateUserReq) Reset

func (x *UpdateUserReq) Reset()

func (*UpdateUserReq) Size

func (x *UpdateUserReq) Size() (n int)

func (*UpdateUserReq) String

func (x *UpdateUserReq) String() string

type UpdateUserResp

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

func (*UpdateUserResp) Descriptor deprecated

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

Deprecated: Use UpdateUserResp.ProtoReflect.Descriptor instead.

func (*UpdateUserResp) FastRead

func (x *UpdateUserResp) FastRead(buf []byte, _type int8, number int32) (offset int, err error)

func (*UpdateUserResp) FastWrite

func (x *UpdateUserResp) FastWrite(buf []byte) (offset int)

func (*UpdateUserResp) ProtoMessage

func (*UpdateUserResp) ProtoMessage()

func (*UpdateUserResp) ProtoReflect

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

func (*UpdateUserResp) Reset

func (x *UpdateUserResp) Reset()

func (*UpdateUserResp) Size

func (x *UpdateUserResp) Size() (n int)

func (*UpdateUserResp) String

func (x *UpdateUserResp) String() string

type UserDetail

type UserDetail struct {
	Id        string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	AvatarUrl string `protobuf:"bytes,2,opt,name=avatarUrl,proto3" json:"avatarUrl,omitempty"`
	Nickname  string `protobuf:"bytes,3,opt,name=nickname,proto3" json:"nickname,omitempty"`
	Motto     string `protobuf:"bytes,4,opt,name=motto,proto3" json:"motto,omitempty"`
	// contains filtered or unexported fields
}

func (*UserDetail) Descriptor deprecated

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

Deprecated: Use UserDetail.ProtoReflect.Descriptor instead.

func (*UserDetail) FastRead

func (x *UserDetail) FastRead(buf []byte, _type int8, number int32) (offset int, err error)

func (*UserDetail) FastWrite

func (x *UserDetail) FastWrite(buf []byte) (offset int)

func (*UserDetail) GetAvatarUrl

func (x *UserDetail) GetAvatarUrl() string

func (*UserDetail) GetId

func (x *UserDetail) GetId() string

func (*UserDetail) GetMotto

func (x *UserDetail) GetMotto() string

func (*UserDetail) GetNickname

func (x *UserDetail) GetNickname() string

func (*UserDetail) ProtoMessage

func (*UserDetail) ProtoMessage()

func (*UserDetail) ProtoReflect

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

func (*UserDetail) Reset

func (x *UserDetail) Reset()

func (*UserDetail) Size

func (x *UserDetail) Size() (n int)

func (*UserDetail) String

func (x *UserDetail) String() string

type UserPreview

type UserPreview struct {
	Id        string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Nickname  string `protobuf:"bytes,2,opt,name=nickname,proto3" json:"nickname,omitempty"`
	AvatarUrl string `protobuf:"bytes,3,opt,name=avatarUrl,proto3" json:"avatarUrl,omitempty"`
	// contains filtered or unexported fields
}

func (*UserPreview) Descriptor deprecated

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

Deprecated: Use UserPreview.ProtoReflect.Descriptor instead.

func (*UserPreview) FastRead

func (x *UserPreview) FastRead(buf []byte, _type int8, number int32) (offset int, err error)

func (*UserPreview) FastWrite

func (x *UserPreview) FastWrite(buf []byte) (offset int)

func (*UserPreview) GetAvatarUrl

func (x *UserPreview) GetAvatarUrl() string

func (*UserPreview) GetId

func (x *UserPreview) GetId() string

func (*UserPreview) GetNickname

func (x *UserPreview) GetNickname() string

func (*UserPreview) ProtoMessage

func (*UserPreview) ProtoMessage()

func (*UserPreview) ProtoReflect

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

func (*UserPreview) Reset

func (x *UserPreview) Reset()

func (*UserPreview) Size

func (x *UserPreview) Size() (n int)

func (*UserPreview) String

func (x *UserPreview) String() string

type UserService

type UserService interface {
	GetUser(ctx context.Context, req *GetUserReq) (res *GetUserResp, err error)
	GetUserDetail(ctx context.Context, req *GetUserDetailReq) (res *GetUserDetailResp, err error)
	UpdateUser(ctx context.Context, req *UpdateUserReq) (res *UpdateUserResp, err error)
	SearchUser(ctx context.Context, req *SearchUserReq) (res *SearchUserResp, err error)
	DoLike(ctx context.Context, req *DoLikeReq) (res *DoLikeResp, err error)
	GetUserLike(ctx context.Context, req *GetUserLikedReq) (res *GetUserLikedResp, err error)
	GetTargetLikes(ctx context.Context, req *GetTargetLikesReq) (res *GetTargetLikesResp, err error)
	GetUserLikes(ctx context.Context, req *GetUserLikesReq) (res *GetUserLikesResp, err error)
	GetLikedUsers(ctx context.Context, req *GetLikedUsersReq) (res *GetLikedUsersResp, err error)
}

Directories

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

Jump to

Keyboard shortcuts

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