| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- syntax = "proto3";
- package api.chat;
- //import "google/api/annotations.proto";
- //import "google/protobuf/struct.proto";
- import "google/protobuf/empty.proto";
- import "api/common/common.proto";
- option go_package = "git.ikuban.com/server/pw-protobuf/api/chat;chat";
- option java_multiple_files = true;
- option java_package = "api.chat";
- service Chat {
- // 检查用户是否与接待员聊天
- rpc CheckUserPartnerIsRelationship (common.UserAndPartnerIdParam) returns (CheckUserPartnerIsRelationshipReply);
- // 创建用户与接待员的聊天
- rpc CreateUserPartnerIsRelationship (common.UserAndPartnerIdParam) returns (CreateUserPartnerIsRelationshipReply);
- // 查询在线人的列表
- rpc FindOnlinePersonList (common.PersonParam) returns (OnlinePersonListReply);
- }
- message OnlinePersonListReply{
- repeated OnlinePersonInfo list = 1;
- }
- message OnlinePersonInfo{
- string personID = 1; // 查询目标的ID
- string personType = 2; // 类型
- string nickname = 3;// 昵称
- string avatarUrl =4;// 头像链接
- int64 sex = 5;// 性别
- int64 age = 6; // 年龄
- string constellation = 7; // 星座
- string signature = 8; // 签名
- string province = 9;// 省
- string city = 10;// 市
- string area = 11;// 区
- }
- message CheckUserPartnerIsRelationshipReply{
- bool isBuildRelationship = 1;
- int64 roomId = 2;
- }
- message CreateUserPartnerIsRelationshipReply{
- int64 roomId = 1;
- }
|