广告平台(媒体使用)
Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.
 
 
 
 
 
 

105 рядки
4.2 KiB

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