fee.proto 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. syntax = "proto3";
  2. // package声明符,用来防止不同的消息类型有命名冲突
  3. package pb_v1;
  4. // 用于生成指定语言go的包名称
  5. option go_package = "property-garden/pb/v1";
  6. // 费用描述
  7. message BillDesc {
  8. int32 charge_basis = 1;
  9. double obj_area = 2;
  10. int64 fix_amount = 3;
  11. string fix_amount_name = 4;
  12. int64 unit_price = 5;
  13. int64 CustomFee = 6;
  14. }
  15. // 生成账单接口
  16. message GenerateBillRequest {
  17. // 小区id
  18. int64 garden_id = 1;
  19. // 费项id
  20. int64 charge_id = 2;
  21. // 费用绑定id,如果charge_bind_id不为空表示只生成这条绑定关系的账单
  22. int64 charge_bind_id=3;
  23. // 计算结束时间
  24. int64 end_time = 4;
  25. }
  26. message GenerateBillReply{
  27. }
  28. // 生成滞纳金接口
  29. message GenerateOverdueRequest{
  30. // 小区id
  31. int64 garden_id = 1;
  32. // 费用项目id
  33. int64 charge_id = 2;
  34. }
  35. message GenerateOverdueReply{
  36. }
  37. // 生成催缴接口
  38. message GenerateReminderRequest{
  39. // 小区id
  40. int64 garden_id = 1;
  41. repeated int32 user_type = 2;
  42. bool is_new = 3;
  43. }
  44. message ReminderUserInfo {
  45. string public_open_id = 1;
  46. string phone = 2;
  47. }
  48. message ReminderItem {
  49. int64 obj_id = 1;
  50. int32 obj_type = 2;
  51. // 微信公众号openid
  52. repeated ReminderUserInfo users = 3;
  53. }
  54. message GenerateReminderReply{
  55. repeated ReminderItem list = 1;
  56. }