| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061 |
- 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 (GetPartnerCircleInfoReq) returns (PartnerCircleInfo){
- option (google.api.http) = {
- post: "/api/partner/info/circle",
- body:"*"
- };
- };
- }
- message GetPartnerCircleInfoReq{
- string partnerId = 1;
- }
- 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;// 积分
- }
|