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

60 regels
2.0 KiB

  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. // FinancialDynamicsAgentTotal
  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.FinancialDynamicsAgentTotalReq true "请求参数"
  17. // @Success 200 {object} md.FinancialDynamicsAgentTotalRes "具体看返回内容 这是data里面的数据"
  18. // @Failure 400 {object} md.Response "具体错误"
  19. // @Router /api/financialDynamics/agent/total [POST]
  20. func FinancialDynamicsAgentTotal(c *gin.Context) {
  21. var req md.FinancialDynamicsAgentTotalReq
  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.FinancialDynamicsAgentTotal(c, req)
  30. e.OutSuc(c, res, nil)
  31. return
  32. }
  33. // FinancialDynamicsAgentList
  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.FinancialDynamicsAgentListReq true "请求参数"
  41. // @Success 200 {object} md.FinancialDynamicsAgentListRes "具体看返回内容 这是data里面的数据"
  42. // @Failure 400 {object} md.Response "具体错误"
  43. // @Router /api/financialDynamics/agent/list [POST]
  44. func FinancialDynamicsAgentList(c *gin.Context) {
  45. var req md.FinancialDynamicsAgentListReq
  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.FinancialDynamicsAgentList(c, req)
  54. e.OutSuc(c, res, nil)
  55. return
  56. }