system.proto 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. syntax = "proto3";
  2. // package声明符,用来防止不同的消息类型有命名冲突
  3. package pb_v1;
  4. // 用于生成指定语言go的包名称
  5. option go_package = "property-task/pb/v1";
  6. message GardenIdInfo {
  7. int64 garden_id = 1;
  8. string garden_name = 2;
  9. }
  10. message GardenIdsRequest {
  11. }
  12. message GardenIdsReply {
  13. repeated GardenIdInfo garden_ids = 1;
  14. }
  15. // 短信套餐相关
  16. message MsgPackageOrderListRequest {
  17. int64 garden_id = 1;
  18. bool management = 2;
  19. int64 page = 3;
  20. int64 page_size = 4;
  21. bool available = 5;
  22. int64 status = 6;
  23. }
  24. message MsgPackageOrderItem {
  25. int64 order_id = 1;
  26. string name = 2;
  27. string comment = 3;
  28. // 套餐短信条数
  29. int64 msg_count = 4;
  30. // 订单套餐短信总条数
  31. int64 msg_total_count = 5;
  32. // 订单套餐短信剩余条数
  33. int64 msg_available_count = 6;
  34. int64 package_id = 7;
  35. // 订单包含的套餐个数
  36. int64 package_count = 8;
  37. int64 created_at = 9;
  38. // 套餐单价
  39. int64 price = 10;
  40. // 订单总价
  41. int64 amount = 11;
  42. // 1 待审核 2 通过 3 未通过
  43. int32 status = 12;
  44. string garden_name = 13;
  45. int64 garden_id = 14;
  46. string feedback = 15;
  47. }
  48. message MsgPackageOrderListReply{
  49. int64 page = 1;
  50. int64 total = 2;
  51. repeated MsgPackageOrderItem list = 3;
  52. }
  53. message MsgPackageOrderDecreaseRequest {
  54. int64 order_id = 1;
  55. int64 garden_id = 2;
  56. int64 count = 3;
  57. }
  58. message MsgPackageOrderDecreaseReply {
  59. }