refactor: centralize protobuf and remove go-zero
This commit is contained in:
@@ -1,21 +1,21 @@
|
||||
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 Match{
|
||||
// 获取匹配列表
|
||||
rpc Fetch(FetchRequest) returns (FetchRelationItemReply) {}
|
||||
rpc Fetch(blocks.FetchRequest) returns (blocks.FetchRelationItemReply) {}
|
||||
|
||||
// 获取匹配详情
|
||||
rpc Get(IdentRequest) returns (RelationItem) {}
|
||||
rpc Get(blocks.IdentRequest) returns (blocks.RelationItem) {}
|
||||
|
||||
// 执行通过,加为好友
|
||||
rpc DoJoin(IdentRequest) returns (StatusReply) {}
|
||||
rpc DoJoin(blocks.IdentRequest) returns (blocks.DataStatusReply) {}
|
||||
|
||||
// 执行忽略
|
||||
rpc DoIgnore(IdentRequest) returns (StatusReply) {}
|
||||
rpc DoIgnore(blocks.IdentRequest) returns (blocks.DataStatusReply) {}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user