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

hdl_financial_dynamics.go 2.0 KiB

3 maanden geleden
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. package hdl
  2. import (
  3. "applet/app/e"
  4. "applet/app/lib/validate"
  5. "applet/app/md"
  6. "applet/app/svc"
  7. "github.com/gin-gonic/gin"
  8. )
  9. // FinancialDynamicsMediumTotal
  10. // @Summary 媒体预付-统计
  11. // @Tags 资产动态------嘉俊
  12. // @Description 资产动态-媒体预付-统计
  13. // @param Authorization header string true "验证参数Bearer和token空格拼接"
  14. // @Accept json
  15. // @Produce json
  16. // @Param args body md.FinancialDynamicsMediumTotalReq true "请求参数"
  17. // @Success 200 {object} md.FinancialDynamicsMediumTotalRes "具体看返回内容 这是data里面的数据"
  18. // @Failure 400 {object} md.Response "具体错误"
  19. // @Router /api/financialDynamics/medium/total [POST]
  20. func FinancialDynamicsMediumTotal(c *gin.Context) {
  21. var req md.FinancialDynamicsMediumTotalReq
  22. err := c.ShouldBindJSON(&req)
  23. if err != nil {
  24. err = validate.HandleValidateErr(err)
  25. err1 := err.(e.E)
  26. e.OutErr(c, err1.Code, err1.Error())
  27. return
  28. }
  29. res := svc.FinancialDynamicsMediumTotal(c, req)
  30. e.OutSuc(c, res, nil)
  31. return
  32. }
  33. // FinancialDynamicsMediumList
  34. // @Summary 媒体预付
  35. // @Tags 资产动态------嘉俊
  36. // @Description 资产动态-媒体预付
  37. // @param Authorization header string true "验证参数Bearer和token空格拼接"
  38. // @Accept json
  39. // @Produce json
  40. // @Param args body md.FinancialDynamicsMediumListReq true "请求参数"
  41. // @Success 200 {object} md.FinancialDynamicsMediumListRes "具体看返回内容 这是data里面的数据"
  42. // @Failure 400 {object} md.Response "具体错误"
  43. // @Router /api/financialDynamics/medium/list [POST]
  44. func FinancialDynamicsMediumList(c *gin.Context) {
  45. var req md.FinancialDynamicsMediumListReq
  46. err := c.ShouldBindJSON(&req)
  47. if err != nil {
  48. err = validate.HandleValidateErr(err)
  49. err1 := err.(e.E)
  50. e.OutErr(c, err1.Code, err1.Error())
  51. return
  52. }
  53. res := svc.FinancialDynamicsMediumList(c, req)
  54. e.OutSuc(c, res, nil)
  55. return
  56. }