base.proto 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. syntax = "proto3";
  2. package api.base;
  3. import "google/api/annotations.proto";
  4. //import "google/protobuf/struct.proto";
  5. //import "google/protobuf/empty.proto";
  6. import "api/common/common.proto";
  7. option go_package = "git.ikuban.com/server/pw-protobuf/api/base;base";
  8. option java_multiple_files = true;
  9. option java_package = "api.base";
  10. service Base {
  11. //
  12. // rpc RandomNickname (common.SexReq) returns (RandomNicknameReply){
  13. // option (google.api.http) = {
  14. // post: "/api/common/random/nickname",
  15. // body:"*"
  16. // };
  17. // };
  18. // rpc RandomAvatar (common.SexReq) returns (RandomAvatarReply){
  19. // option (google.api.http) = {
  20. // post: "/api/common/random/avatar",
  21. // body:"*"
  22. // };
  23. // };
  24. // // 随机介绍接口
  25. // rpc RandomIntroduce (common.SexReq) returns (common.RandomIntroduceReply){
  26. // option (google.api.http) = {
  27. // post: "/api/common/random/introduce",
  28. // body:"*"
  29. // };
  30. // };
  31. // // 随机头像列表
  32. // rpc RandomAvatarList (common.SexReq) returns (RandomAvatarListReply){};
  33. // // 通过分组名和性别查询标签
  34. // rpc FindTagListBySex (common.SexReq) returns (common.TagListReply);
  35. // // 通过标签IDs查询标签
  36. // rpc FindTagsByIDs (common.Ids) returns (common.TagListReply);
  37. // // 通过类型获取表情包列表
  38. // rpc FindMemeByType (common.MemeRequest) returns (common.MemeList){};
  39. // // 获取对方性别的聊天话题
  40. // rpc FindChatTopic (common.FindChatTopicRequest) returns (common.ChatTopicList){};
  41. // // 随机表情包
  42. // rpc RandomMeme (common.RandomNum) returns (common.CommonTextList){};
  43. // // 随机打招呼
  44. // rpc RandomSwiftMessage (common.RandomNumAndSex) returns (common.CommonTextList){};
  45. }
  46. //message CheckTextRequest{
  47. // string text = 1;// 待审核的文本
  48. //}
  49. //
  50. //message CheckTextReply{
  51. // bool isPass = 1;// 是否通过
  52. //}
  53. //
  54. //message MediaID{
  55. // string mediaId = 1;
  56. //}
  57. //
  58. //message MaterialLink {
  59. // string link = 1;
  60. //}
  61. //
  62. //message RandomNicknameReply{
  63. // string nickname = 1;
  64. //}
  65. //
  66. //message RandomAvatarReply{
  67. // string avatarUrl = 1;
  68. //}
  69. //
  70. //message RandomAvatarListReply{
  71. // repeated string list = 1;
  72. //}