| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879 |
- syntax = "proto3";
- package api.partner;
- 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/partner;partner";
- option java_multiple_files = true;
- option java_package = "api.partner";
- service Partner {
- // 获取陪聊的个人信息
- rpc GetPartnerInfo (google.protobuf.Empty) returns (PartnerInfo){
- option (google.api.http) = {
- post: "/api/partner/info",
- body:"*"
- };
- };
- // 获取陪聊的确认通过页面信息
- rpc GetPartnerCircleInfo (common.PartnerIDParam) returns (common.AddFriendMessageInfo){
- option (google.api.http) = {
- post: "/api/partner/circle/info",
- body:"*"
- };
- };
- // 更新陪聊的信息
- rpc UpdatePartnerInformation (UpdatePartnerInformationRequest) returns (google.protobuf.Empty){
- option (google.api.http) = {
- post: "/api/partner/update/information",
- body:"*"
- };
- };
- rpc GetRandomPartnerInfo (GetRandomPartnerRequest) returns (RandomPartnerInfo);
- // 获取陪聊的主页
- rpc GetPartnerHomeInfo (common.PartnerIDParam) returns (common.HomeInfo){
- option (google.api.http) = {
- post: "/api/partner/home",
- body:"*"
- };
- };
- // 通过陪玩IDs查看用户信息列表
- rpc FindPartnerDBList (common.PersonIDList) returns (common.PersonDBReply);
- }
- message UpdatePartnerInformationRequest {
- string Nickname = 1; // 昵称
- string avatarUrl = 2;// 头像
- int64 sex = 3; // 性别
- }
- message PartnerInfo{
- string id = 1; // id
- string nickname = 2;// 昵称
- string avatarUrl =3;// 头像链接
- int64 age = 4;// 年龄
- int64 sex = 5;// 性别
- int64 lookNum = 6;// 看过我
- int64 lookUnreadNum = 7;// 看过我的未读数
- int64 level = 8;// 等级
- int64 balance = 9;// 可提现余额
- int64 todayProfit = 10;// 进入收益
- int64 todayReceptionNum = 11;// 今日接待人数
- string reversionRate = 12;// 五分钟的回复率
- }
- message RandomPartnerInfo{
- string id = 1; // id
- string nickname = 2;// 昵称
- string avatarUrl =3;// 头像链接
- int64 sex = 4;// 性别
- }
- message GetRandomPartnerRequest{
- int64 sex = 1;// 性别
- }
|