广告平台(站长使用)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

md_settle_center.go 3.0 KiB

3 months ago
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. package md
  2. var AccountSettleState = []SelectData{
  3. {Name: "日结", Value: "1"},
  4. {Name: "周结", Value: "2"},
  5. {Name: "月结", Value: "3"},
  6. {Name: "预付", Value: "4"},
  7. }
  8. var BusinessKind = []SelectData{
  9. {Name: "广告合作", Value: "1"},
  10. }
  11. var InvoiceCate = []SelectData{
  12. {Name: "电子发票", Value: "0"},
  13. {Name: "纸质发票", Value: "1"},
  14. }
  15. var SettlePayState = []SelectData{
  16. {Name: "未开始", Value: "0"},
  17. {Name: "待审核发票", Value: "1"},
  18. {Name: "发票审核中", Value: "2"},
  19. {Name: "发票审核拒绝", Value: "3"},
  20. {Name: "付款中", Value: "4"},
  21. {Name: "已付款", Value: "5"},
  22. }
  23. var SettleState = []SelectData{
  24. {Name: "未开始", Value: "0"},
  25. {Name: "核算中", Value: "1"},
  26. {Name: "待签订", Value: "2"},
  27. {Name: "完成签订", Value: "3"},
  28. }
  29. var InvoiceState = []SelectData{
  30. {Name: "待审核", Value: "0"},
  31. {Name: "审核通过", Value: "1"},
  32. {Name: "审核拒绝", Value: "2"},
  33. }
  34. type SettleCenterDataReq struct {
  35. Limit string `json:"limit"`
  36. Page string `json:"page" `
  37. Name string `json:"name"`
  38. Account string `json:"account"`
  39. State string `json:"state"`
  40. }
  41. type SettleCenterDataRes struct {
  42. List []SettleCenterDataData `json:"list" `
  43. Total int64 `json:"total"`
  44. State []SelectData `json:"state"`
  45. }
  46. type SettleCenterDataData struct {
  47. Id string `json:"id"`
  48. Name string `json:"name"`
  49. Account string `json:"account"`
  50. SettleType string `json:"settle_type"`
  51. UpdateAt string `json:"update_at"`
  52. }
  53. type SettleCenterDataSaveReq struct {
  54. Id string `json:"id"`
  55. SettleType string `json:"settle_type"`
  56. }
  57. type SettleCenterDataDetailReq struct {
  58. Limit string `json:"limit"`
  59. Id string `json:"id"`
  60. Page string `json:"page" `
  61. StartTime string `json:"start_time" example:"2024-08-29"`
  62. EndTime string `json:"end_time" `
  63. }
  64. type SettleCenterDataDetailRes struct {
  65. List []SettleCenterDataDetailData `json:"list" `
  66. Total int64 `json:"total"`
  67. BusinessKind []SelectData `json:"business_kind"`
  68. SettlePayState []SelectData `json:"settle_pay_state"`
  69. SettleState []SelectData `json:"settle_state"`
  70. SettleType []SelectData `json:"settle_type"`
  71. }
  72. type SettleCenterDataDetailData struct {
  73. TimeStr string `json:"time_str"example:"业务时间"`
  74. BusinessKind string `json:"business_kind" example:"业务类型(1:广告合作)"`
  75. SettleType string `json:"settle_type" example:"结算单类型(1:日结 2:周结 3:月结 4:预付)"`
  76. AllIncome string `json:"all_income" example:"总计"`
  77. BasicIncome string `json:"basic_income" example:"基础收益"`
  78. OtherIncome string `json:"other_income" example:"其他收益"`
  79. PayState string `json:"pay_state" example:"结算单支付状态(0:未开始 1:待审核发票 2:发票审核中 3:发票审核拒绝 4:付款中 5:已付款)"`
  80. State string `json:"state" example:"结算单状态(0:未开始 1:核算中 2:待签订 3:完成签订)"`
  81. }