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

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