广告平台(站长下代理使用)
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.
 
 
 
 
 
 

125 lines
5.5 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. Income string `json:"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 SettleCenterMediumDataRes struct {
  62. List []SettleCenterMediumDataData `json:"list" `
  63. Total int64 `json:"total"`
  64. BusinessKind []SelectData `json:"business_kind"`
  65. SettlePayState []SelectData `json:"settle_pay_state"`
  66. SettleState []SelectData `json:"settle_state"`
  67. SettleType []SelectData `json:"settle_type"`
  68. }
  69. type SettleCenterMediumDataData struct {
  70. Id string `json:"id"`
  71. Name string `json:"name" example:"媒体名称"`
  72. TimeStr string `json:"time_str" example:"业务时间"`
  73. BusinessKind string `json:"business_kind" example:"业务类型(1:广告合作)"`
  74. SettleType string `json:"settle_type" example:"结算单类型(1:日结 2:周结 3:月结 4:预付)"`
  75. AllIncome string `json:"all_income" example:"合计收益"`
  76. Income string `json:"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. Label string `json:"label"`
  81. }
  82. type SettleCenterDataDetailRes struct {
  83. Data SettleCenterDataDetail `json:"data" `
  84. BusinessKind []SelectData `json:"business_kind"`
  85. SettlePayState []SelectData `json:"settle_pay_state"`
  86. InvoiceState []SelectData `json:"invoice_state"`
  87. SettleState []SelectData `json:"settle_state"`
  88. SettleType []SelectData `json:"settle_type"`
  89. InvoiceCate []SelectData `json:"invoice_cate"`
  90. }
  91. type SettleCenterDataDetail struct {
  92. TimeStr string `json:"time_str" example:"业务时间"`
  93. BusinessKind string `json:"business_kind" example:"业务类型(1:广告合作)"`
  94. SettleFile string `json:"settle_file" example:"结算单"`
  95. Invoice Invoice `json:"invoice"`
  96. AllIncome string `json:"all_income" example:"合计收益"`
  97. MediumIncome string `json:"medium_income" example:"媒体结算"`
  98. OtherIncome string `json:"other_income" example:"其他调整"`
  99. PayState string `json:"pay_state" example:"结算单支付状态(0:未开始 1:待审核发票 2:发票审核中 3:发票审核拒绝 4:付款中 5:已付款)"`
  100. State string `json:"state" example:"结算单状态(0:未开始 1:核算中 2:待签订 3:完成签订)"`
  101. }
  102. type Invoice struct {
  103. Type string `json:"type"`
  104. Time string `json:"time"`
  105. Count string `json:"count"`
  106. File []InvoiceFile `json:"file"`
  107. }
  108. type InvoiceFile struct {
  109. Url string `json:"url"`
  110. State string `json:"state" example:"0待确认 1审核通过 2审核失败"`
  111. }
  112. type SettleFileReq struct {
  113. Id string `json:"id" example:"列表id"`
  114. File string `json:"file" example:"七牛云链接 带http"`
  115. }
  116. type InvoiceReq struct {
  117. Id string `json:"id" example:"列表id"`
  118. Type string `json:"type" example:"0电子发票 1纸质发票"`
  119. File []InvoiceFile `json:"file"`
  120. }