syntax = "proto3"; package order; option go_package = "./order"; message Empty{ } message FetchRequest { int64 page_no=1; // 页数 int64 page_size=2; // 每页记录数 map params=3; // 条件参数,key=val,eg key:category_id=?,vlaue=11 } message IdentRequest{ int64 id = 1; // 唯一ID string identity = 2; // 唯一码 } message StatusReply{ int64 status = 1; // 状态码 string identity=2; // 标识码 string message=3; //状态说明 int64 timeseq=4; // 响应时间序列 } // Order(订单)微服务-优惠卷 service Coupon { // 按状态获取优惠卷 rpc ByStatus(Status) returns (CouponListReply) {}; } message Status { int32 status = 1; //优惠卷状态 } message CouponListReply { repeated CouponItem data = 1; // 购物车中的商品数据列表 } message CouponItem{ int64 id = 1; // ID string identity = 2; // 唯一码 string title = 3; //标题 string intro = 4; //描述 string amount = 5; //金额 string started =6; // 开始时间 string expired =7; // 结束时间 string status =8; // 状态 }