Documentation ¶
Index ¶
- Variables
- type DoLikeReq
- func (*DoLikeReq) Descriptor() ([]byte, []int)deprecated
- func (x *DoLikeReq) FastRead(buf []byte, _type int8, number int32) (offset int, err error)
- func (x *DoLikeReq) FastWrite(buf []byte) (offset int)
- func (x *DoLikeReq) GetAssociatedId() string
- func (x *DoLikeReq) GetLikedUserId() string
- func (x *DoLikeReq) GetTargetId() string
- func (x *DoLikeReq) GetType() LikeType
- func (x *DoLikeReq) GetUserId() string
- func (*DoLikeReq) ProtoMessage()
- func (x *DoLikeReq) ProtoReflect() protoreflect.Message
- func (x *DoLikeReq) Reset()
- func (x *DoLikeReq) Size() (n int)
- func (x *DoLikeReq) String() string
- type DoLikeResp
- func (*DoLikeResp) Descriptor() ([]byte, []int)deprecated
- func (x *DoLikeResp) FastRead(buf []byte, _type int8, number int32) (offset int, err error)
- func (x *DoLikeResp) FastWrite(buf []byte) (offset int)
- func (x *DoLikeResp) GetGetFish() bool
- func (x *DoLikeResp) GetGetFishTimes() int64
- func (x *DoLikeResp) GetLiked() bool
- func (*DoLikeResp) ProtoMessage()
- func (x *DoLikeResp) ProtoReflect() protoreflect.Message
- func (x *DoLikeResp) Reset()
- func (x *DoLikeResp) Size() (n int)
- func (x *DoLikeResp) String() string
- type GetLikedUsersReq
- func (*GetLikedUsersReq) Descriptor() ([]byte, []int)deprecated
- func (x *GetLikedUsersReq) FastRead(buf []byte, _type int8, number int32) (offset int, err error)
- func (x *GetLikedUsersReq) FastWrite(buf []byte) (offset int)
- func (x *GetLikedUsersReq) GetPaginationOptions() *basic.PaginationOptions
- func (x *GetLikedUsersReq) GetTargetId() string
- func (x *GetLikedUsersReq) GetType() LikeType
- func (*GetLikedUsersReq) ProtoMessage()
- func (x *GetLikedUsersReq) ProtoReflect() protoreflect.Message
- func (x *GetLikedUsersReq) Reset()
- func (x *GetLikedUsersReq) Size() (n int)
- func (x *GetLikedUsersReq) String() string
- type GetLikedUsersResp
- func (*GetLikedUsersResp) Descriptor() ([]byte, []int)deprecated
- func (x *GetLikedUsersResp) FastRead(buf []byte, _type int8, number int32) (offset int, err error)
- func (x *GetLikedUsersResp) FastWrite(buf []byte) (offset int)
- func (x *GetLikedUsersResp) GetToken() string
- func (x *GetLikedUsersResp) GetTotal() int64
- func (x *GetLikedUsersResp) GetUserIds() []string
- func (*GetLikedUsersResp) ProtoMessage()
- func (x *GetLikedUsersResp) ProtoReflect() protoreflect.Message
- func (x *GetLikedUsersResp) Reset()
- func (x *GetLikedUsersResp) Size() (n int)
- func (x *GetLikedUsersResp) String() string
- type GetTargetLikesReq
- func (*GetTargetLikesReq) Descriptor() ([]byte, []int)deprecated
- func (x *GetTargetLikesReq) FastRead(buf []byte, _type int8, number int32) (offset int, err error)
- func (x *GetTargetLikesReq) FastWrite(buf []byte) (offset int)
- func (x *GetTargetLikesReq) GetTargetId() string
- func (x *GetTargetLikesReq) GetType() LikeType
- func (*GetTargetLikesReq) ProtoMessage()
- func (x *GetTargetLikesReq) ProtoReflect() protoreflect.Message
- func (x *GetTargetLikesReq) Reset()
- func (x *GetTargetLikesReq) Size() (n int)
- func (x *GetTargetLikesReq) String() string
- type GetTargetLikesResp
- func (*GetTargetLikesResp) Descriptor() ([]byte, []int)deprecated
- func (x *GetTargetLikesResp) FastRead(buf []byte, _type int8, number int32) (offset int, err error)
- func (x *GetTargetLikesResp) FastWrite(buf []byte) (offset int)
- func (x *GetTargetLikesResp) GetCount() int64
- func (*GetTargetLikesResp) ProtoMessage()
- func (x *GetTargetLikesResp) ProtoReflect() protoreflect.Message
- func (x *GetTargetLikesResp) Reset()
- func (x *GetTargetLikesResp) Size() (n int)
- func (x *GetTargetLikesResp) String() string
- type GetUserDetailReq
- func (*GetUserDetailReq) Descriptor() ([]byte, []int)deprecated
- func (x *GetUserDetailReq) FastRead(buf []byte, _type int8, number int32) (offset int, err error)
- func (x *GetUserDetailReq) FastWrite(buf []byte) (offset int)
- func (x *GetUserDetailReq) GetUserId() string
- func (*GetUserDetailReq) ProtoMessage()
- func (x *GetUserDetailReq) ProtoReflect() protoreflect.Message
- func (x *GetUserDetailReq) Reset()
- func (x *GetUserDetailReq) Size() (n int)
- func (x *GetUserDetailReq) String() string
- type GetUserDetailResp
- func (*GetUserDetailResp) Descriptor() ([]byte, []int)deprecated
- func (x *GetUserDetailResp) FastRead(buf []byte, _type int8, number int32) (offset int, err error)
- func (x *GetUserDetailResp) FastWrite(buf []byte) (offset int)
- func (x *GetUserDetailResp) GetUser() *UserDetail
- func (*GetUserDetailResp) ProtoMessage()
- func (x *GetUserDetailResp) ProtoReflect() protoreflect.Message
- func (x *GetUserDetailResp) Reset()
- func (x *GetUserDetailResp) Size() (n int)
- func (x *GetUserDetailResp) String() string
- type GetUserLikedReq
- func (*GetUserLikedReq) Descriptor() ([]byte, []int)deprecated
- func (x *GetUserLikedReq) FastRead(buf []byte, _type int8, number int32) (offset int, err error)
- func (x *GetUserLikedReq) FastWrite(buf []byte) (offset int)
- func (x *GetUserLikedReq) GetTargetId() string
- func (x *GetUserLikedReq) GetType() LikeType
- func (x *GetUserLikedReq) GetUserId() string
- func (*GetUserLikedReq) ProtoMessage()
- func (x *GetUserLikedReq) ProtoReflect() protoreflect.Message
- func (x *GetUserLikedReq) Reset()
- func (x *GetUserLikedReq) Size() (n int)
- func (x *GetUserLikedReq) String() string
- type GetUserLikedResp
- func (*GetUserLikedResp) Descriptor() ([]byte, []int)deprecated
- func (x *GetUserLikedResp) FastRead(buf []byte, _type int8, number int32) (offset int, err error)
- func (x *GetUserLikedResp) FastWrite(buf []byte) (offset int)
- func (x *GetUserLikedResp) GetLiked() bool
- func (*GetUserLikedResp) ProtoMessage()
- func (x *GetUserLikedResp) ProtoReflect() protoreflect.Message
- func (x *GetUserLikedResp) Reset()
- func (x *GetUserLikedResp) Size() (n int)
- func (x *GetUserLikedResp) String() string
- type GetUserLikesReq
- func (*GetUserLikesReq) Descriptor() ([]byte, []int)deprecated
- func (x *GetUserLikesReq) FastRead(buf []byte, _type int8, number int32) (offset int, err error)
- func (x *GetUserLikesReq) FastWrite(buf []byte) (offset int)
- func (x *GetUserLikesReq) GetPaginationOptions() *basic.PaginationOptions
- func (x *GetUserLikesReq) GetType() LikeType
- func (x *GetUserLikesReq) GetUserId() string
- func (*GetUserLikesReq) ProtoMessage()
- func (x *GetUserLikesReq) ProtoReflect() protoreflect.Message
- func (x *GetUserLikesReq) Reset()
- func (x *GetUserLikesReq) Size() (n int)
- func (x *GetUserLikesReq) String() string
- type GetUserLikesResp
- func (*GetUserLikesResp) Descriptor() ([]byte, []int)deprecated
- func (x *GetUserLikesResp) FastRead(buf []byte, _type int8, number int32) (offset int, err error)
- func (x *GetUserLikesResp) FastWrite(buf []byte) (offset int)
- func (x *GetUserLikesResp) GetLikes() []*Like
- func (x *GetUserLikesResp) GetToken() string
- func (x *GetUserLikesResp) GetTotal() int64
- func (*GetUserLikesResp) ProtoMessage()
- func (x *GetUserLikesResp) ProtoReflect() protoreflect.Message
- func (x *GetUserLikesResp) Reset()
- func (x *GetUserLikesResp) Size() (n int)
- func (x *GetUserLikesResp) String() string
- type GetUserReq
- func (*GetUserReq) Descriptor() ([]byte, []int)deprecated
- func (x *GetUserReq) FastRead(buf []byte, _type int8, number int32) (offset int, err error)
- func (x *GetUserReq) FastWrite(buf []byte) (offset int)
- func (x *GetUserReq) GetUserId() string
- func (*GetUserReq) ProtoMessage()
- func (x *GetUserReq) ProtoReflect() protoreflect.Message
- func (x *GetUserReq) Reset()
- func (x *GetUserReq) Size() (n int)
- func (x *GetUserReq) String() string
- type GetUserResp
- func (*GetUserResp) Descriptor() ([]byte, []int)deprecated
- func (x *GetUserResp) FastRead(buf []byte, _type int8, number int32) (offset int, err error)
- func (x *GetUserResp) FastWrite(buf []byte) (offset int)
- func (x *GetUserResp) GetUser() *UserPreview
- func (*GetUserResp) ProtoMessage()
- func (x *GetUserResp) ProtoReflect() protoreflect.Message
- func (x *GetUserResp) Reset()
- func (x *GetUserResp) Size() (n int)
- func (x *GetUserResp) String() string
- type ItemScore
- func (*ItemScore) Descriptor() ([]byte, []int)deprecated
- func (x *ItemScore) FastRead(buf []byte, _type int8, number int32) (offset int, err error)
- func (x *ItemScore) FastWrite(buf []byte) (offset int)
- func (x *ItemScore) GetId() string
- func (x *ItemScore) GetScore() int64
- func (*ItemScore) ProtoMessage()
- func (x *ItemScore) ProtoReflect() protoreflect.Message
- func (x *ItemScore) Reset()
- func (x *ItemScore) Size() (n int)
- func (x *ItemScore) String() string
- type Like
- func (*Like) Descriptor() ([]byte, []int)deprecated
- func (x *Like) FastRead(buf []byte, _type int8, number int32) (offset int, err error)
- func (x *Like) FastWrite(buf []byte) (offset int)
- func (x *Like) GetAssociatedId() string
- func (x *Like) GetTargetId() string
- func (*Like) ProtoMessage()
- func (x *Like) ProtoReflect() protoreflect.Message
- func (x *Like) Reset()
- func (x *Like) Size() (n int)
- func (x *Like) String() string
- type LikeType
- type SearchUserReq
- func (*SearchUserReq) Descriptor() ([]byte, []int)deprecated
- func (x *SearchUserReq) FastRead(buf []byte, _type int8, number int32) (offset int, err error)
- func (x *SearchUserReq) FastWrite(buf []byte) (offset int)
- func (x *SearchUserReq) GetBackward() bool
- func (x *SearchUserReq) GetLastToken() string
- func (x *SearchUserReq) GetLimit() int64
- func (x *SearchUserReq) GetNickname() string
- func (x *SearchUserReq) GetOffset() int64
- func (*SearchUserReq) ProtoMessage()
- func (x *SearchUserReq) ProtoReflect() protoreflect.Message
- func (x *SearchUserReq) Reset()
- func (x *SearchUserReq) Size() (n int)
- func (x *SearchUserReq) String() string
- type SearchUserResp
- func (*SearchUserResp) Descriptor() ([]byte, []int)deprecated
- func (x *SearchUserResp) FastRead(buf []byte, _type int8, number int32) (offset int, err error)
- func (x *SearchUserResp) FastWrite(buf []byte) (offset int)
- func (x *SearchUserResp) GetToken() string
- func (x *SearchUserResp) GetTotal() int64
- func (x *SearchUserResp) GetUsers() []*UserPreview
- func (*SearchUserResp) ProtoMessage()
- func (x *SearchUserResp) ProtoReflect() protoreflect.Message
- func (x *SearchUserResp) Reset()
- func (x *SearchUserResp) Size() (n int)
- func (x *SearchUserResp) String() string
- type UpdateUserReq
- func (*UpdateUserReq) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateUserReq) FastRead(buf []byte, _type int8, number int32) (offset int, err error)
- func (x *UpdateUserReq) FastWrite(buf []byte) (offset int)
- func (x *UpdateUserReq) GetUser() *UserDetail
- func (*UpdateUserReq) ProtoMessage()
- func (x *UpdateUserReq) ProtoReflect() protoreflect.Message
- func (x *UpdateUserReq) Reset()
- func (x *UpdateUserReq) Size() (n int)
- func (x *UpdateUserReq) String() string
- type UpdateUserResp
- func (*UpdateUserResp) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateUserResp) FastRead(buf []byte, _type int8, number int32) (offset int, err error)
- func (x *UpdateUserResp) FastWrite(buf []byte) (offset int)
- func (*UpdateUserResp) ProtoMessage()
- func (x *UpdateUserResp) ProtoReflect() protoreflect.Message
- func (x *UpdateUserResp) Reset()
- func (x *UpdateUserResp) Size() (n int)
- func (x *UpdateUserResp) String() string
- type UserDetail
- func (*UserDetail) Descriptor() ([]byte, []int)deprecated
- func (x *UserDetail) FastRead(buf []byte, _type int8, number int32) (offset int, err error)
- func (x *UserDetail) FastWrite(buf []byte) (offset int)
- func (x *UserDetail) GetAvatarUrl() string
- func (x *UserDetail) GetId() string
- func (x *UserDetail) GetMotto() string
- func (x *UserDetail) GetNickname() string
- func (*UserDetail) ProtoMessage()
- func (x *UserDetail) ProtoReflect() protoreflect.Message
- func (x *UserDetail) Reset()
- func (x *UserDetail) Size() (n int)
- func (x *UserDetail) String() string
- type UserPreview
- func (*UserPreview) Descriptor() ([]byte, []int)deprecated
- func (x *UserPreview) FastRead(buf []byte, _type int8, number int32) (offset int, err error)
- func (x *UserPreview) FastWrite(buf []byte) (offset int)
- func (x *UserPreview) GetAvatarUrl() string
- func (x *UserPreview) GetId() string
- func (x *UserPreview) GetNickname() string
- func (*UserPreview) ProtoMessage()
- func (x *UserPreview) ProtoReflect() protoreflect.Message
- func (x *UserPreview) Reset()
- func (x *UserPreview) Size() (n int)
- func (x *UserPreview) String() string
- type UserService
Constants ¶
This section is empty.
Variables ¶
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.
var File_meowchat_user_common_proto protoreflect.FileDescriptor
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) GetAssociatedId ¶
func (*DoLikeReq) GetLikedUserId ¶
func (*DoLikeReq) GetTargetId ¶
func (*DoLikeReq) ProtoMessage ¶
func (*DoLikeReq) ProtoMessage()
func (*DoLikeReq) ProtoReflect ¶
func (x *DoLikeReq) ProtoReflect() protoreflect.Message
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) 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) 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) 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) 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) 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) 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) 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) 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) 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) 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) 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) 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) 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) ProtoMessage ¶
func (*ItemScore) ProtoMessage()
func (*ItemScore) ProtoReflect ¶
func (x *ItemScore) ProtoReflect() protoreflect.Message
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) GetAssociatedId ¶
func (*Like) GetTargetId ¶
func (*Like) ProtoMessage ¶
func (*Like) ProtoMessage()
func (*Like) ProtoReflect ¶
func (x *Like) ProtoReflect() protoreflect.Message
type LikeType ¶
type LikeType int32
func (LikeType) Descriptor ¶
func (LikeType) Descriptor() protoreflect.EnumDescriptor
func (LikeType) EnumDescriptor
deprecated
func (LikeType) Number ¶
func (x LikeType) Number() protoreflect.EnumNumber
func (LikeType) Type ¶
func (LikeType) Type() protoreflect.EnumType
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) 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) 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) 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) 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) 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) 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) }