69 lines
1.3 KiB
Protocol Buffer
69 lines
1.3 KiB
Protocol Buffer
syntax = "proto3";
|
|
|
|
package pb;
|
|
|
|
option go_package = "./;pb";
|
|
|
|
import "common.proto";
|
|
|
|
service MopAccountSystem {
|
|
rpc QueryOrganInfo (QueryOrganInfoReq) returns (QueryOrganInfoRsp) {}
|
|
rpc GetBusinessInfoById (GetBusinessInfoByIdReq) returns (GetBusinessInfoByIdRsp) {}
|
|
}
|
|
|
|
//接口一
|
|
message QueryOrganInfoReq {
|
|
string accountId = 1;
|
|
}
|
|
|
|
|
|
message QueryOrganInfoRsp {
|
|
CommonResult result = 1;
|
|
|
|
message DATA {
|
|
string accountTraceId = 1;
|
|
string organTraceId = 2;
|
|
|
|
message ACCOUNT_INFO {
|
|
string account = 1;
|
|
string phone = 2;
|
|
int64 createTime = 3;
|
|
}
|
|
ACCOUNT_INFO accountInfo = 3;
|
|
|
|
message ORGSN_INFO_WITH_STATUS {
|
|
string name = 1;
|
|
string socialCreditCode = 2;
|
|
string licenseNetdiskId = 3;
|
|
string authorizationNetdiskId = 4;
|
|
int32 reviewStatus = 5;
|
|
}
|
|
ORGSN_INFO_WITH_STATUS organInfo = 4;
|
|
|
|
message ADMIN_INFO {
|
|
string name = 1;
|
|
string identity = 2;
|
|
string phone = 3;
|
|
}
|
|
ADMIN_INFO adminInfo = 5;
|
|
}
|
|
|
|
DATA data = 2;
|
|
}
|
|
|
|
//接口二
|
|
message GetBusinessInfoByIdReq {
|
|
string organTraceId = 1;
|
|
}
|
|
|
|
message GetBusinessInfoByIdRsp {
|
|
CommonResult result = 1;
|
|
|
|
message DATA {
|
|
string groupId = 1;
|
|
string groupName = 2;
|
|
int32 reviewStatus = 3;
|
|
string socialCreditCode = 4;
|
|
}
|
|
DATA data = 2;
|
|
} |