partner.proto 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. syntax = "proto3";
  2. package api.partner;
  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/partner;partner";
  8. option java_multiple_files = true;
  9. option java_package = "api.partner";
  10. service Partner {
  11. rpc GetPartnerInfo (google.protobuf.Empty) returns (PartnerInfo){
  12. option (google.api.http) = {
  13. post: "/api/partner/info",
  14. body:"*"
  15. };
  16. };
  17. rpc GetPartnerCircleInfo (common.PartnerIDParam) returns (PartnerCircleInfo){
  18. option (google.api.http) = {
  19. post: "/api/partner/circle/info",
  20. body:"*"
  21. };
  22. };
  23. rpc UpdatePartnerInformation (UpdatePartnerInformationRequest) returns (google.protobuf.Empty){
  24. option (google.api.http) = {
  25. post: "/api/user/update/information",
  26. body:"*"
  27. };
  28. };
  29. }
  30. message UpdatePartnerInformationRequest {
  31. string Nickname = 1;
  32. string avatarUrl = 2;
  33. int64 sex = 3;
  34. }
  35. message PartnerCircleInfo{
  36. string id = 1; // id
  37. string nickname = 2;// 昵称
  38. string avatarUrl =3;// 头像链接
  39. int64 sex = 4;// 性别
  40. repeated string pictures = 5; // 图片
  41. }
  42. message PartnerInfo{
  43. string id = 1; // id
  44. string nickname = 2;// 昵称
  45. string avatarUrl =3;// 头像链接
  46. int64 sex = 4;// 性别
  47. repeated string pictures = 5; // 图片
  48. }