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

2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months 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. // OperatorIndexTotal
  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/operatorIndex/total [GET]
  19. func OperatorIndexTotal(c *gin.Context) {
  20. svc.OperatorIndexTotal(c)
  21. }
  22. // OperatorIndexAppList
  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/operatorIndex/app/list [POST]
  33. func OperatorIndexAppList(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.OperatorIndexAppList(c, req)
  43. e.OutSuc(c, res, nil)
  44. return
  45. }
  46. // OperatorIndexAppListTable
  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/operatorIndex/app/list/table [POST]
  57. func OperatorIndexAppListTable(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.OperatorBeforeSevenPoint(c, req)
  67. e.OutSuc(c, res, nil)
  68. return
  69. }