syntax = "proto3"; package productservice.productv1; import "product/productv1/common.proto"; option go_package = "./product/productv1;productv1"; service Officials { // 上游平台商品-获取规格树选项 rpc GetOfficialsTree (GetOfficialsTreeRequest) returns (GetOfficialTreeReply); // 官方平台列表 rpc GetOfficialBatch(ReqPage) returns(GetOfficialBatchReply); // 更新官方平台信息 rpc UpdateOfficialInfo (Official) returns (RespEmpty){} // 更新官方平台启用状态 rpc UpdateOfficialStatus (OfficialIdReq) returns (RespEmpty){} // 添加平台 rpc Create (Official) returns (RespEmpty){} } // 上游平台商品-获取规格树选项 入参 message GetOfficialsTreeRequest { int32 type = 1; } // 上游平台商品-获取规格树选项 出参 message GetOfficialTreeReply { repeated Tree data = 1; message Tree { int32 id = 1; string name = 2; repeated OfficialProduct products = 3; message OfficialProduct { int32 id = 1; string name = 2; float price = 3; } } } message GetOfficialBatchReply { int32 data_count = 1; // 数据总数 repeated Official list = 2; } message Official { int32 id = 1; string name = 2; string describe = 3; int32 num = 4; int32 status = 5; string web_url = 6; string recharge_url = 7; int32 create_time = 8; int32 update_time = 9; int32 type = 10; string tag = 11; } message OfficialIdReq { int32 id = 1; }