refactor: centralize protobuf and remove go-zero
This commit is contained in:
@@ -1,66 +1,66 @@
|
||||
syntax = "proto3";
|
||||
package relation;
|
||||
option go_package = ".;relation";
|
||||
import "blocks.proto";
|
||||
option go_package = "bsm/full/module/social/relation/pb;relation";
|
||||
import "protobuf/blocks.proto";
|
||||
|
||||
// relation-关系管理:好友
|
||||
service Friend{
|
||||
/** 基础操作 **/
|
||||
|
||||
//搜索
|
||||
rpc Search(SearchRequest) returns (PartFriendReply);
|
||||
rpc Search(blocks.SearchRequest) returns (PartFriendReply);
|
||||
|
||||
//获取好友列表
|
||||
rpc Fetch(VersionRequest) returns (FriendsReply);
|
||||
rpc Fetch(blocks.VersionRequest) returns (FriendsReply);
|
||||
|
||||
//获取用户信息卡片
|
||||
rpc Get(IdentRequest) returns (RelationItem);
|
||||
rpc Get(blocks.IdentRequest) returns (blocks.RelationItem);
|
||||
|
||||
//修改好友备注名称,如果要清除备注,直接nickname传空值
|
||||
rpc ModifyNickname(ModifyNicknameRequest) returns (StatusReply);
|
||||
rpc ModifyNickname(ModifyNicknameRequest) returns (blocks.DataStatusReply);
|
||||
|
||||
//受你欢迎的,置顶
|
||||
rpc DoPopular(IdentRequest) returns (StatusReply);
|
||||
rpc DoPopular(blocks.IdentRequest) returns (blocks.DataStatusReply);
|
||||
|
||||
//取消受欢迎的,取消置顶
|
||||
rpc UndoPopular(IdentRequest) returns (StatusReply);
|
||||
rpc UndoPopular(blocks.IdentRequest) returns (blocks.DataStatusReply);
|
||||
|
||||
//删除好友
|
||||
rpc Delete(IdentRequest) returns (StatusReply);
|
||||
rpc Delete(blocks.IdentRequest) returns (blocks.DataStatusReply);
|
||||
|
||||
/** 好友申请管理 **/
|
||||
|
||||
//好友申请列表
|
||||
rpc ApplyFetch(VersionRequest) returns (ApplyFetchReply);
|
||||
rpc ApplyFetch(blocks.VersionRequest) returns (ApplyFetchReply);
|
||||
|
||||
//好友申请详情
|
||||
rpc ApplyGet(IdentRequest) returns (FriendApplyGetReply);
|
||||
rpc ApplyGet(blocks.IdentRequest) returns (FriendApplyGetReply);
|
||||
|
||||
//好友申请
|
||||
rpc ApplyDo(ApplyDoRequest) returns (StatusReply);
|
||||
rpc ApplyDo(ApplyDoRequest) returns (blocks.DataStatusReply);
|
||||
|
||||
//好友申请Do:留言
|
||||
rpc ApplyDoMessage(ApplyMessageRequest) returns (StatusReply);
|
||||
rpc ApplyDoMessage(ApplyMessageRequest) returns (blocks.DataStatusReply);
|
||||
|
||||
//好友申请Do:确认
|
||||
rpc ApplyDoPass(ApplyDoPassRequest) returns (StatusReply);
|
||||
rpc ApplyDoPass(ApplyDoPassRequest) returns (blocks.DataStatusReply);
|
||||
|
||||
//好友申请Do:拒绝
|
||||
rpc ApplyDoReject(IdentRequest) returns (StatusReply);
|
||||
rpc ApplyDoReject(blocks.IdentRequest) returns (blocks.DataStatusReply);
|
||||
|
||||
/** 好友标签管理 **/
|
||||
|
||||
//获取标签列表
|
||||
rpc TagFetch(Empty) returns (FriendTagsReply);
|
||||
rpc TagFetch(blocks.Empty) returns (FriendTagsReply);
|
||||
|
||||
//获取标签成员
|
||||
rpc TagMemberFetch(IdentRequest) returns (PartFriendReply);
|
||||
rpc TagMemberFetch(blocks.IdentRequest) returns (PartFriendReply);
|
||||
|
||||
//创建标签
|
||||
rpc TagDoCreate(TagDoCreateRequest) returns (StatusReply);
|
||||
rpc TagDoCreate(TagDoCreateRequest) returns (blocks.DataStatusReply);
|
||||
|
||||
//更新标签成员
|
||||
rpc TagDoUpdate(TagDoUpdateRequest) returns (StatusReply);
|
||||
rpc TagDoUpdate(TagDoUpdateRequest) returns (blocks.DataStatusReply);
|
||||
|
||||
}
|
||||
|
||||
@@ -74,7 +74,7 @@ message ApplyFetchReply {
|
||||
|
||||
message ApplyItem {
|
||||
string identity=1; // 唯一标识
|
||||
RelationItem from=2;
|
||||
blocks.RelationItem from=2;
|
||||
MessageItem message=3;
|
||||
string created_at=4; //时间
|
||||
int32 status =5; // 状态
|
||||
@@ -100,18 +100,18 @@ message ApplyMessageRequest {
|
||||
message PartFriendReply {
|
||||
int32 total=1; // 总记录数
|
||||
int64 version=2; //版本号
|
||||
repeated RelationItem friends=4; //好友信息
|
||||
repeated blocks.RelationItem friends=4; //好友信息
|
||||
}
|
||||
|
||||
message FriendsReply {
|
||||
int32 total=1; // 总记录数
|
||||
int64 version=2; //版本号
|
||||
repeated TagItem tags=3; //分组标签信息
|
||||
repeated RelationItem friends=4; //好友信息
|
||||
repeated blocks.RelationItem friends=4; //好友信息
|
||||
}
|
||||
|
||||
message FriendApplyGetReply{
|
||||
RelationItem data=1; // 会员信息卡片
|
||||
blocks.RelationItem data=1; // 会员信息卡片
|
||||
repeated MessageItem message=2; //聊天记录
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user