123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172 |
- syntax = "proto3";
- // package声明符,用来防止不同的消息类型有命名冲突
- package pb_v1;
- // 用于生成指定语言go的包名称
- option go_package = "property-task/pb/v1";
- message GardenIdInfo {
- int64 garden_id = 1;
- string garden_name = 2;
- }
- message GardenIdsRequest {
- }
- message GardenIdsReply {
- repeated GardenIdInfo garden_ids = 1;
- }
- // 短信套餐相关
- message MsgPackageOrderListRequest {
- int64 garden_id = 1;
- bool management = 2;
- int64 page = 3;
- int64 page_size = 4;
- bool available = 5;
- int64 status = 6;
- }
- message MsgPackageOrderItem {
- int64 order_id = 1;
- string name = 2;
- string comment = 3;
- // 套餐短信条数
- int64 msg_count = 4;
- // 订单套餐短信总条数
- int64 msg_total_count = 5;
- // 订单套餐短信剩余条数
- int64 msg_available_count = 6;
- int64 package_id = 7;
- // 订单包含的套餐个数
- int64 package_count = 8;
- int64 created_at = 9;
- // 套餐单价
- int64 price = 10;
- // 订单总价
- int64 amount = 11;
- // 1 待审核 2 通过 3 未通过
- int32 status = 12;
- string garden_name = 13;
- int64 garden_id = 14;
- string feedback = 15;
- }
- message MsgPackageOrderListReply{
- int64 page = 1;
- int64 total = 2;
- repeated MsgPackageOrderItem list = 3;
- }
- message MsgPackageOrderDecreaseRequest {
- int64 order_id = 1;
- int64 garden_id = 2;
- int64 count = 3;
- }
- message MsgPackageOrderDecreaseReply {
- }
|