go-common/app/service/live/banned_service/api/liverpc/v1/Shield.proto

42 lines
1.0 KiB
Protocol Buffer
Raw Normal View History

2019-04-22 10:49:16 +00:00
syntax = "proto3";
package banned_service.v1;
option go_package = "v1";
import "github.com/gogo/protobuf/gogoproto/gogo.proto";
service Shield {
/**
*
*/
rpc is_shield_content (ShieldIsShieldContentReq) returns (ShieldIsShieldContentResp);
}
message ShieldIsShieldContentReq {
// 房主uid
int64 uid = 1 [(gogoproto.jsontag) = "uid"];
// 内容
string content = 2 [(gogoproto.jsontag) = "content"];
}
message ShieldIsShieldContentResp {
//
int64 code = 1 [(gogoproto.jsontag) = "code"];
//
string msg = 2 [(gogoproto.jsontag) = "msg"];
//
Data data = 3 [(gogoproto.jsontag) = "data"];
message Data {
//
int64 uid = 1 [(gogoproto.jsontag) = "uid"];
// 是否是被屏蔽的内容
bool is_shield_content = 2 [(gogoproto.jsontag) = "is_shield_content"];
// 命中的屏蔽词
string shield_by = 3 [(gogoproto.jsontag) = "shield_by"];
}
}