fee.proto 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. syntax = "proto3";
  2. // package声明符,用来防止不同的消息类型有命名冲突
  3. package pb_v1;
  4. // 用于生成指定语言go的包名称
  5. option go_package = "property-task/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. }
  57. message ChargeUrgeInfoRequest {
  58. int64 garden_id = 1;
  59. }
  60. message ChargeUrgeInfoReply {
  61. int64 urge_day = 1;
  62. int32 urge_target = 2;
  63. int32 urge_msg_type = 3;
  64. int64 id = 4;
  65. }