| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- syntax = "proto3";
- package api.partner;
- import "google/api/annotations.proto";
- //import "google/protobuf/struct.proto";
- import "google/protobuf/empty.proto";
- import "api/base/base.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 Authorization (base.AuthorizationRequest) returns (base.TokenReply){
- option (google.api.http) = {
- post: "/api/partner/authorization",
- body:"*"
- };
- };
- rpc DebugLogin (base.DebugLoginRequest) returns (base.TokenReply){
- option (google.api.http) = {
- post: "/api/user/login/debug",
- body:"*"
- };
- };
- rpc GetPartnerInfo (google.protobuf.Empty) returns (PartnerInfo){
- option (google.api.http) = {
- post: "/api/partner/info",
- body:"*"
- };
- };
- rpc GetPartnerCircleInfo (base.PartnerIDParam) returns (PartnerCircleInfo){
- option (google.api.http) = {
- post: "/api/partner/info/circle",
- body:"*"
- };
- };
- }
- message PartnerCircleInfo{
- string id = 1; // id
- string nickname = 2;// 昵称
- string avatarUrl =3;// 头像链接
- string phone = 4;// 手机号
- int64 sex = 5;// 性别
- int64 credit = 6;// 积分
- }
- message PartnerInfo{
- string id = 1; // id
- string nickname = 2;// 昵称
- string avatarUrl =3;// 头像链接
- string phone = 4;// 手机号
- int64 sex = 5;// 性别
- int64 credit = 6;// 积分
- }
|