syntax = "proto3"; package mixservice.mixv1; import "validate/validate.proto"; import "mix/mixv1/common.proto"; option go_package = "./mix/mixv1;mixv1"; // 合同渠道 service ContractChannel { // 合同渠道列表 rpc SearchList (ReqContractChannelSearchList) returns (RespContractChannelSearchList) {} // 更新 rpc Update (ReqContractChannelUpdate) returns (Empty) {} // 创建 rpc Create(ReqContractChannelCreate) returns (RespContractChannelDetail) {} // 删除 rpc Delete(ReqContractChannelDelete) returns (Empty) {} } // 合同列表请求参数 message ReqContractChannelSearchList { // 分页 ReqPage page = 1; // 名称 string name = 2; } // 创建参数 message ReqContractChannelCreate { string name = 2 [(validate.rules).string.min_len = 2]; // 渠道名称 } // 更新参数 message ReqContractChannelUpdate { int32 id = 1[(validate.rules).int32.gt = 0];; // 渠道id string name = 2 [(validate.rules).string.min_len = 2]; // 渠道名称 } // 删除参数 message ReqContractChannelDelete { int32 id = 1 [(validate.rules).int32.gt = 0]; // 渠道id } // 渠道详情 message RespContractChannelDetail { int32 id = 1; // 渠道id string name = 2; // 渠道名称 int32 create_time = 3; // 创建时间 int32 update_time = 4; // 更新时间 int32 status = 5; // 状态 } message RespContractChannelSearchList { // 列表 repeated RespContractChannelDetail list = 1; // 分页 RespPage page = 2; }