广告平台(站长使用)
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_finance_index.go 2.4 KiB

1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  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. // FinanceIndexTotal
  10. // @Summary 统计数据
  11. // @Tags 财务首页------嘉俊
  12. // @Description 财务首页-统计数据
  13. // @param Authorization header string true "验证参数Bearer和token空格拼接"
  14. // @Accept json
  15. // @Produce json
  16. // @Success 200 {string} "具体看返回内容 这是data里面的数据"
  17. // @Failure 400 {object} md.Response "具体错误"
  18. // @Router /api/financeIndex/total [GET]
  19. func FinanceIndexTotal(c *gin.Context) {
  20. svc.FinanceIndexTotal(c)
  21. }
  22. // FinanceIndexAppList
  23. // @Summary 应用数据
  24. // @Tags 财务首页------嘉俊
  25. // @Description 财务首页-应用数据
  26. // @param Authorization header string true "验证参数Bearer和token空格拼接"
  27. // @Accept json
  28. // @Produce json
  29. // @Param args body md.IndexAppListReq true "请求参数"
  30. // @Success 200 {object} md.IndexAppListRes "具体看返回内容 这是data里面的数据"
  31. // @Failure 400 {object} md.Response "具体错误"
  32. // @Router /api/financeIndex/app/list [POST]
  33. func FinanceIndexAppList(c *gin.Context) {
  34. var req md.IndexAppListReq
  35. err := c.ShouldBindJSON(&req)
  36. if err != nil {
  37. err = validate.HandleValidateErr(err)
  38. err1 := err.(e.E)
  39. e.OutErr(c, err1.Code, err1.Error())
  40. return
  41. }
  42. res := svc.FinanceIndexAppList(c, req)
  43. e.OutSuc(c, res, nil)
  44. return
  45. }
  46. // FinanceIndexAppListTable
  47. // @Summary 应用数据-每个应用的折线图
  48. // @Tags 财务首页------嘉俊
  49. // @Description 财务首页-应用数据-每个应用的折线图
  50. // @param Authorization header string true "验证参数Bearer和token空格拼接"
  51. // @Accept json
  52. // @Produce json
  53. // @Param args body md.IndexAppListTableReq true "请求参数"
  54. // @Success 200 {string} "具体看返回内容 "
  55. // @Failure 400 {object} md.Response "具体错误"
  56. // @Router /api/financeIndex/app/list/table [POST]
  57. func FinanceIndexAppListTable(c *gin.Context) {
  58. var req md.IndexAppListTableReq
  59. err := c.ShouldBindJSON(&req)
  60. if err != nil {
  61. err = validate.HandleValidateErr(err)
  62. err1 := err.(e.E)
  63. e.OutErr(c, err1.Code, err1.Error())
  64. return
  65. }
  66. res := svc.FinanceBeforeSevenPoint(c, req)
  67. e.OutSuc(c, res, nil)
  68. return
  69. }