| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677 |
- syntax = "proto3";
- package api.base;
- 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/base;base";
- option java_multiple_files = true;
- option java_package = "api.base";
- service Base {
- rpc RandomNickname (common.SexReq) returns (RandomNicknameReply){
- option (google.api.http) = {
- post: "/api/common/random/nickname",
- body:"*"
- };
- };
- rpc RandomAvatar (common.SexReq) returns (RandomAvatarReply){
- option (google.api.http) = {
- post: "/api/common/random/avatar",
- body:"*"
- };
- };
- // 随机介绍接口
- rpc RandomIntroduce (common.SexReq) returns (common.RandomIntroduceReply){
- option (google.api.http) = {
- post: "/api/common/random/introduce",
- body:"*"
- };
- };
- // 随机头像列表
- rpc RandomAvatarList (common.SexReq) returns (RandomAvatarListReply){};
- // 通过分组名和性别查询标签
- rpc FindTagListBySex (common.SexReq) returns (common.TagListReply);
- // 通过标签IDs查询标签
- rpc FindTagsByIDs (common.Ids) returns (common.TagListReply);
- // 通过类型获取表情包列表
- rpc FindMemeByType (common.MemeRequest) returns (common.MemeList){};
- // 获取对方性别的聊天话题
- rpc FindChatTopic (common.FindChatTopicRequest) returns (common.ChatTopicList){};
- // 随机表情包
- rpc RandomMeme (common.RandomNum) returns (common.CommonTextList){};
- // 随机打招呼
- rpc RandomSwiftMessage (common.RandomNumAndSex) returns (common.CommonTextList){};
- }
- message CheckTextRequest{
- string text = 1;// 待审核的文本
- }
- message CheckTextReply{
- bool isPass = 1;// 是否通过
- }
- message MediaID{
- string mediaId = 1;
- }
- message MaterialLink {
- string link = 1;
- }
- message RandomNicknameReply{
- string nickname = 1;
- }
- message RandomAvatarReply{
- string avatarUrl = 1;
- }
- message RandomAvatarListReply{
- repeated string list = 1;
- }
|