广告平台(媒体使用)
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

md_settle_center.go 4.3 KiB

před 3 měsíci
před 3 měsíci
před 3 měsíci
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  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 PayMethod = []SelectData{
  12. {Name: "对私账户", Value: "0"},
  13. {Name: "对公账户", Value: "1"},
  14. }
  15. var InvoiceCate = []SelectData{
  16. {Name: "电子发票", Value: "0"},
  17. {Name: "纸质发票", Value: "1"},
  18. }
  19. var SettlePayState = []SelectData{
  20. {Name: "未开始", Value: "0"},
  21. {Name: "待审核发票", Value: "1"},
  22. {Name: "发票审核中", Value: "2"},
  23. {Name: "发票审核拒绝", Value: "3"},
  24. {Name: "付款中", Value: "4"},
  25. {Name: "已付款", Value: "5"},
  26. }
  27. var SettleState = []SelectData{
  28. {Name: "未开始", Value: "0"},
  29. {Name: "核算中", Value: "1"},
  30. {Name: "待签订", Value: "2"},
  31. {Name: "完成签订", Value: "3"},
  32. }
  33. var InvoiceState = []SelectData{
  34. {Name: "待审核", Value: "0"},
  35. {Name: "审核通过", Value: "1"},
  36. {Name: "审核拒绝", Value: "2"},
  37. }
  38. type SettleCenterDataReq struct {
  39. Limit string `json:"limit"`
  40. Page string `json:"page" `
  41. StartTime string `json:"start_time" example:"2024-08-29"`
  42. EndTime string `json:"end_time" `
  43. }
  44. type SettleCenterDataRes struct {
  45. List []SettleCenterDataData `json:"list" `
  46. Total int64 `json:"total"`
  47. BusinessKind []SelectData `json:"business_kind"`
  48. SettlePayState []SelectData `json:"settle_pay_state"`
  49. SettleState []SelectData `json:"settle_state"`
  50. SettleType []SelectData `json:"settle_type"`
  51. }
  52. type SettleCenterDataData struct {
  53. Id string `json:"id"`
  54. TimeStr string `json:"time_str" example:"业务时间"`
  55. BusinessKind string `json:"business_kind" example:"业务类型(1:广告合作)"`
  56. SettleType string `json:"settle_type" example:"结算单类型(1:日结 2:周结 3:月结 4:预付)"`
  57. AllIncome string `json:"all_income" example:"合计收益"`
  58. MediumIncome string `json:"medium_income" example:"媒体结算"`
  59. OtherIncome string `json:"other_income" example:"其他调整"`
  60. PayState string `json:"pay_state" example:"结算单支付状态(0:未开始 1:待审核发票 2:发票审核中 3:发票审核拒绝 4:付款中 5:已付款)"`
  61. State string `json:"state" example:"结算单状态(0:未开始 1:核算中 2:待签订 3:完成签订)"`
  62. Label string `json:"label"`
  63. SettleFile string `json:"settle_file" example:"结算单"`
  64. }
  65. type SettleCenterDataDetailRes struct {
  66. Data SettleCenterDataDetail `json:"data" `
  67. BusinessKind []SelectData `json:"business_kind"`
  68. SettlePayState []SelectData `json:"settle_pay_state"`
  69. InvoiceState []SelectData `json:"invoice_state"`
  70. SettleState []SelectData `json:"settle_state"`
  71. SettleType []SelectData `json:"settle_type"`
  72. InvoiceCate []SelectData `json:"invoice_cate"`
  73. }
  74. type SettleCenterDataDetail struct {
  75. TimeStr string `json:"time_str" example:"业务时间"`
  76. BusinessKind string `json:"business_kind" example:"业务类型(1:广告合作)"`
  77. SettleFile string `json:"settle_file" example:"结算单"`
  78. Invoice Invoice `json:"invoice"`
  79. AllIncome string `json:"all_income" example:"合计收益"`
  80. MediumIncome string `json:"medium_income" example:"媒体结算"`
  81. OtherIncome string `json:"other_income" example:"其他调整"`
  82. PayState string `json:"pay_state" example:"结算单支付状态(0:未开始 1:待审核发票 2:发票审核中 3:发票审核拒绝 4:付款中 5:已付款)"`
  83. State string `json:"state" example:"结算单状态(0:未开始 1:核算中 2:待签订 3:完成签订)"`
  84. }
  85. type Invoice struct {
  86. Type string `json:"type"`
  87. Time string `json:"time"`
  88. Count string `json:"count"`
  89. File []InvoiceFile `json:"file"`
  90. }
  91. type InvoiceFile struct {
  92. Url string `json:"url"`
  93. State string `json:"state" example:"0待确认 1审核通过 2审核失败"`
  94. }
  95. type SettleFileReq struct {
  96. Id string `json:"id" example:"列表id"`
  97. File string `json:"file" example:"七牛云链接 带http"`
  98. }
  99. type InvoiceReq struct {
  100. Id string `json:"id" example:"列表id"`
  101. Type string `json:"type" example:"0电子发票 1纸质发票"`
  102. File []InvoiceFile `json:"file"`
  103. }