2461 lines
82 KiB
Go
2461 lines
82 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||
// versions:
|
||
// protoc-gen-go v1.36.11
|
||
// protoc v7.34.0
|
||
// source: social.proto
|
||
|
||
package social
|
||
|
||
import (
|
||
common "github.com/topfans/backend/pkg/proto/common"
|
||
_ "google.golang.org/genproto/googleapis/api/annotations"
|
||
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
||
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
||
reflect "reflect"
|
||
sync "sync"
|
||
unsafe "unsafe"
|
||
)
|
||
|
||
const (
|
||
// Verify that this generated code is sufficiently up-to-date.
|
||
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
|
||
// Verify that runtime/protoimpl is sufficiently up-to-date.
|
||
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
||
)
|
||
|
||
// 好友请求信息
|
||
type FriendRequest struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // 请求ID
|
||
FromUserId int64 `protobuf:"varint,2,opt,name=from_user_id,json=fromUserId,proto3" json:"from_user_id,omitempty"` // 发送者用户ID
|
||
ToUserId int64 `protobuf:"varint,3,opt,name=to_user_id,json=toUserId,proto3" json:"to_user_id,omitempty"` // 接收者用户ID
|
||
StarId int64 `protobuf:"varint,4,opt,name=star_id,json=starId,proto3" json:"star_id,omitempty"` // 明星ID(粉丝身份)
|
||
Message string `protobuf:"bytes,5,opt,name=message,proto3" json:"message,omitempty"` // 请求附带消息
|
||
Status string `protobuf:"bytes,6,opt,name=status,proto3" json:"status,omitempty"` // 状态:pending, accepted, rejected, expired
|
||
CreatedAt int64 `protobuf:"varint,7,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` // 创建时间(毫秒时间戳)
|
||
ExpiresAt int64 `protobuf:"varint,8,opt,name=expires_at,json=expiresAt,proto3" json:"expires_at,omitempty"` // 过期时间(毫秒时间戳)
|
||
ProcessedAt int64 `protobuf:"varint,9,opt,name=processed_at,json=processedAt,proto3" json:"processed_at,omitempty"` // 处理时间(毫秒时间戳,可选)
|
||
// 扩展字段:包含用户信息(用于列表展示)
|
||
FromUserNickname string `protobuf:"bytes,10,opt,name=from_user_nickname,json=fromUserNickname,proto3" json:"from_user_nickname,omitempty"` // 发送者昵称
|
||
FromUserAvatar string `protobuf:"bytes,11,opt,name=from_user_avatar,json=fromUserAvatar,proto3" json:"from_user_avatar,omitempty"` // 发送者头像
|
||
ToUserNickname string `protobuf:"bytes,12,opt,name=to_user_nickname,json=toUserNickname,proto3" json:"to_user_nickname,omitempty"` // 接收者昵称
|
||
ToUserAvatar string `protobuf:"bytes,13,opt,name=to_user_avatar,json=toUserAvatar,proto3" json:"to_user_avatar,omitempty"` // 接收者头像
|
||
FromUserFanLevel int32 `protobuf:"varint,14,opt,name=from_user_fan_level,json=fromUserFanLevel,proto3" json:"from_user_fan_level,omitempty"` // 发送者粉丝等级
|
||
ToUserFanLevel int32 `protobuf:"varint,15,opt,name=to_user_fan_level,json=toUserFanLevel,proto3" json:"to_user_fan_level,omitempty"` // 接收者粉丝等级
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *FriendRequest) Reset() {
|
||
*x = FriendRequest{}
|
||
mi := &file_social_proto_msgTypes[0]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *FriendRequest) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*FriendRequest) ProtoMessage() {}
|
||
|
||
func (x *FriendRequest) ProtoReflect() protoreflect.Message {
|
||
mi := &file_social_proto_msgTypes[0]
|
||
if x != nil {
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
if ms.LoadMessageInfo() == nil {
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
return ms
|
||
}
|
||
return mi.MessageOf(x)
|
||
}
|
||
|
||
// Deprecated: Use FriendRequest.ProtoReflect.Descriptor instead.
|
||
func (*FriendRequest) Descriptor() ([]byte, []int) {
|
||
return file_social_proto_rawDescGZIP(), []int{0}
|
||
}
|
||
|
||
func (x *FriendRequest) GetId() int64 {
|
||
if x != nil {
|
||
return x.Id
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *FriendRequest) GetFromUserId() int64 {
|
||
if x != nil {
|
||
return x.FromUserId
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *FriendRequest) GetToUserId() int64 {
|
||
if x != nil {
|
||
return x.ToUserId
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *FriendRequest) GetStarId() int64 {
|
||
if x != nil {
|
||
return x.StarId
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *FriendRequest) GetMessage() string {
|
||
if x != nil {
|
||
return x.Message
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *FriendRequest) GetStatus() string {
|
||
if x != nil {
|
||
return x.Status
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *FriendRequest) GetCreatedAt() int64 {
|
||
if x != nil {
|
||
return x.CreatedAt
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *FriendRequest) GetExpiresAt() int64 {
|
||
if x != nil {
|
||
return x.ExpiresAt
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *FriendRequest) GetProcessedAt() int64 {
|
||
if x != nil {
|
||
return x.ProcessedAt
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *FriendRequest) GetFromUserNickname() string {
|
||
if x != nil {
|
||
return x.FromUserNickname
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *FriendRequest) GetFromUserAvatar() string {
|
||
if x != nil {
|
||
return x.FromUserAvatar
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *FriendRequest) GetToUserNickname() string {
|
||
if x != nil {
|
||
return x.ToUserNickname
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *FriendRequest) GetToUserAvatar() string {
|
||
if x != nil {
|
||
return x.ToUserAvatar
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *FriendRequest) GetFromUserFanLevel() int32 {
|
||
if x != nil {
|
||
return x.FromUserFanLevel
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *FriendRequest) GetToUserFanLevel() int32 {
|
||
if x != nil {
|
||
return x.ToUserFanLevel
|
||
}
|
||
return 0
|
||
}
|
||
|
||
// 好友关系信息
|
||
type Friendship struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // 关系ID
|
||
UserId int64 `protobuf:"varint,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // 用户ID
|
||
FriendId int64 `protobuf:"varint,3,opt,name=friend_id,json=friendId,proto3" json:"friend_id,omitempty"` // 好友用户ID
|
||
StarId int64 `protobuf:"varint,4,opt,name=star_id,json=starId,proto3" json:"star_id,omitempty"` // 明星ID(粉丝身份)
|
||
Status string `protobuf:"bytes,5,opt,name=status,proto3" json:"status,omitempty"` // 状态:accepted, blocked
|
||
Remark string `protobuf:"bytes,6,opt,name=remark,proto3" json:"remark,omitempty"` // 备注名(可选)
|
||
Intimacy int32 `protobuf:"varint,7,opt,name=intimacy,proto3" json:"intimacy,omitempty"` // 亲密度(预留字段)
|
||
CreatedAt int64 `protobuf:"varint,8,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` // 创建时间(毫秒时间戳)
|
||
// 扩展字段:好友信息(用于列表展示)
|
||
FriendNickname string `protobuf:"bytes,9,opt,name=friend_nickname,json=friendNickname,proto3" json:"friend_nickname,omitempty"` // 好友昵称
|
||
FriendAvatar string `protobuf:"bytes,10,opt,name=friend_avatar,json=friendAvatar,proto3" json:"friend_avatar,omitempty"` // 好友头像
|
||
FriendFanLevel int32 `protobuf:"varint,11,opt,name=friend_fan_level,json=friendFanLevel,proto3" json:"friend_fan_level,omitempty"` // 好友粉丝等级
|
||
FriendSocial int32 `protobuf:"varint,12,opt,name=friend_social,json=friendSocial,proto3" json:"friend_social,omitempty"` // 好友的好友数量
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *Friendship) Reset() {
|
||
*x = Friendship{}
|
||
mi := &file_social_proto_msgTypes[1]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *Friendship) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*Friendship) ProtoMessage() {}
|
||
|
||
func (x *Friendship) ProtoReflect() protoreflect.Message {
|
||
mi := &file_social_proto_msgTypes[1]
|
||
if x != nil {
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
if ms.LoadMessageInfo() == nil {
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
return ms
|
||
}
|
||
return mi.MessageOf(x)
|
||
}
|
||
|
||
// Deprecated: Use Friendship.ProtoReflect.Descriptor instead.
|
||
func (*Friendship) Descriptor() ([]byte, []int) {
|
||
return file_social_proto_rawDescGZIP(), []int{1}
|
||
}
|
||
|
||
func (x *Friendship) GetId() int64 {
|
||
if x != nil {
|
||
return x.Id
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *Friendship) GetUserId() int64 {
|
||
if x != nil {
|
||
return x.UserId
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *Friendship) GetFriendId() int64 {
|
||
if x != nil {
|
||
return x.FriendId
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *Friendship) GetStarId() int64 {
|
||
if x != nil {
|
||
return x.StarId
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *Friendship) GetStatus() string {
|
||
if x != nil {
|
||
return x.Status
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *Friendship) GetRemark() string {
|
||
if x != nil {
|
||
return x.Remark
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *Friendship) GetIntimacy() int32 {
|
||
if x != nil {
|
||
return x.Intimacy
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *Friendship) GetCreatedAt() int64 {
|
||
if x != nil {
|
||
return x.CreatedAt
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *Friendship) GetFriendNickname() string {
|
||
if x != nil {
|
||
return x.FriendNickname
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *Friendship) GetFriendAvatar() string {
|
||
if x != nil {
|
||
return x.FriendAvatar
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *Friendship) GetFriendFanLevel() int32 {
|
||
if x != nil {
|
||
return x.FriendFanLevel
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *Friendship) GetFriendSocial() int32 {
|
||
if x != nil {
|
||
return x.FriendSocial
|
||
}
|
||
return 0
|
||
}
|
||
|
||
// 发送好友请求
|
||
type SendFriendRequestRequest struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
FriendUserId int64 `protobuf:"varint,1,opt,name=friend_user_id,json=friendUserId,proto3" json:"friend_user_id,omitempty"` // 好友用户ID(要添加的用户ID)
|
||
Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` // 请求附带消息(可选)
|
||
Nickname string `protobuf:"bytes,3,opt,name=nickname,proto3" json:"nickname,omitempty"` // 昵称(用于按昵称搜索,与 friend_user_id 二选一)
|
||
SearchMode bool `protobuf:"varint,4,opt,name=search_mode,json=searchMode,proto3" json:"search_mode,omitempty"` // 搜索模式(true=仅搜索返回匹配用户,false=正常发送请求)
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *SendFriendRequestRequest) Reset() {
|
||
*x = SendFriendRequestRequest{}
|
||
mi := &file_social_proto_msgTypes[2]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *SendFriendRequestRequest) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*SendFriendRequestRequest) ProtoMessage() {}
|
||
|
||
func (x *SendFriendRequestRequest) ProtoReflect() protoreflect.Message {
|
||
mi := &file_social_proto_msgTypes[2]
|
||
if x != nil {
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
if ms.LoadMessageInfo() == nil {
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
return ms
|
||
}
|
||
return mi.MessageOf(x)
|
||
}
|
||
|
||
// Deprecated: Use SendFriendRequestRequest.ProtoReflect.Descriptor instead.
|
||
func (*SendFriendRequestRequest) Descriptor() ([]byte, []int) {
|
||
return file_social_proto_rawDescGZIP(), []int{2}
|
||
}
|
||
|
||
func (x *SendFriendRequestRequest) GetFriendUserId() int64 {
|
||
if x != nil {
|
||
return x.FriendUserId
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *SendFriendRequestRequest) GetMessage() string {
|
||
if x != nil {
|
||
return x.Message
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *SendFriendRequestRequest) GetNickname() string {
|
||
if x != nil {
|
||
return x.Nickname
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *SendFriendRequestRequest) GetSearchMode() bool {
|
||
if x != nil {
|
||
return x.SearchMode
|
||
}
|
||
return false
|
||
}
|
||
|
||
type SendFriendRequestResponse struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
Base *common.BaseResponse `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"`
|
||
RequestId int64 `protobuf:"varint,2,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` // 创建的请求ID
|
||
Status string `protobuf:"bytes,3,opt,name=status,proto3" json:"status,omitempty"` // 请求状态
|
||
CreatedAt int64 `protobuf:"varint,4,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` // 创建时间
|
||
ExpiresAt int64 `protobuf:"varint,5,opt,name=expires_at,json=expiresAt,proto3" json:"expires_at,omitempty"` // 过期时间
|
||
MatchedUsers []*FanProfileSearchResult `protobuf:"bytes,6,rep,name=matched_users,json=matchedUsers,proto3" json:"matched_users,omitempty"` // 匹配的用户列表(仅 search_mode=true 时返回)
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *SendFriendRequestResponse) Reset() {
|
||
*x = SendFriendRequestResponse{}
|
||
mi := &file_social_proto_msgTypes[3]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *SendFriendRequestResponse) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*SendFriendRequestResponse) ProtoMessage() {}
|
||
|
||
func (x *SendFriendRequestResponse) ProtoReflect() protoreflect.Message {
|
||
mi := &file_social_proto_msgTypes[3]
|
||
if x != nil {
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
if ms.LoadMessageInfo() == nil {
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
return ms
|
||
}
|
||
return mi.MessageOf(x)
|
||
}
|
||
|
||
// Deprecated: Use SendFriendRequestResponse.ProtoReflect.Descriptor instead.
|
||
func (*SendFriendRequestResponse) Descriptor() ([]byte, []int) {
|
||
return file_social_proto_rawDescGZIP(), []int{3}
|
||
}
|
||
|
||
func (x *SendFriendRequestResponse) GetBase() *common.BaseResponse {
|
||
if x != nil {
|
||
return x.Base
|
||
}
|
||
return nil
|
||
}
|
||
|
||
func (x *SendFriendRequestResponse) GetRequestId() int64 {
|
||
if x != nil {
|
||
return x.RequestId
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *SendFriendRequestResponse) GetStatus() string {
|
||
if x != nil {
|
||
return x.Status
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *SendFriendRequestResponse) GetCreatedAt() int64 {
|
||
if x != nil {
|
||
return x.CreatedAt
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *SendFriendRequestResponse) GetExpiresAt() int64 {
|
||
if x != nil {
|
||
return x.ExpiresAt
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *SendFriendRequestResponse) GetMatchedUsers() []*FanProfileSearchResult {
|
||
if x != nil {
|
||
return x.MatchedUsers
|
||
}
|
||
return nil
|
||
}
|
||
|
||
// 获取好友请求列表
|
||
type GetFriendRequestsRequest struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` // 请求类型:received(收到的), sent(发出的)
|
||
Status string `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"` // 状态筛选:pending, accepted, rejected, expired, all(可选)
|
||
Page int32 `protobuf:"varint,3,opt,name=page,proto3" json:"page,omitempty"` // 页码(从1开始)
|
||
PageSize int32 `protobuf:"varint,4,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` // 每页数量
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *GetFriendRequestsRequest) Reset() {
|
||
*x = GetFriendRequestsRequest{}
|
||
mi := &file_social_proto_msgTypes[4]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *GetFriendRequestsRequest) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*GetFriendRequestsRequest) ProtoMessage() {}
|
||
|
||
func (x *GetFriendRequestsRequest) ProtoReflect() protoreflect.Message {
|
||
mi := &file_social_proto_msgTypes[4]
|
||
if x != nil {
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
if ms.LoadMessageInfo() == nil {
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
return ms
|
||
}
|
||
return mi.MessageOf(x)
|
||
}
|
||
|
||
// Deprecated: Use GetFriendRequestsRequest.ProtoReflect.Descriptor instead.
|
||
func (*GetFriendRequestsRequest) Descriptor() ([]byte, []int) {
|
||
return file_social_proto_rawDescGZIP(), []int{4}
|
||
}
|
||
|
||
func (x *GetFriendRequestsRequest) GetType() string {
|
||
if x != nil {
|
||
return x.Type
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *GetFriendRequestsRequest) GetStatus() string {
|
||
if x != nil {
|
||
return x.Status
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *GetFriendRequestsRequest) GetPage() int32 {
|
||
if x != nil {
|
||
return x.Page
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *GetFriendRequestsRequest) GetPageSize() int32 {
|
||
if x != nil {
|
||
return x.PageSize
|
||
}
|
||
return 0
|
||
}
|
||
|
||
type GetFriendRequestsResponse struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
Base *common.BaseResponse `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"`
|
||
Items []*FriendRequest `protobuf:"bytes,2,rep,name=items,proto3" json:"items,omitempty"` // 请求列表
|
||
Total int64 `protobuf:"varint,3,opt,name=total,proto3" json:"total,omitempty"` // 总数
|
||
Page int32 `protobuf:"varint,4,opt,name=page,proto3" json:"page,omitempty"` // 当前页码
|
||
PageSize int32 `protobuf:"varint,5,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` // 每页数量
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *GetFriendRequestsResponse) Reset() {
|
||
*x = GetFriendRequestsResponse{}
|
||
mi := &file_social_proto_msgTypes[5]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *GetFriendRequestsResponse) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*GetFriendRequestsResponse) ProtoMessage() {}
|
||
|
||
func (x *GetFriendRequestsResponse) ProtoReflect() protoreflect.Message {
|
||
mi := &file_social_proto_msgTypes[5]
|
||
if x != nil {
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
if ms.LoadMessageInfo() == nil {
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
return ms
|
||
}
|
||
return mi.MessageOf(x)
|
||
}
|
||
|
||
// Deprecated: Use GetFriendRequestsResponse.ProtoReflect.Descriptor instead.
|
||
func (*GetFriendRequestsResponse) Descriptor() ([]byte, []int) {
|
||
return file_social_proto_rawDescGZIP(), []int{5}
|
||
}
|
||
|
||
func (x *GetFriendRequestsResponse) GetBase() *common.BaseResponse {
|
||
if x != nil {
|
||
return x.Base
|
||
}
|
||
return nil
|
||
}
|
||
|
||
func (x *GetFriendRequestsResponse) GetItems() []*FriendRequest {
|
||
if x != nil {
|
||
return x.Items
|
||
}
|
||
return nil
|
||
}
|
||
|
||
func (x *GetFriendRequestsResponse) GetTotal() int64 {
|
||
if x != nil {
|
||
return x.Total
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *GetFriendRequestsResponse) GetPage() int32 {
|
||
if x != nil {
|
||
return x.Page
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *GetFriendRequestsResponse) GetPageSize() int32 {
|
||
if x != nil {
|
||
return x.PageSize
|
||
}
|
||
return 0
|
||
}
|
||
|
||
// 处理好友请求(接受/拒绝)
|
||
type HandleFriendRequestRequest struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
RequestId int64 `protobuf:"varint,1,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` // 请求ID
|
||
Action string `protobuf:"bytes,2,opt,name=action,proto3" json:"action,omitempty"` // 操作:accept(接受), reject(拒绝)
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *HandleFriendRequestRequest) Reset() {
|
||
*x = HandleFriendRequestRequest{}
|
||
mi := &file_social_proto_msgTypes[6]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *HandleFriendRequestRequest) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*HandleFriendRequestRequest) ProtoMessage() {}
|
||
|
||
func (x *HandleFriendRequestRequest) ProtoReflect() protoreflect.Message {
|
||
mi := &file_social_proto_msgTypes[6]
|
||
if x != nil {
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
if ms.LoadMessageInfo() == nil {
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
return ms
|
||
}
|
||
return mi.MessageOf(x)
|
||
}
|
||
|
||
// Deprecated: Use HandleFriendRequestRequest.ProtoReflect.Descriptor instead.
|
||
func (*HandleFriendRequestRequest) Descriptor() ([]byte, []int) {
|
||
return file_social_proto_rawDescGZIP(), []int{6}
|
||
}
|
||
|
||
func (x *HandleFriendRequestRequest) GetRequestId() int64 {
|
||
if x != nil {
|
||
return x.RequestId
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *HandleFriendRequestRequest) GetAction() string {
|
||
if x != nil {
|
||
return x.Action
|
||
}
|
||
return ""
|
||
}
|
||
|
||
type HandleFriendRequestResponse struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
Base *common.BaseResponse `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"`
|
||
Action string `protobuf:"bytes,2,opt,name=action,proto3" json:"action,omitempty"` // 执行的操作
|
||
FriendshipCreated bool `protobuf:"varint,3,opt,name=friendship_created,json=friendshipCreated,proto3" json:"friendship_created,omitempty"` // 是否创建了好友关系(仅 accept 时有值)
|
||
ProcessedAt int64 `protobuf:"varint,4,opt,name=processed_at,json=processedAt,proto3" json:"processed_at,omitempty"` // 处理时间
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *HandleFriendRequestResponse) Reset() {
|
||
*x = HandleFriendRequestResponse{}
|
||
mi := &file_social_proto_msgTypes[7]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *HandleFriendRequestResponse) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*HandleFriendRequestResponse) ProtoMessage() {}
|
||
|
||
func (x *HandleFriendRequestResponse) ProtoReflect() protoreflect.Message {
|
||
mi := &file_social_proto_msgTypes[7]
|
||
if x != nil {
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
if ms.LoadMessageInfo() == nil {
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
return ms
|
||
}
|
||
return mi.MessageOf(x)
|
||
}
|
||
|
||
// Deprecated: Use HandleFriendRequestResponse.ProtoReflect.Descriptor instead.
|
||
func (*HandleFriendRequestResponse) Descriptor() ([]byte, []int) {
|
||
return file_social_proto_rawDescGZIP(), []int{7}
|
||
}
|
||
|
||
func (x *HandleFriendRequestResponse) GetBase() *common.BaseResponse {
|
||
if x != nil {
|
||
return x.Base
|
||
}
|
||
return nil
|
||
}
|
||
|
||
func (x *HandleFriendRequestResponse) GetAction() string {
|
||
if x != nil {
|
||
return x.Action
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *HandleFriendRequestResponse) GetFriendshipCreated() bool {
|
||
if x != nil {
|
||
return x.FriendshipCreated
|
||
}
|
||
return false
|
||
}
|
||
|
||
func (x *HandleFriendRequestResponse) GetProcessedAt() int64 {
|
||
if x != nil {
|
||
return x.ProcessedAt
|
||
}
|
||
return 0
|
||
}
|
||
|
||
// 获取好友列表
|
||
type GetFriendListRequest struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
Keyword string `protobuf:"bytes,1,opt,name=keyword,proto3" json:"keyword,omitempty"` // 搜索关键词(搜索昵称或备注,可选)
|
||
Page int32 `protobuf:"varint,2,opt,name=page,proto3" json:"page,omitempty"` // 页码(从1开始)
|
||
PageSize int32 `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` // 每页数量
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *GetFriendListRequest) Reset() {
|
||
*x = GetFriendListRequest{}
|
||
mi := &file_social_proto_msgTypes[8]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *GetFriendListRequest) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*GetFriendListRequest) ProtoMessage() {}
|
||
|
||
func (x *GetFriendListRequest) ProtoReflect() protoreflect.Message {
|
||
mi := &file_social_proto_msgTypes[8]
|
||
if x != nil {
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
if ms.LoadMessageInfo() == nil {
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
return ms
|
||
}
|
||
return mi.MessageOf(x)
|
||
}
|
||
|
||
// Deprecated: Use GetFriendListRequest.ProtoReflect.Descriptor instead.
|
||
func (*GetFriendListRequest) Descriptor() ([]byte, []int) {
|
||
return file_social_proto_rawDescGZIP(), []int{8}
|
||
}
|
||
|
||
func (x *GetFriendListRequest) GetKeyword() string {
|
||
if x != nil {
|
||
return x.Keyword
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *GetFriendListRequest) GetPage() int32 {
|
||
if x != nil {
|
||
return x.Page
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *GetFriendListRequest) GetPageSize() int32 {
|
||
if x != nil {
|
||
return x.PageSize
|
||
}
|
||
return 0
|
||
}
|
||
|
||
type GetFriendListResponse struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
Base *common.BaseResponse `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"`
|
||
Items []*Friendship `protobuf:"bytes,2,rep,name=items,proto3" json:"items,omitempty"` // 好友列表
|
||
Total int64 `protobuf:"varint,3,opt,name=total,proto3" json:"total,omitempty"` // 总数
|
||
Page int32 `protobuf:"varint,4,opt,name=page,proto3" json:"page,omitempty"` // 当前页码
|
||
PageSize int32 `protobuf:"varint,5,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` // 每页数量
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *GetFriendListResponse) Reset() {
|
||
*x = GetFriendListResponse{}
|
||
mi := &file_social_proto_msgTypes[9]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *GetFriendListResponse) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*GetFriendListResponse) ProtoMessage() {}
|
||
|
||
func (x *GetFriendListResponse) ProtoReflect() protoreflect.Message {
|
||
mi := &file_social_proto_msgTypes[9]
|
||
if x != nil {
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
if ms.LoadMessageInfo() == nil {
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
return ms
|
||
}
|
||
return mi.MessageOf(x)
|
||
}
|
||
|
||
// Deprecated: Use GetFriendListResponse.ProtoReflect.Descriptor instead.
|
||
func (*GetFriendListResponse) Descriptor() ([]byte, []int) {
|
||
return file_social_proto_rawDescGZIP(), []int{9}
|
||
}
|
||
|
||
func (x *GetFriendListResponse) GetBase() *common.BaseResponse {
|
||
if x != nil {
|
||
return x.Base
|
||
}
|
||
return nil
|
||
}
|
||
|
||
func (x *GetFriendListResponse) GetItems() []*Friendship {
|
||
if x != nil {
|
||
return x.Items
|
||
}
|
||
return nil
|
||
}
|
||
|
||
func (x *GetFriendListResponse) GetTotal() int64 {
|
||
if x != nil {
|
||
return x.Total
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *GetFriendListResponse) GetPage() int32 {
|
||
if x != nil {
|
||
return x.Page
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *GetFriendListResponse) GetPageSize() int32 {
|
||
if x != nil {
|
||
return x.PageSize
|
||
}
|
||
return 0
|
||
}
|
||
|
||
// 删除好友
|
||
type DeleteFriendRequest struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
FriendUserId int64 `protobuf:"varint,1,opt,name=friend_user_id,json=friendUserId,proto3" json:"friend_user_id,omitempty"` // 好友用户ID
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *DeleteFriendRequest) Reset() {
|
||
*x = DeleteFriendRequest{}
|
||
mi := &file_social_proto_msgTypes[10]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *DeleteFriendRequest) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*DeleteFriendRequest) ProtoMessage() {}
|
||
|
||
func (x *DeleteFriendRequest) ProtoReflect() protoreflect.Message {
|
||
mi := &file_social_proto_msgTypes[10]
|
||
if x != nil {
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
if ms.LoadMessageInfo() == nil {
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
return ms
|
||
}
|
||
return mi.MessageOf(x)
|
||
}
|
||
|
||
// Deprecated: Use DeleteFriendRequest.ProtoReflect.Descriptor instead.
|
||
func (*DeleteFriendRequest) Descriptor() ([]byte, []int) {
|
||
return file_social_proto_rawDescGZIP(), []int{10}
|
||
}
|
||
|
||
func (x *DeleteFriendRequest) GetFriendUserId() int64 {
|
||
if x != nil {
|
||
return x.FriendUserId
|
||
}
|
||
return 0
|
||
}
|
||
|
||
type DeleteFriendResponse struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
Base *common.BaseResponse `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"`
|
||
Success bool `protobuf:"varint,2,opt,name=success,proto3" json:"success,omitempty"` // 是否成功
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *DeleteFriendResponse) Reset() {
|
||
*x = DeleteFriendResponse{}
|
||
mi := &file_social_proto_msgTypes[11]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *DeleteFriendResponse) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*DeleteFriendResponse) ProtoMessage() {}
|
||
|
||
func (x *DeleteFriendResponse) ProtoReflect() protoreflect.Message {
|
||
mi := &file_social_proto_msgTypes[11]
|
||
if x != nil {
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
if ms.LoadMessageInfo() == nil {
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
return ms
|
||
}
|
||
return mi.MessageOf(x)
|
||
}
|
||
|
||
// Deprecated: Use DeleteFriendResponse.ProtoReflect.Descriptor instead.
|
||
func (*DeleteFriendResponse) Descriptor() ([]byte, []int) {
|
||
return file_social_proto_rawDescGZIP(), []int{11}
|
||
}
|
||
|
||
func (x *DeleteFriendResponse) GetBase() *common.BaseResponse {
|
||
if x != nil {
|
||
return x.Base
|
||
}
|
||
return nil
|
||
}
|
||
|
||
func (x *DeleteFriendResponse) GetSuccess() bool {
|
||
if x != nil {
|
||
return x.Success
|
||
}
|
||
return false
|
||
}
|
||
|
||
// 设置好友备注
|
||
type SetFriendRemarkRequest struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
FriendUserId int64 `protobuf:"varint,1,opt,name=friend_user_id,json=friendUserId,proto3" json:"friend_user_id,omitempty"` // 好友用户ID
|
||
Remark string `protobuf:"bytes,2,opt,name=remark,proto3" json:"remark,omitempty"` // 备注名
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *SetFriendRemarkRequest) Reset() {
|
||
*x = SetFriendRemarkRequest{}
|
||
mi := &file_social_proto_msgTypes[12]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *SetFriendRemarkRequest) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*SetFriendRemarkRequest) ProtoMessage() {}
|
||
|
||
func (x *SetFriendRemarkRequest) ProtoReflect() protoreflect.Message {
|
||
mi := &file_social_proto_msgTypes[12]
|
||
if x != nil {
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
if ms.LoadMessageInfo() == nil {
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
return ms
|
||
}
|
||
return mi.MessageOf(x)
|
||
}
|
||
|
||
// Deprecated: Use SetFriendRemarkRequest.ProtoReflect.Descriptor instead.
|
||
func (*SetFriendRemarkRequest) Descriptor() ([]byte, []int) {
|
||
return file_social_proto_rawDescGZIP(), []int{12}
|
||
}
|
||
|
||
func (x *SetFriendRemarkRequest) GetFriendUserId() int64 {
|
||
if x != nil {
|
||
return x.FriendUserId
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *SetFriendRemarkRequest) GetRemark() string {
|
||
if x != nil {
|
||
return x.Remark
|
||
}
|
||
return ""
|
||
}
|
||
|
||
type SetFriendRemarkResponse struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
Base *common.BaseResponse `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"`
|
||
Remark string `protobuf:"bytes,2,opt,name=remark,proto3" json:"remark,omitempty"` // 更新后的备注名
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *SetFriendRemarkResponse) Reset() {
|
||
*x = SetFriendRemarkResponse{}
|
||
mi := &file_social_proto_msgTypes[13]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *SetFriendRemarkResponse) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*SetFriendRemarkResponse) ProtoMessage() {}
|
||
|
||
func (x *SetFriendRemarkResponse) ProtoReflect() protoreflect.Message {
|
||
mi := &file_social_proto_msgTypes[13]
|
||
if x != nil {
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
if ms.LoadMessageInfo() == nil {
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
return ms
|
||
}
|
||
return mi.MessageOf(x)
|
||
}
|
||
|
||
// Deprecated: Use SetFriendRemarkResponse.ProtoReflect.Descriptor instead.
|
||
func (*SetFriendRemarkResponse) Descriptor() ([]byte, []int) {
|
||
return file_social_proto_rawDescGZIP(), []int{13}
|
||
}
|
||
|
||
func (x *SetFriendRemarkResponse) GetBase() *common.BaseResponse {
|
||
if x != nil {
|
||
return x.Base
|
||
}
|
||
return nil
|
||
}
|
||
|
||
func (x *SetFriendRemarkResponse) GetRemark() string {
|
||
if x != nil {
|
||
return x.Remark
|
||
}
|
||
return ""
|
||
}
|
||
|
||
// 检查好友关系
|
||
type CheckFriendshipRequest struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
UserId int64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // 用户ID
|
||
FriendUserId int64 `protobuf:"varint,2,opt,name=friend_user_id,json=friendUserId,proto3" json:"friend_user_id,omitempty"` // 好友用户ID
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *CheckFriendshipRequest) Reset() {
|
||
*x = CheckFriendshipRequest{}
|
||
mi := &file_social_proto_msgTypes[14]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *CheckFriendshipRequest) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*CheckFriendshipRequest) ProtoMessage() {}
|
||
|
||
func (x *CheckFriendshipRequest) ProtoReflect() protoreflect.Message {
|
||
mi := &file_social_proto_msgTypes[14]
|
||
if x != nil {
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
if ms.LoadMessageInfo() == nil {
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
return ms
|
||
}
|
||
return mi.MessageOf(x)
|
||
}
|
||
|
||
// Deprecated: Use CheckFriendshipRequest.ProtoReflect.Descriptor instead.
|
||
func (*CheckFriendshipRequest) Descriptor() ([]byte, []int) {
|
||
return file_social_proto_rawDescGZIP(), []int{14}
|
||
}
|
||
|
||
func (x *CheckFriendshipRequest) GetUserId() int64 {
|
||
if x != nil {
|
||
return x.UserId
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *CheckFriendshipRequest) GetFriendUserId() int64 {
|
||
if x != nil {
|
||
return x.FriendUserId
|
||
}
|
||
return 0
|
||
}
|
||
|
||
type CheckFriendshipResponse struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
Base *common.BaseResponse `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"`
|
||
IsFriend bool `protobuf:"varint,2,opt,name=is_friend,json=isFriend,proto3" json:"is_friend,omitempty"` // 是否为好友
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *CheckFriendshipResponse) Reset() {
|
||
*x = CheckFriendshipResponse{}
|
||
mi := &file_social_proto_msgTypes[15]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *CheckFriendshipResponse) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*CheckFriendshipResponse) ProtoMessage() {}
|
||
|
||
func (x *CheckFriendshipResponse) ProtoReflect() protoreflect.Message {
|
||
mi := &file_social_proto_msgTypes[15]
|
||
if x != nil {
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
if ms.LoadMessageInfo() == nil {
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
return ms
|
||
}
|
||
return mi.MessageOf(x)
|
||
}
|
||
|
||
// Deprecated: Use CheckFriendshipResponse.ProtoReflect.Descriptor instead.
|
||
func (*CheckFriendshipResponse) Descriptor() ([]byte, []int) {
|
||
return file_social_proto_rawDescGZIP(), []int{15}
|
||
}
|
||
|
||
func (x *CheckFriendshipResponse) GetBase() *common.BaseResponse {
|
||
if x != nil {
|
||
return x.Base
|
||
}
|
||
return nil
|
||
}
|
||
|
||
func (x *CheckFriendshipResponse) GetIsFriend() bool {
|
||
if x != nil {
|
||
return x.IsFriend
|
||
}
|
||
return false
|
||
}
|
||
|
||
// 获取好友数量
|
||
type GetFriendCountRequest struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *GetFriendCountRequest) Reset() {
|
||
*x = GetFriendCountRequest{}
|
||
mi := &file_social_proto_msgTypes[16]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *GetFriendCountRequest) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*GetFriendCountRequest) ProtoMessage() {}
|
||
|
||
func (x *GetFriendCountRequest) ProtoReflect() protoreflect.Message {
|
||
mi := &file_social_proto_msgTypes[16]
|
||
if x != nil {
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
if ms.LoadMessageInfo() == nil {
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
return ms
|
||
}
|
||
return mi.MessageOf(x)
|
||
}
|
||
|
||
// Deprecated: Use GetFriendCountRequest.ProtoReflect.Descriptor instead.
|
||
func (*GetFriendCountRequest) Descriptor() ([]byte, []int) {
|
||
return file_social_proto_rawDescGZIP(), []int{16}
|
||
}
|
||
|
||
type GetFriendCountResponse struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
Base *common.BaseResponse `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"`
|
||
Count int64 `protobuf:"varint,2,opt,name=count,proto3" json:"count,omitempty"` // 好友数量
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *GetFriendCountResponse) Reset() {
|
||
*x = GetFriendCountResponse{}
|
||
mi := &file_social_proto_msgTypes[17]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *GetFriendCountResponse) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*GetFriendCountResponse) ProtoMessage() {}
|
||
|
||
func (x *GetFriendCountResponse) ProtoReflect() protoreflect.Message {
|
||
mi := &file_social_proto_msgTypes[17]
|
||
if x != nil {
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
if ms.LoadMessageInfo() == nil {
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
return ms
|
||
}
|
||
return mi.MessageOf(x)
|
||
}
|
||
|
||
// Deprecated: Use GetFriendCountResponse.ProtoReflect.Descriptor instead.
|
||
func (*GetFriendCountResponse) Descriptor() ([]byte, []int) {
|
||
return file_social_proto_rawDescGZIP(), []int{17}
|
||
}
|
||
|
||
func (x *GetFriendCountResponse) GetBase() *common.BaseResponse {
|
||
if x != nil {
|
||
return x.Base
|
||
}
|
||
return nil
|
||
}
|
||
|
||
func (x *GetFriendCountResponse) GetCount() int64 {
|
||
if x != nil {
|
||
return x.Count
|
||
}
|
||
return 0
|
||
}
|
||
|
||
// 查找用户信息(用于加好友)
|
||
type SearchUserForFriendRequest struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
FriendFanProfileId int64 `protobuf:"varint,1,opt,name=friend_fan_profile_id,json=friendFanProfileId,proto3" json:"friend_fan_profile_id,omitempty"` // 粉丝档案ID
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *SearchUserForFriendRequest) Reset() {
|
||
*x = SearchUserForFriendRequest{}
|
||
mi := &file_social_proto_msgTypes[18]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *SearchUserForFriendRequest) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*SearchUserForFriendRequest) ProtoMessage() {}
|
||
|
||
func (x *SearchUserForFriendRequest) ProtoReflect() protoreflect.Message {
|
||
mi := &file_social_proto_msgTypes[18]
|
||
if x != nil {
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
if ms.LoadMessageInfo() == nil {
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
return ms
|
||
}
|
||
return mi.MessageOf(x)
|
||
}
|
||
|
||
// Deprecated: Use SearchUserForFriendRequest.ProtoReflect.Descriptor instead.
|
||
func (*SearchUserForFriendRequest) Descriptor() ([]byte, []int) {
|
||
return file_social_proto_rawDescGZIP(), []int{18}
|
||
}
|
||
|
||
func (x *SearchUserForFriendRequest) GetFriendFanProfileId() int64 {
|
||
if x != nil {
|
||
return x.FriendFanProfileId
|
||
}
|
||
return 0
|
||
}
|
||
|
||
type SearchUserForFriendResponse struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
Base *common.BaseResponse `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"`
|
||
User *FanProfileSearchResult `protobuf:"bytes,2,opt,name=user,proto3" json:"user,omitempty"` // 用户信息及关系状态
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *SearchUserForFriendResponse) Reset() {
|
||
*x = SearchUserForFriendResponse{}
|
||
mi := &file_social_proto_msgTypes[19]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *SearchUserForFriendResponse) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*SearchUserForFriendResponse) ProtoMessage() {}
|
||
|
||
func (x *SearchUserForFriendResponse) ProtoReflect() protoreflect.Message {
|
||
mi := &file_social_proto_msgTypes[19]
|
||
if x != nil {
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
if ms.LoadMessageInfo() == nil {
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
return ms
|
||
}
|
||
return mi.MessageOf(x)
|
||
}
|
||
|
||
// Deprecated: Use SearchUserForFriendResponse.ProtoReflect.Descriptor instead.
|
||
func (*SearchUserForFriendResponse) Descriptor() ([]byte, []int) {
|
||
return file_social_proto_rawDescGZIP(), []int{19}
|
||
}
|
||
|
||
func (x *SearchUserForFriendResponse) GetBase() *common.BaseResponse {
|
||
if x != nil {
|
||
return x.Base
|
||
}
|
||
return nil
|
||
}
|
||
|
||
func (x *SearchUserForFriendResponse) GetUser() *FanProfileSearchResult {
|
||
if x != nil {
|
||
return x.User
|
||
}
|
||
return nil
|
||
}
|
||
|
||
// 粉丝档案搜索结果
|
||
type FanProfileSearchResult struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
FanProfileId int64 `protobuf:"varint,1,opt,name=fan_profile_id,json=fanProfileId,proto3" json:"fan_profile_id,omitempty"` // 粉丝档案ID
|
||
UserId int64 `protobuf:"varint,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // 用户ID
|
||
Nickname string `protobuf:"bytes,3,opt,name=nickname,proto3" json:"nickname,omitempty"` // 昵称
|
||
Avatar string `protobuf:"bytes,4,opt,name=avatar,proto3" json:"avatar,omitempty"` // 头像URL
|
||
FanLevel int32 `protobuf:"varint,5,opt,name=fan_level,json=fanLevel,proto3" json:"fan_level,omitempty"` // 粉丝等级
|
||
RelationshipStatus string `protobuf:"bytes,6,opt,name=relationship_status,json=relationshipStatus,proto3" json:"relationship_status,omitempty"` // 关系状态:stranger, friend, pending_sent, pending_received, rejected
|
||
CanSendRequest bool `protobuf:"varint,7,opt,name=can_send_request,json=canSendRequest,proto3" json:"can_send_request,omitempty"` // 是否可以发送好友请求
|
||
CooldownEndsAt int64 `protobuf:"varint,8,opt,name=cooldown_ends_at,json=cooldownEndsAt,proto3" json:"cooldown_ends_at,omitempty"` // 冷静期结束时间(毫秒时间戳,仅当 relationship_status=rejected 时有值)
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *FanProfileSearchResult) Reset() {
|
||
*x = FanProfileSearchResult{}
|
||
mi := &file_social_proto_msgTypes[20]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *FanProfileSearchResult) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*FanProfileSearchResult) ProtoMessage() {}
|
||
|
||
func (x *FanProfileSearchResult) ProtoReflect() protoreflect.Message {
|
||
mi := &file_social_proto_msgTypes[20]
|
||
if x != nil {
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
if ms.LoadMessageInfo() == nil {
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
return ms
|
||
}
|
||
return mi.MessageOf(x)
|
||
}
|
||
|
||
// Deprecated: Use FanProfileSearchResult.ProtoReflect.Descriptor instead.
|
||
func (*FanProfileSearchResult) Descriptor() ([]byte, []int) {
|
||
return file_social_proto_rawDescGZIP(), []int{20}
|
||
}
|
||
|
||
func (x *FanProfileSearchResult) GetFanProfileId() int64 {
|
||
if x != nil {
|
||
return x.FanProfileId
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *FanProfileSearchResult) GetUserId() int64 {
|
||
if x != nil {
|
||
return x.UserId
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *FanProfileSearchResult) GetNickname() string {
|
||
if x != nil {
|
||
return x.Nickname
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *FanProfileSearchResult) GetAvatar() string {
|
||
if x != nil {
|
||
return x.Avatar
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *FanProfileSearchResult) GetFanLevel() int32 {
|
||
if x != nil {
|
||
return x.FanLevel
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *FanProfileSearchResult) GetRelationshipStatus() string {
|
||
if x != nil {
|
||
return x.RelationshipStatus
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *FanProfileSearchResult) GetCanSendRequest() bool {
|
||
if x != nil {
|
||
return x.CanSendRequest
|
||
}
|
||
return false
|
||
}
|
||
|
||
func (x *FanProfileSearchResult) GetCooldownEndsAt() int64 {
|
||
if x != nil {
|
||
return x.CooldownEndsAt
|
||
}
|
||
return 0
|
||
}
|
||
|
||
// 随机用户信息
|
||
type RandomUser struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
UserId int64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // 用户ID
|
||
Nickname string `protobuf:"bytes,2,opt,name=nickname,proto3" json:"nickname,omitempty"` // 昵称
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *RandomUser) Reset() {
|
||
*x = RandomUser{}
|
||
mi := &file_social_proto_msgTypes[21]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *RandomUser) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*RandomUser) ProtoMessage() {}
|
||
|
||
func (x *RandomUser) ProtoReflect() protoreflect.Message {
|
||
mi := &file_social_proto_msgTypes[21]
|
||
if x != nil {
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
if ms.LoadMessageInfo() == nil {
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
return ms
|
||
}
|
||
return mi.MessageOf(x)
|
||
}
|
||
|
||
// Deprecated: Use RandomUser.ProtoReflect.Descriptor instead.
|
||
func (*RandomUser) Descriptor() ([]byte, []int) {
|
||
return file_social_proto_rawDescGZIP(), []int{21}
|
||
}
|
||
|
||
func (x *RandomUser) GetUserId() int64 {
|
||
if x != nil {
|
||
return x.UserId
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *RandomUser) GetNickname() string {
|
||
if x != nil {
|
||
return x.Nickname
|
||
}
|
||
return ""
|
||
}
|
||
|
||
// 获取随机用户
|
||
type GetRandomUsersRequest struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
Count int32 `protobuf:"varint,1,opt,name=count,proto3" json:"count,omitempty"` // 返回数量(默认1,最大100)
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *GetRandomUsersRequest) Reset() {
|
||
*x = GetRandomUsersRequest{}
|
||
mi := &file_social_proto_msgTypes[22]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *GetRandomUsersRequest) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*GetRandomUsersRequest) ProtoMessage() {}
|
||
|
||
func (x *GetRandomUsersRequest) ProtoReflect() protoreflect.Message {
|
||
mi := &file_social_proto_msgTypes[22]
|
||
if x != nil {
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
if ms.LoadMessageInfo() == nil {
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
return ms
|
||
}
|
||
return mi.MessageOf(x)
|
||
}
|
||
|
||
// Deprecated: Use GetRandomUsersRequest.ProtoReflect.Descriptor instead.
|
||
func (*GetRandomUsersRequest) Descriptor() ([]byte, []int) {
|
||
return file_social_proto_rawDescGZIP(), []int{22}
|
||
}
|
||
|
||
func (x *GetRandomUsersRequest) GetCount() int32 {
|
||
if x != nil {
|
||
return x.Count
|
||
}
|
||
return 0
|
||
}
|
||
|
||
type GetRandomUsersResponse struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
Base *common.BaseResponse `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"`
|
||
Users []*RandomUser `protobuf:"bytes,2,rep,name=users,proto3" json:"users,omitempty"` // 随机用户列表
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *GetRandomUsersResponse) Reset() {
|
||
*x = GetRandomUsersResponse{}
|
||
mi := &file_social_proto_msgTypes[23]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *GetRandomUsersResponse) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*GetRandomUsersResponse) ProtoMessage() {}
|
||
|
||
func (x *GetRandomUsersResponse) ProtoReflect() protoreflect.Message {
|
||
mi := &file_social_proto_msgTypes[23]
|
||
if x != nil {
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
if ms.LoadMessageInfo() == nil {
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
return ms
|
||
}
|
||
return mi.MessageOf(x)
|
||
}
|
||
|
||
// Deprecated: Use GetRandomUsersResponse.ProtoReflect.Descriptor instead.
|
||
func (*GetRandomUsersResponse) Descriptor() ([]byte, []int) {
|
||
return file_social_proto_rawDescGZIP(), []int{23}
|
||
}
|
||
|
||
func (x *GetRandomUsersResponse) GetBase() *common.BaseResponse {
|
||
if x != nil {
|
||
return x.Base
|
||
}
|
||
return nil
|
||
}
|
||
|
||
func (x *GetRandomUsersResponse) GetUsers() []*RandomUser {
|
||
if x != nil {
|
||
return x.Users
|
||
}
|
||
return nil
|
||
}
|
||
|
||
// 分页用户信息
|
||
type PagedUser struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
UserId int64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // 用户ID
|
||
GalleryOwnerId int64 `protobuf:"varint,2,opt,name=gallery_owner_id,json=galleryOwnerId,proto3" json:"gallery_owner_id,omitempty"` // 展馆所有者ID(等于user_id)
|
||
Nickname string `protobuf:"bytes,3,opt,name=nickname,proto3" json:"nickname,omitempty"` // 昵称
|
||
Level int32 `protobuf:"varint,4,opt,name=level,proto3" json:"level,omitempty"` // 粉丝等级
|
||
SharedBoothSlotsRemaining int32 `protobuf:"varint,5,opt,name=shared_booth_slots_remaining,json=sharedBoothSlotsRemaining,proto3" json:"shared_booth_slots_remaining,omitempty"` // 剩余共享展位数
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *PagedUser) Reset() {
|
||
*x = PagedUser{}
|
||
mi := &file_social_proto_msgTypes[24]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *PagedUser) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*PagedUser) ProtoMessage() {}
|
||
|
||
func (x *PagedUser) ProtoReflect() protoreflect.Message {
|
||
mi := &file_social_proto_msgTypes[24]
|
||
if x != nil {
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
if ms.LoadMessageInfo() == nil {
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
return ms
|
||
}
|
||
return mi.MessageOf(x)
|
||
}
|
||
|
||
// Deprecated: Use PagedUser.ProtoReflect.Descriptor instead.
|
||
func (*PagedUser) Descriptor() ([]byte, []int) {
|
||
return file_social_proto_rawDescGZIP(), []int{24}
|
||
}
|
||
|
||
func (x *PagedUser) GetUserId() int64 {
|
||
if x != nil {
|
||
return x.UserId
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *PagedUser) GetGalleryOwnerId() int64 {
|
||
if x != nil {
|
||
return x.GalleryOwnerId
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *PagedUser) GetNickname() string {
|
||
if x != nil {
|
||
return x.Nickname
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *PagedUser) GetLevel() int32 {
|
||
if x != nil {
|
||
return x.Level
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *PagedUser) GetSharedBoothSlotsRemaining() int32 {
|
||
if x != nil {
|
||
return x.SharedBoothSlotsRemaining
|
||
}
|
||
return 0
|
||
}
|
||
|
||
// 获取分页用户列表请求
|
||
type GetUsersPagedRequest struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
Page int32 `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"` // 页码(从1开始,默认1)
|
||
PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` // 每页数量(默认20,最大100)
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *GetUsersPagedRequest) Reset() {
|
||
*x = GetUsersPagedRequest{}
|
||
mi := &file_social_proto_msgTypes[25]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *GetUsersPagedRequest) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*GetUsersPagedRequest) ProtoMessage() {}
|
||
|
||
func (x *GetUsersPagedRequest) ProtoReflect() protoreflect.Message {
|
||
mi := &file_social_proto_msgTypes[25]
|
||
if x != nil {
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
if ms.LoadMessageInfo() == nil {
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
return ms
|
||
}
|
||
return mi.MessageOf(x)
|
||
}
|
||
|
||
// Deprecated: Use GetUsersPagedRequest.ProtoReflect.Descriptor instead.
|
||
func (*GetUsersPagedRequest) Descriptor() ([]byte, []int) {
|
||
return file_social_proto_rawDescGZIP(), []int{25}
|
||
}
|
||
|
||
func (x *GetUsersPagedRequest) GetPage() int32 {
|
||
if x != nil {
|
||
return x.Page
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *GetUsersPagedRequest) GetPageSize() int32 {
|
||
if x != nil {
|
||
return x.PageSize
|
||
}
|
||
return 0
|
||
}
|
||
|
||
// 获取分页用户列表响应
|
||
type GetUsersPagedResponse struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
Base *common.BaseResponse `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"`
|
||
Users []*PagedUser `protobuf:"bytes,2,rep,name=users,proto3" json:"users,omitempty"` // 用户列表
|
||
Total int64 `protobuf:"varint,3,opt,name=total,proto3" json:"total,omitempty"` // 总数
|
||
Page int32 `protobuf:"varint,4,opt,name=page,proto3" json:"page,omitempty"` // 当前页码
|
||
PageSize int32 `protobuf:"varint,5,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` // 每页数量
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *GetUsersPagedResponse) Reset() {
|
||
*x = GetUsersPagedResponse{}
|
||
mi := &file_social_proto_msgTypes[26]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *GetUsersPagedResponse) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*GetUsersPagedResponse) ProtoMessage() {}
|
||
|
||
func (x *GetUsersPagedResponse) ProtoReflect() protoreflect.Message {
|
||
mi := &file_social_proto_msgTypes[26]
|
||
if x != nil {
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
if ms.LoadMessageInfo() == nil {
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
return ms
|
||
}
|
||
return mi.MessageOf(x)
|
||
}
|
||
|
||
// Deprecated: Use GetUsersPagedResponse.ProtoReflect.Descriptor instead.
|
||
func (*GetUsersPagedResponse) Descriptor() ([]byte, []int) {
|
||
return file_social_proto_rawDescGZIP(), []int{26}
|
||
}
|
||
|
||
func (x *GetUsersPagedResponse) GetBase() *common.BaseResponse {
|
||
if x != nil {
|
||
return x.Base
|
||
}
|
||
return nil
|
||
}
|
||
|
||
func (x *GetUsersPagedResponse) GetUsers() []*PagedUser {
|
||
if x != nil {
|
||
return x.Users
|
||
}
|
||
return nil
|
||
}
|
||
|
||
func (x *GetUsersPagedResponse) GetTotal() int64 {
|
||
if x != nil {
|
||
return x.Total
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *GetUsersPagedResponse) GetPage() int32 {
|
||
if x != nil {
|
||
return x.Page
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *GetUsersPagedResponse) GetPageSize() int32 {
|
||
if x != nil {
|
||
return x.PageSize
|
||
}
|
||
return 0
|
||
}
|
||
|
||
// 点赞资产请求
|
||
type LikeAssetRequest struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
AssetId int64 `protobuf:"varint,1,opt,name=asset_id,json=assetId,proto3" json:"asset_id,omitempty"` // 资产ID
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *LikeAssetRequest) Reset() {
|
||
*x = LikeAssetRequest{}
|
||
mi := &file_social_proto_msgTypes[27]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *LikeAssetRequest) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*LikeAssetRequest) ProtoMessage() {}
|
||
|
||
func (x *LikeAssetRequest) ProtoReflect() protoreflect.Message {
|
||
mi := &file_social_proto_msgTypes[27]
|
||
if x != nil {
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
if ms.LoadMessageInfo() == nil {
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
return ms
|
||
}
|
||
return mi.MessageOf(x)
|
||
}
|
||
|
||
// Deprecated: Use LikeAssetRequest.ProtoReflect.Descriptor instead.
|
||
func (*LikeAssetRequest) Descriptor() ([]byte, []int) {
|
||
return file_social_proto_rawDescGZIP(), []int{27}
|
||
}
|
||
|
||
func (x *LikeAssetRequest) GetAssetId() int64 {
|
||
if x != nil {
|
||
return x.AssetId
|
||
}
|
||
return 0
|
||
}
|
||
|
||
// 点赞资产响应
|
||
type LikeAssetResponse struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
Base *common.BaseResponse `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"`
|
||
AssetId int64 `protobuf:"varint,2,opt,name=asset_id,json=assetId,proto3" json:"asset_id,omitempty"` // 资产ID
|
||
NewLikeCount int32 `protobuf:"varint,3,opt,name=new_like_count,json=newLikeCount,proto3" json:"new_like_count,omitempty"` // 更新后的点赞数
|
||
IsLiked bool `protobuf:"varint,4,opt,name=is_liked,json=isLiked,proto3" json:"is_liked,omitempty"` // 是否已点赞(true)
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *LikeAssetResponse) Reset() {
|
||
*x = LikeAssetResponse{}
|
||
mi := &file_social_proto_msgTypes[28]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *LikeAssetResponse) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*LikeAssetResponse) ProtoMessage() {}
|
||
|
||
func (x *LikeAssetResponse) ProtoReflect() protoreflect.Message {
|
||
mi := &file_social_proto_msgTypes[28]
|
||
if x != nil {
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
if ms.LoadMessageInfo() == nil {
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
return ms
|
||
}
|
||
return mi.MessageOf(x)
|
||
}
|
||
|
||
// Deprecated: Use LikeAssetResponse.ProtoReflect.Descriptor instead.
|
||
func (*LikeAssetResponse) Descriptor() ([]byte, []int) {
|
||
return file_social_proto_rawDescGZIP(), []int{28}
|
||
}
|
||
|
||
func (x *LikeAssetResponse) GetBase() *common.BaseResponse {
|
||
if x != nil {
|
||
return x.Base
|
||
}
|
||
return nil
|
||
}
|
||
|
||
func (x *LikeAssetResponse) GetAssetId() int64 {
|
||
if x != nil {
|
||
return x.AssetId
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *LikeAssetResponse) GetNewLikeCount() int32 {
|
||
if x != nil {
|
||
return x.NewLikeCount
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *LikeAssetResponse) GetIsLiked() bool {
|
||
if x != nil {
|
||
return x.IsLiked
|
||
}
|
||
return false
|
||
}
|
||
|
||
// 取消点赞请求
|
||
type UnlikeAssetRequest struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
AssetId int64 `protobuf:"varint,1,opt,name=asset_id,json=assetId,proto3" json:"asset_id,omitempty"` // 资产ID
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *UnlikeAssetRequest) Reset() {
|
||
*x = UnlikeAssetRequest{}
|
||
mi := &file_social_proto_msgTypes[29]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *UnlikeAssetRequest) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*UnlikeAssetRequest) ProtoMessage() {}
|
||
|
||
func (x *UnlikeAssetRequest) ProtoReflect() protoreflect.Message {
|
||
mi := &file_social_proto_msgTypes[29]
|
||
if x != nil {
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
if ms.LoadMessageInfo() == nil {
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
return ms
|
||
}
|
||
return mi.MessageOf(x)
|
||
}
|
||
|
||
// Deprecated: Use UnlikeAssetRequest.ProtoReflect.Descriptor instead.
|
||
func (*UnlikeAssetRequest) Descriptor() ([]byte, []int) {
|
||
return file_social_proto_rawDescGZIP(), []int{29}
|
||
}
|
||
|
||
func (x *UnlikeAssetRequest) GetAssetId() int64 {
|
||
if x != nil {
|
||
return x.AssetId
|
||
}
|
||
return 0
|
||
}
|
||
|
||
// 取消点赞响应
|
||
type UnlikeAssetResponse struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
Base *common.BaseResponse `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"`
|
||
AssetId int64 `protobuf:"varint,2,opt,name=asset_id,json=assetId,proto3" json:"asset_id,omitempty"` // 资产ID
|
||
NewLikeCount int32 `protobuf:"varint,3,opt,name=new_like_count,json=newLikeCount,proto3" json:"new_like_count,omitempty"` // 更新后的点赞数
|
||
IsLiked bool `protobuf:"varint,4,opt,name=is_liked,json=isLiked,proto3" json:"is_liked,omitempty"` // 是否已点赞(false)
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *UnlikeAssetResponse) Reset() {
|
||
*x = UnlikeAssetResponse{}
|
||
mi := &file_social_proto_msgTypes[30]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *UnlikeAssetResponse) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*UnlikeAssetResponse) ProtoMessage() {}
|
||
|
||
func (x *UnlikeAssetResponse) ProtoReflect() protoreflect.Message {
|
||
mi := &file_social_proto_msgTypes[30]
|
||
if x != nil {
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
if ms.LoadMessageInfo() == nil {
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
return ms
|
||
}
|
||
return mi.MessageOf(x)
|
||
}
|
||
|
||
// Deprecated: Use UnlikeAssetResponse.ProtoReflect.Descriptor instead.
|
||
func (*UnlikeAssetResponse) Descriptor() ([]byte, []int) {
|
||
return file_social_proto_rawDescGZIP(), []int{30}
|
||
}
|
||
|
||
func (x *UnlikeAssetResponse) GetBase() *common.BaseResponse {
|
||
if x != nil {
|
||
return x.Base
|
||
}
|
||
return nil
|
||
}
|
||
|
||
func (x *UnlikeAssetResponse) GetAssetId() int64 {
|
||
if x != nil {
|
||
return x.AssetId
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *UnlikeAssetResponse) GetNewLikeCount() int32 {
|
||
if x != nil {
|
||
return x.NewLikeCount
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *UnlikeAssetResponse) GetIsLiked() bool {
|
||
if x != nil {
|
||
return x.IsLiked
|
||
}
|
||
return false
|
||
}
|
||
|
||
// 检查是否已点赞请求
|
||
type CheckAssetLikeRequest struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
AssetId int64 `protobuf:"varint,1,opt,name=asset_id,json=assetId,proto3" json:"asset_id,omitempty"` // 资产ID
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *CheckAssetLikeRequest) Reset() {
|
||
*x = CheckAssetLikeRequest{}
|
||
mi := &file_social_proto_msgTypes[31]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *CheckAssetLikeRequest) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*CheckAssetLikeRequest) ProtoMessage() {}
|
||
|
||
func (x *CheckAssetLikeRequest) ProtoReflect() protoreflect.Message {
|
||
mi := &file_social_proto_msgTypes[31]
|
||
if x != nil {
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
if ms.LoadMessageInfo() == nil {
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
return ms
|
||
}
|
||
return mi.MessageOf(x)
|
||
}
|
||
|
||
// Deprecated: Use CheckAssetLikeRequest.ProtoReflect.Descriptor instead.
|
||
func (*CheckAssetLikeRequest) Descriptor() ([]byte, []int) {
|
||
return file_social_proto_rawDescGZIP(), []int{31}
|
||
}
|
||
|
||
func (x *CheckAssetLikeRequest) GetAssetId() int64 {
|
||
if x != nil {
|
||
return x.AssetId
|
||
}
|
||
return 0
|
||
}
|
||
|
||
// 检查是否已点赞响应
|
||
type CheckAssetLikeResponse struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
Base *common.BaseResponse `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"`
|
||
IsLiked bool `protobuf:"varint,2,opt,name=is_liked,json=isLiked,proto3" json:"is_liked,omitempty"` // 是否已点赞
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *CheckAssetLikeResponse) Reset() {
|
||
*x = CheckAssetLikeResponse{}
|
||
mi := &file_social_proto_msgTypes[32]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *CheckAssetLikeResponse) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*CheckAssetLikeResponse) ProtoMessage() {}
|
||
|
||
func (x *CheckAssetLikeResponse) ProtoReflect() protoreflect.Message {
|
||
mi := &file_social_proto_msgTypes[32]
|
||
if x != nil {
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
if ms.LoadMessageInfo() == nil {
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
return ms
|
||
}
|
||
return mi.MessageOf(x)
|
||
}
|
||
|
||
// Deprecated: Use CheckAssetLikeResponse.ProtoReflect.Descriptor instead.
|
||
func (*CheckAssetLikeResponse) Descriptor() ([]byte, []int) {
|
||
return file_social_proto_rawDescGZIP(), []int{32}
|
||
}
|
||
|
||
func (x *CheckAssetLikeResponse) GetBase() *common.BaseResponse {
|
||
if x != nil {
|
||
return x.Base
|
||
}
|
||
return nil
|
||
}
|
||
|
||
func (x *CheckAssetLikeResponse) GetIsLiked() bool {
|
||
if x != nil {
|
||
return x.IsLiked
|
||
}
|
||
return false
|
||
}
|
||
|
||
var File_social_proto protoreflect.FileDescriptor
|
||
|
||
const file_social_proto_rawDesc = "" +
|
||
"\n" +
|
||
"\fsocial.proto\x12\x0etopfans.social\x1a\x12proto/common.proto\x1a\x1cgoogle/api/annotations.proto\"\x8d\x04\n" +
|
||
"\rFriendRequest\x12\x0e\n" +
|
||
"\x02id\x18\x01 \x01(\x03R\x02id\x12 \n" +
|
||
"\ffrom_user_id\x18\x02 \x01(\x03R\n" +
|
||
"fromUserId\x12\x1c\n" +
|
||
"\n" +
|
||
"to_user_id\x18\x03 \x01(\x03R\btoUserId\x12\x17\n" +
|
||
"\astar_id\x18\x04 \x01(\x03R\x06starId\x12\x18\n" +
|
||
"\amessage\x18\x05 \x01(\tR\amessage\x12\x16\n" +
|
||
"\x06status\x18\x06 \x01(\tR\x06status\x12\x1d\n" +
|
||
"\n" +
|
||
"created_at\x18\a \x01(\x03R\tcreatedAt\x12\x1d\n" +
|
||
"\n" +
|
||
"expires_at\x18\b \x01(\x03R\texpiresAt\x12!\n" +
|
||
"\fprocessed_at\x18\t \x01(\x03R\vprocessedAt\x12,\n" +
|
||
"\x12from_user_nickname\x18\n" +
|
||
" \x01(\tR\x10fromUserNickname\x12(\n" +
|
||
"\x10from_user_avatar\x18\v \x01(\tR\x0efromUserAvatar\x12(\n" +
|
||
"\x10to_user_nickname\x18\f \x01(\tR\x0etoUserNickname\x12$\n" +
|
||
"\x0eto_user_avatar\x18\r \x01(\tR\ftoUserAvatar\x12-\n" +
|
||
"\x13from_user_fan_level\x18\x0e \x01(\x05R\x10fromUserFanLevel\x12)\n" +
|
||
"\x11to_user_fan_level\x18\x0f \x01(\x05R\x0etoUserFanLevel\"\xf3\x02\n" +
|
||
"\n" +
|
||
"Friendship\x12\x0e\n" +
|
||
"\x02id\x18\x01 \x01(\x03R\x02id\x12\x17\n" +
|
||
"\auser_id\x18\x02 \x01(\x03R\x06userId\x12\x1b\n" +
|
||
"\tfriend_id\x18\x03 \x01(\x03R\bfriendId\x12\x17\n" +
|
||
"\astar_id\x18\x04 \x01(\x03R\x06starId\x12\x16\n" +
|
||
"\x06status\x18\x05 \x01(\tR\x06status\x12\x16\n" +
|
||
"\x06remark\x18\x06 \x01(\tR\x06remark\x12\x1a\n" +
|
||
"\bintimacy\x18\a \x01(\x05R\bintimacy\x12\x1d\n" +
|
||
"\n" +
|
||
"created_at\x18\b \x01(\x03R\tcreatedAt\x12'\n" +
|
||
"\x0ffriend_nickname\x18\t \x01(\tR\x0efriendNickname\x12#\n" +
|
||
"\rfriend_avatar\x18\n" +
|
||
" \x01(\tR\ffriendAvatar\x12(\n" +
|
||
"\x10friend_fan_level\x18\v \x01(\x05R\x0efriendFanLevel\x12#\n" +
|
||
"\rfriend_social\x18\f \x01(\x05R\ffriendSocial\"\x97\x01\n" +
|
||
"\x18SendFriendRequestRequest\x12$\n" +
|
||
"\x0efriend_user_id\x18\x01 \x01(\x03R\ffriendUserId\x12\x18\n" +
|
||
"\amessage\x18\x02 \x01(\tR\amessage\x12\x1a\n" +
|
||
"\bnickname\x18\x03 \x01(\tR\bnickname\x12\x1f\n" +
|
||
"\vsearch_mode\x18\x04 \x01(\bR\n" +
|
||
"searchMode\"\x8f\x02\n" +
|
||
"\x19SendFriendRequestResponse\x120\n" +
|
||
"\x04base\x18\x01 \x01(\v2\x1c.topfans.common.BaseResponseR\x04base\x12\x1d\n" +
|
||
"\n" +
|
||
"request_id\x18\x02 \x01(\x03R\trequestId\x12\x16\n" +
|
||
"\x06status\x18\x03 \x01(\tR\x06status\x12\x1d\n" +
|
||
"\n" +
|
||
"created_at\x18\x04 \x01(\x03R\tcreatedAt\x12\x1d\n" +
|
||
"\n" +
|
||
"expires_at\x18\x05 \x01(\x03R\texpiresAt\x12K\n" +
|
||
"\rmatched_users\x18\x06 \x03(\v2&.topfans.social.FanProfileSearchResultR\fmatchedUsers\"w\n" +
|
||
"\x18GetFriendRequestsRequest\x12\x12\n" +
|
||
"\x04type\x18\x01 \x01(\tR\x04type\x12\x16\n" +
|
||
"\x06status\x18\x02 \x01(\tR\x06status\x12\x12\n" +
|
||
"\x04page\x18\x03 \x01(\x05R\x04page\x12\x1b\n" +
|
||
"\tpage_size\x18\x04 \x01(\x05R\bpageSize\"\xc9\x01\n" +
|
||
"\x19GetFriendRequestsResponse\x120\n" +
|
||
"\x04base\x18\x01 \x01(\v2\x1c.topfans.common.BaseResponseR\x04base\x123\n" +
|
||
"\x05items\x18\x02 \x03(\v2\x1d.topfans.social.FriendRequestR\x05items\x12\x14\n" +
|
||
"\x05total\x18\x03 \x01(\x03R\x05total\x12\x12\n" +
|
||
"\x04page\x18\x04 \x01(\x05R\x04page\x12\x1b\n" +
|
||
"\tpage_size\x18\x05 \x01(\x05R\bpageSize\"S\n" +
|
||
"\x1aHandleFriendRequestRequest\x12\x1d\n" +
|
||
"\n" +
|
||
"request_id\x18\x01 \x01(\x03R\trequestId\x12\x16\n" +
|
||
"\x06action\x18\x02 \x01(\tR\x06action\"\xb9\x01\n" +
|
||
"\x1bHandleFriendRequestResponse\x120\n" +
|
||
"\x04base\x18\x01 \x01(\v2\x1c.topfans.common.BaseResponseR\x04base\x12\x16\n" +
|
||
"\x06action\x18\x02 \x01(\tR\x06action\x12-\n" +
|
||
"\x12friendship_created\x18\x03 \x01(\bR\x11friendshipCreated\x12!\n" +
|
||
"\fprocessed_at\x18\x04 \x01(\x03R\vprocessedAt\"a\n" +
|
||
"\x14GetFriendListRequest\x12\x18\n" +
|
||
"\akeyword\x18\x01 \x01(\tR\akeyword\x12\x12\n" +
|
||
"\x04page\x18\x02 \x01(\x05R\x04page\x12\x1b\n" +
|
||
"\tpage_size\x18\x03 \x01(\x05R\bpageSize\"\xc2\x01\n" +
|
||
"\x15GetFriendListResponse\x120\n" +
|
||
"\x04base\x18\x01 \x01(\v2\x1c.topfans.common.BaseResponseR\x04base\x120\n" +
|
||
"\x05items\x18\x02 \x03(\v2\x1a.topfans.social.FriendshipR\x05items\x12\x14\n" +
|
||
"\x05total\x18\x03 \x01(\x03R\x05total\x12\x12\n" +
|
||
"\x04page\x18\x04 \x01(\x05R\x04page\x12\x1b\n" +
|
||
"\tpage_size\x18\x05 \x01(\x05R\bpageSize\";\n" +
|
||
"\x13DeleteFriendRequest\x12$\n" +
|
||
"\x0efriend_user_id\x18\x01 \x01(\x03R\ffriendUserId\"b\n" +
|
||
"\x14DeleteFriendResponse\x120\n" +
|
||
"\x04base\x18\x01 \x01(\v2\x1c.topfans.common.BaseResponseR\x04base\x12\x18\n" +
|
||
"\asuccess\x18\x02 \x01(\bR\asuccess\"V\n" +
|
||
"\x16SetFriendRemarkRequest\x12$\n" +
|
||
"\x0efriend_user_id\x18\x01 \x01(\x03R\ffriendUserId\x12\x16\n" +
|
||
"\x06remark\x18\x02 \x01(\tR\x06remark\"c\n" +
|
||
"\x17SetFriendRemarkResponse\x120\n" +
|
||
"\x04base\x18\x01 \x01(\v2\x1c.topfans.common.BaseResponseR\x04base\x12\x16\n" +
|
||
"\x06remark\x18\x02 \x01(\tR\x06remark\"W\n" +
|
||
"\x16CheckFriendshipRequest\x12\x17\n" +
|
||
"\auser_id\x18\x01 \x01(\x03R\x06userId\x12$\n" +
|
||
"\x0efriend_user_id\x18\x02 \x01(\x03R\ffriendUserId\"h\n" +
|
||
"\x17CheckFriendshipResponse\x120\n" +
|
||
"\x04base\x18\x01 \x01(\v2\x1c.topfans.common.BaseResponseR\x04base\x12\x1b\n" +
|
||
"\tis_friend\x18\x02 \x01(\bR\bisFriend\"\x17\n" +
|
||
"\x15GetFriendCountRequest\"`\n" +
|
||
"\x16GetFriendCountResponse\x120\n" +
|
||
"\x04base\x18\x01 \x01(\v2\x1c.topfans.common.BaseResponseR\x04base\x12\x14\n" +
|
||
"\x05count\x18\x02 \x01(\x03R\x05count\"O\n" +
|
||
"\x1aSearchUserForFriendRequest\x121\n" +
|
||
"\x15friend_fan_profile_id\x18\x01 \x01(\x03R\x12friendFanProfileId\"\x8b\x01\n" +
|
||
"\x1bSearchUserForFriendResponse\x120\n" +
|
||
"\x04base\x18\x01 \x01(\v2\x1c.topfans.common.BaseResponseR\x04base\x12:\n" +
|
||
"\x04user\x18\x02 \x01(\v2&.topfans.social.FanProfileSearchResultR\x04user\"\xad\x02\n" +
|
||
"\x16FanProfileSearchResult\x12$\n" +
|
||
"\x0efan_profile_id\x18\x01 \x01(\x03R\ffanProfileId\x12\x17\n" +
|
||
"\auser_id\x18\x02 \x01(\x03R\x06userId\x12\x1a\n" +
|
||
"\bnickname\x18\x03 \x01(\tR\bnickname\x12\x16\n" +
|
||
"\x06avatar\x18\x04 \x01(\tR\x06avatar\x12\x1b\n" +
|
||
"\tfan_level\x18\x05 \x01(\x05R\bfanLevel\x12/\n" +
|
||
"\x13relationship_status\x18\x06 \x01(\tR\x12relationshipStatus\x12(\n" +
|
||
"\x10can_send_request\x18\a \x01(\bR\x0ecanSendRequest\x12(\n" +
|
||
"\x10cooldown_ends_at\x18\b \x01(\x03R\x0ecooldownEndsAt\"A\n" +
|
||
"\n" +
|
||
"RandomUser\x12\x17\n" +
|
||
"\auser_id\x18\x01 \x01(\x03R\x06userId\x12\x1a\n" +
|
||
"\bnickname\x18\x02 \x01(\tR\bnickname\"-\n" +
|
||
"\x15GetRandomUsersRequest\x12\x14\n" +
|
||
"\x05count\x18\x01 \x01(\x05R\x05count\"|\n" +
|
||
"\x16GetRandomUsersResponse\x120\n" +
|
||
"\x04base\x18\x01 \x01(\v2\x1c.topfans.common.BaseResponseR\x04base\x120\n" +
|
||
"\x05users\x18\x02 \x03(\v2\x1a.topfans.social.RandomUserR\x05users\"\xc1\x01\n" +
|
||
"\tPagedUser\x12\x17\n" +
|
||
"\auser_id\x18\x01 \x01(\x03R\x06userId\x12(\n" +
|
||
"\x10gallery_owner_id\x18\x02 \x01(\x03R\x0egalleryOwnerId\x12\x1a\n" +
|
||
"\bnickname\x18\x03 \x01(\tR\bnickname\x12\x14\n" +
|
||
"\x05level\x18\x04 \x01(\x05R\x05level\x12?\n" +
|
||
"\x1cshared_booth_slots_remaining\x18\x05 \x01(\x05R\x19sharedBoothSlotsRemaining\"G\n" +
|
||
"\x14GetUsersPagedRequest\x12\x12\n" +
|
||
"\x04page\x18\x01 \x01(\x05R\x04page\x12\x1b\n" +
|
||
"\tpage_size\x18\x02 \x01(\x05R\bpageSize\"\xc1\x01\n" +
|
||
"\x15GetUsersPagedResponse\x120\n" +
|
||
"\x04base\x18\x01 \x01(\v2\x1c.topfans.common.BaseResponseR\x04base\x12/\n" +
|
||
"\x05users\x18\x02 \x03(\v2\x19.topfans.social.PagedUserR\x05users\x12\x14\n" +
|
||
"\x05total\x18\x03 \x01(\x03R\x05total\x12\x12\n" +
|
||
"\x04page\x18\x04 \x01(\x05R\x04page\x12\x1b\n" +
|
||
"\tpage_size\x18\x05 \x01(\x05R\bpageSize\"-\n" +
|
||
"\x10LikeAssetRequest\x12\x19\n" +
|
||
"\basset_id\x18\x01 \x01(\x03R\aassetId\"\xa1\x01\n" +
|
||
"\x11LikeAssetResponse\x120\n" +
|
||
"\x04base\x18\x01 \x01(\v2\x1c.topfans.common.BaseResponseR\x04base\x12\x19\n" +
|
||
"\basset_id\x18\x02 \x01(\x03R\aassetId\x12$\n" +
|
||
"\x0enew_like_count\x18\x03 \x01(\x05R\fnewLikeCount\x12\x19\n" +
|
||
"\bis_liked\x18\x04 \x01(\bR\aisLiked\"/\n" +
|
||
"\x12UnlikeAssetRequest\x12\x19\n" +
|
||
"\basset_id\x18\x01 \x01(\x03R\aassetId\"\xa3\x01\n" +
|
||
"\x13UnlikeAssetResponse\x120\n" +
|
||
"\x04base\x18\x01 \x01(\v2\x1c.topfans.common.BaseResponseR\x04base\x12\x19\n" +
|
||
"\basset_id\x18\x02 \x01(\x03R\aassetId\x12$\n" +
|
||
"\x0enew_like_count\x18\x03 \x01(\x05R\fnewLikeCount\x12\x19\n" +
|
||
"\bis_liked\x18\x04 \x01(\bR\aisLiked\"2\n" +
|
||
"\x15CheckAssetLikeRequest\x12\x19\n" +
|
||
"\basset_id\x18\x01 \x01(\x03R\aassetId\"e\n" +
|
||
"\x16CheckAssetLikeResponse\x120\n" +
|
||
"\x04base\x18\x01 \x01(\v2\x1c.topfans.common.BaseResponseR\x04base\x12\x19\n" +
|
||
"\bis_liked\x18\x02 \x01(\bR\aisLiked2\xb7\x0f\n" +
|
||
"\rSocialService\x12\x8d\x01\n" +
|
||
"\x11SendFriendRequest\x12(.topfans.social.SendFriendRequestRequest\x1a).topfans.social.SendFriendRequestResponse\"#\x82\xd3\xe4\x93\x02\x1d:\x01*\"\x18/api/v1/friends/requests\x12\x8a\x01\n" +
|
||
"\x11GetFriendRequests\x12(.topfans.social.GetFriendRequestsRequest\x1a).topfans.social.GetFriendRequestsResponse\" \x82\xd3\xe4\x93\x02\x1a\x12\x18/api/v1/friends/requests\x12\xa7\x01\n" +
|
||
"\x13HandleFriendRequest\x12*.topfans.social.HandleFriendRequestRequest\x1a+.topfans.social.HandleFriendRequestResponse\"7\x82\xd3\xe4\x93\x021:\x01*\",/api/v1/friends/requests/{request_id}/handle\x12u\n" +
|
||
"\rGetFriendList\x12$.topfans.social.GetFriendListRequest\x1a%.topfans.social.GetFriendListResponse\"\x17\x82\xd3\xe4\x93\x02\x11\x12\x0f/api/v1/friends\x12\x83\x01\n" +
|
||
"\fDeleteFriend\x12#.topfans.social.DeleteFriendRequest\x1a$.topfans.social.DeleteFriendResponse\"(\x82\xd3\xe4\x93\x02\"* /api/v1/friends/{friend_user_id}\x12\x96\x01\n" +
|
||
"\x0fSetFriendRemark\x12&.topfans.social.SetFriendRemarkRequest\x1a'.topfans.social.SetFriendRemarkResponse\"2\x82\xd3\xe4\x93\x02,:\x01*\x1a'/api/v1/friends/{friend_user_id}/remark\x12\x9c\x01\n" +
|
||
"\x0fCheckFriendship\x12&.topfans.social.CheckFriendshipRequest\x1a'.topfans.social.CheckFriendshipResponse\"8\x82\xd3\xe4\x93\x022\x120/api/v1/friends/check/{user_id}/{friend_user_id}\x12~\n" +
|
||
"\x0eGetFriendCount\x12%.topfans.social.GetFriendCountRequest\x1a&.topfans.social.GetFriendCountResponse\"\x1d\x82\xd3\xe4\x93\x02\x17\x12\x15/api/v1/friends/count\x12\x8c\x01\n" +
|
||
"\x13SearchUserForFriend\x12*.topfans.social.SearchUserForFriendRequest\x1a+.topfans.social.SearchUserForFriendResponse\"\x1c\x82\xd3\xe4\x93\x02\x16\x12\x14/api/v1/users/search\x12\x84\x01\n" +
|
||
"\x0eGetRandomUsers\x12%.topfans.social.GetRandomUsersRequest\x1a&.topfans.social.GetRandomUsersResponse\"#\x82\xd3\xe4\x93\x02\x1d\x12\x1b/api/v1/social/random-users\x12z\n" +
|
||
"\rGetUsersPaged\x12$.topfans.social.GetUsersPagedRequest\x1a%.topfans.social.GetUsersPagedResponse\"\x1c\x82\xd3\xe4\x93\x02\x16\x12\x14/api/v1/social/users\x12\x7f\n" +
|
||
"\tLikeAsset\x12 .topfans.social.LikeAssetRequest\x1a!.topfans.social.LikeAssetResponse\"-\x82\xd3\xe4\x93\x02'\"%/api/v1/social/assets/{asset_id}/like\x12\x85\x01\n" +
|
||
"\vUnlikeAsset\x12\".topfans.social.UnlikeAssetRequest\x1a#.topfans.social.UnlikeAssetResponse\"-\x82\xd3\xe4\x93\x02'*%/api/v1/social/assets/{asset_id}/like\x12\x8e\x01\n" +
|
||
"\x0eCheckAssetLike\x12%.topfans.social.CheckAssetLikeRequest\x1a&.topfans.social.CheckAssetLikeResponse\"-\x82\xd3\xe4\x93\x02'\x12%/api/v1/social/assets/{asset_id}/likeB4Z2github.com/topfans/backend/pkg/proto/social;socialb\x06proto3"
|
||
|
||
var (
|
||
file_social_proto_rawDescOnce sync.Once
|
||
file_social_proto_rawDescData []byte
|
||
)
|
||
|
||
func file_social_proto_rawDescGZIP() []byte {
|
||
file_social_proto_rawDescOnce.Do(func() {
|
||
file_social_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_social_proto_rawDesc), len(file_social_proto_rawDesc)))
|
||
})
|
||
return file_social_proto_rawDescData
|
||
}
|
||
|
||
var file_social_proto_msgTypes = make([]protoimpl.MessageInfo, 33)
|
||
var file_social_proto_goTypes = []any{
|
||
(*FriendRequest)(nil), // 0: topfans.social.FriendRequest
|
||
(*Friendship)(nil), // 1: topfans.social.Friendship
|
||
(*SendFriendRequestRequest)(nil), // 2: topfans.social.SendFriendRequestRequest
|
||
(*SendFriendRequestResponse)(nil), // 3: topfans.social.SendFriendRequestResponse
|
||
(*GetFriendRequestsRequest)(nil), // 4: topfans.social.GetFriendRequestsRequest
|
||
(*GetFriendRequestsResponse)(nil), // 5: topfans.social.GetFriendRequestsResponse
|
||
(*HandleFriendRequestRequest)(nil), // 6: topfans.social.HandleFriendRequestRequest
|
||
(*HandleFriendRequestResponse)(nil), // 7: topfans.social.HandleFriendRequestResponse
|
||
(*GetFriendListRequest)(nil), // 8: topfans.social.GetFriendListRequest
|
||
(*GetFriendListResponse)(nil), // 9: topfans.social.GetFriendListResponse
|
||
(*DeleteFriendRequest)(nil), // 10: topfans.social.DeleteFriendRequest
|
||
(*DeleteFriendResponse)(nil), // 11: topfans.social.DeleteFriendResponse
|
||
(*SetFriendRemarkRequest)(nil), // 12: topfans.social.SetFriendRemarkRequest
|
||
(*SetFriendRemarkResponse)(nil), // 13: topfans.social.SetFriendRemarkResponse
|
||
(*CheckFriendshipRequest)(nil), // 14: topfans.social.CheckFriendshipRequest
|
||
(*CheckFriendshipResponse)(nil), // 15: topfans.social.CheckFriendshipResponse
|
||
(*GetFriendCountRequest)(nil), // 16: topfans.social.GetFriendCountRequest
|
||
(*GetFriendCountResponse)(nil), // 17: topfans.social.GetFriendCountResponse
|
||
(*SearchUserForFriendRequest)(nil), // 18: topfans.social.SearchUserForFriendRequest
|
||
(*SearchUserForFriendResponse)(nil), // 19: topfans.social.SearchUserForFriendResponse
|
||
(*FanProfileSearchResult)(nil), // 20: topfans.social.FanProfileSearchResult
|
||
(*RandomUser)(nil), // 21: topfans.social.RandomUser
|
||
(*GetRandomUsersRequest)(nil), // 22: topfans.social.GetRandomUsersRequest
|
||
(*GetRandomUsersResponse)(nil), // 23: topfans.social.GetRandomUsersResponse
|
||
(*PagedUser)(nil), // 24: topfans.social.PagedUser
|
||
(*GetUsersPagedRequest)(nil), // 25: topfans.social.GetUsersPagedRequest
|
||
(*GetUsersPagedResponse)(nil), // 26: topfans.social.GetUsersPagedResponse
|
||
(*LikeAssetRequest)(nil), // 27: topfans.social.LikeAssetRequest
|
||
(*LikeAssetResponse)(nil), // 28: topfans.social.LikeAssetResponse
|
||
(*UnlikeAssetRequest)(nil), // 29: topfans.social.UnlikeAssetRequest
|
||
(*UnlikeAssetResponse)(nil), // 30: topfans.social.UnlikeAssetResponse
|
||
(*CheckAssetLikeRequest)(nil), // 31: topfans.social.CheckAssetLikeRequest
|
||
(*CheckAssetLikeResponse)(nil), // 32: topfans.social.CheckAssetLikeResponse
|
||
(*common.BaseResponse)(nil), // 33: topfans.common.BaseResponse
|
||
}
|
||
var file_social_proto_depIdxs = []int32{
|
||
33, // 0: topfans.social.SendFriendRequestResponse.base:type_name -> topfans.common.BaseResponse
|
||
20, // 1: topfans.social.SendFriendRequestResponse.matched_users:type_name -> topfans.social.FanProfileSearchResult
|
||
33, // 2: topfans.social.GetFriendRequestsResponse.base:type_name -> topfans.common.BaseResponse
|
||
0, // 3: topfans.social.GetFriendRequestsResponse.items:type_name -> topfans.social.FriendRequest
|
||
33, // 4: topfans.social.HandleFriendRequestResponse.base:type_name -> topfans.common.BaseResponse
|
||
33, // 5: topfans.social.GetFriendListResponse.base:type_name -> topfans.common.BaseResponse
|
||
1, // 6: topfans.social.GetFriendListResponse.items:type_name -> topfans.social.Friendship
|
||
33, // 7: topfans.social.DeleteFriendResponse.base:type_name -> topfans.common.BaseResponse
|
||
33, // 8: topfans.social.SetFriendRemarkResponse.base:type_name -> topfans.common.BaseResponse
|
||
33, // 9: topfans.social.CheckFriendshipResponse.base:type_name -> topfans.common.BaseResponse
|
||
33, // 10: topfans.social.GetFriendCountResponse.base:type_name -> topfans.common.BaseResponse
|
||
33, // 11: topfans.social.SearchUserForFriendResponse.base:type_name -> topfans.common.BaseResponse
|
||
20, // 12: topfans.social.SearchUserForFriendResponse.user:type_name -> topfans.social.FanProfileSearchResult
|
||
33, // 13: topfans.social.GetRandomUsersResponse.base:type_name -> topfans.common.BaseResponse
|
||
21, // 14: topfans.social.GetRandomUsersResponse.users:type_name -> topfans.social.RandomUser
|
||
33, // 15: topfans.social.GetUsersPagedResponse.base:type_name -> topfans.common.BaseResponse
|
||
24, // 16: topfans.social.GetUsersPagedResponse.users:type_name -> topfans.social.PagedUser
|
||
33, // 17: topfans.social.LikeAssetResponse.base:type_name -> topfans.common.BaseResponse
|
||
33, // 18: topfans.social.UnlikeAssetResponse.base:type_name -> topfans.common.BaseResponse
|
||
33, // 19: topfans.social.CheckAssetLikeResponse.base:type_name -> topfans.common.BaseResponse
|
||
2, // 20: topfans.social.SocialService.SendFriendRequest:input_type -> topfans.social.SendFriendRequestRequest
|
||
4, // 21: topfans.social.SocialService.GetFriendRequests:input_type -> topfans.social.GetFriendRequestsRequest
|
||
6, // 22: topfans.social.SocialService.HandleFriendRequest:input_type -> topfans.social.HandleFriendRequestRequest
|
||
8, // 23: topfans.social.SocialService.GetFriendList:input_type -> topfans.social.GetFriendListRequest
|
||
10, // 24: topfans.social.SocialService.DeleteFriend:input_type -> topfans.social.DeleteFriendRequest
|
||
12, // 25: topfans.social.SocialService.SetFriendRemark:input_type -> topfans.social.SetFriendRemarkRequest
|
||
14, // 26: topfans.social.SocialService.CheckFriendship:input_type -> topfans.social.CheckFriendshipRequest
|
||
16, // 27: topfans.social.SocialService.GetFriendCount:input_type -> topfans.social.GetFriendCountRequest
|
||
18, // 28: topfans.social.SocialService.SearchUserForFriend:input_type -> topfans.social.SearchUserForFriendRequest
|
||
22, // 29: topfans.social.SocialService.GetRandomUsers:input_type -> topfans.social.GetRandomUsersRequest
|
||
25, // 30: topfans.social.SocialService.GetUsersPaged:input_type -> topfans.social.GetUsersPagedRequest
|
||
27, // 31: topfans.social.SocialService.LikeAsset:input_type -> topfans.social.LikeAssetRequest
|
||
29, // 32: topfans.social.SocialService.UnlikeAsset:input_type -> topfans.social.UnlikeAssetRequest
|
||
31, // 33: topfans.social.SocialService.CheckAssetLike:input_type -> topfans.social.CheckAssetLikeRequest
|
||
3, // 34: topfans.social.SocialService.SendFriendRequest:output_type -> topfans.social.SendFriendRequestResponse
|
||
5, // 35: topfans.social.SocialService.GetFriendRequests:output_type -> topfans.social.GetFriendRequestsResponse
|
||
7, // 36: topfans.social.SocialService.HandleFriendRequest:output_type -> topfans.social.HandleFriendRequestResponse
|
||
9, // 37: topfans.social.SocialService.GetFriendList:output_type -> topfans.social.GetFriendListResponse
|
||
11, // 38: topfans.social.SocialService.DeleteFriend:output_type -> topfans.social.DeleteFriendResponse
|
||
13, // 39: topfans.social.SocialService.SetFriendRemark:output_type -> topfans.social.SetFriendRemarkResponse
|
||
15, // 40: topfans.social.SocialService.CheckFriendship:output_type -> topfans.social.CheckFriendshipResponse
|
||
17, // 41: topfans.social.SocialService.GetFriendCount:output_type -> topfans.social.GetFriendCountResponse
|
||
19, // 42: topfans.social.SocialService.SearchUserForFriend:output_type -> topfans.social.SearchUserForFriendResponse
|
||
23, // 43: topfans.social.SocialService.GetRandomUsers:output_type -> topfans.social.GetRandomUsersResponse
|
||
26, // 44: topfans.social.SocialService.GetUsersPaged:output_type -> topfans.social.GetUsersPagedResponse
|
||
28, // 45: topfans.social.SocialService.LikeAsset:output_type -> topfans.social.LikeAssetResponse
|
||
30, // 46: topfans.social.SocialService.UnlikeAsset:output_type -> topfans.social.UnlikeAssetResponse
|
||
32, // 47: topfans.social.SocialService.CheckAssetLike:output_type -> topfans.social.CheckAssetLikeResponse
|
||
34, // [34:48] is the sub-list for method output_type
|
||
20, // [20:34] is the sub-list for method input_type
|
||
20, // [20:20] is the sub-list for extension type_name
|
||
20, // [20:20] is the sub-list for extension extendee
|
||
0, // [0:20] is the sub-list for field type_name
|
||
}
|
||
|
||
func init() { file_social_proto_init() }
|
||
func file_social_proto_init() {
|
||
if File_social_proto != nil {
|
||
return
|
||
}
|
||
type x struct{}
|
||
out := protoimpl.TypeBuilder{
|
||
File: protoimpl.DescBuilder{
|
||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||
RawDescriptor: unsafe.Slice(unsafe.StringData(file_social_proto_rawDesc), len(file_social_proto_rawDesc)),
|
||
NumEnums: 0,
|
||
NumMessages: 33,
|
||
NumExtensions: 0,
|
||
NumServices: 1,
|
||
},
|
||
GoTypes: file_social_proto_goTypes,
|
||
DependencyIndexes: file_social_proto_depIdxs,
|
||
MessageInfos: file_social_proto_msgTypes,
|
||
}.Build()
|
||
File_social_proto = out.File
|
||
file_social_proto_goTypes = nil
|
||
file_social_proto_depIdxs = nil
|
||
}
|