广告平台(媒体使用)
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 4.4 KiB

2 maanden geleden
2 maanden geleden
2 maanden geleden
1 week geleden
2 maanden geleden
1 week geleden
2 maanden geleden
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  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. DownUrl string `json:"down_url"`
  65. }
  66. type SettleCenterDataDetailRes struct {
  67. Data SettleCenterDataDetail `json:"data" `
  68. BusinessKind []SelectData `json:"business_kind"`
  69. SettlePayState []SelectData `json:"settle_pay_state"`
  70. InvoiceState []SelectData `json:"invoice_state"`
  71. SettleState []SelectData `json:"settle_state"`
  72. SettleType []SelectData `json:"settle_type"`
  73. InvoiceCate []SelectData `json:"invoice_cate"`
  74. }
  75. type SettleCenterDataDetail struct {
  76. TimeStr string `json:"time_str" example:"业务时间"`
  77. BusinessKind string `json:"business_kind" example:"业务类型(1:广告合作)"`
  78. SettleFile string `json:"settle_file" example:"结算单"`
  79. Invoice Invoice `json:"invoice"`
  80. AllIncome string `json:"all_income" example:"合计收益"`
  81. MediumIncome string `json:"medium_income" example:"媒体结算"`
  82. OtherIncome string `json:"other_income" example:"其他调整"`
  83. PayState string `json:"pay_state" example:"结算单支付状态(0:未开始 1:待审核发票 2:发票审核中 3:发票审核拒绝 4:付款中 5:已付款)"`
  84. State string `json:"state" example:"结算单状态(0:未开始 1:核算中 2:待签订 3:完成签订)"`
  85. DownUrl string `json:"down_url"`
  86. }
  87. type Invoice struct {
  88. Type string `json:"type"`
  89. Time string `json:"time"`
  90. Count string `json:"count"`
  91. File []InvoiceFile `json:"file"`
  92. }
  93. type InvoiceFile struct {
  94. Url string `json:"url"`
  95. State string `json:"state" example:"0待确认 1审核通过 2审核失败"`
  96. }
  97. type SettleFileReq struct {
  98. Id string `json:"id" example:"列表id"`
  99. File string `json:"file" example:"七牛云链接 带http"`
  100. }
  101. type InvoiceReq struct {
  102. Id string `json:"id" example:"列表id"`
  103. Type string `json:"type" example:"0电子发票 1纸质发票"`
  104. File []InvoiceFile `json:"file"`
  105. }