| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576 |
- syntax = "proto3";
- package api.basics;
- 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/basics;basics";
- option java_multiple_files = true;
- option java_package = "api.basics";
- service Basics {
- 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 BannerConf (BannerConfRequest) returns (BannerConfReply){
- option (google.api.http) = {
- post: "/api/common/config/withoutauth/banner",
- 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 BannerConfRequest{
- string type = 1;
- }
- message BannerConfReply{
- bool isOpen = 1;// 是否开启
- string linkUrl = 2;// 链接
- string pictureUrl = 3;// 图片
- }
- message RandomNicknameReply{
- string nickname = 1;
- }
- message RandomAvatarReply{
- string avatarUrl = 1;
- }
- message RandomAvatarListReply{
- repeated string list = 1;
- }
|