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

3 months ago
12345678910111213141516171819202122232425262728293031323334
  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. // OriginalDataList
  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.DataCenterOriginalDataReq true "请求参数"
  17. // @Success 200 {object} md.DataCenterOriginalDataRes "具体看返回内容 这是data里面的数据"
  18. // @Failure 400 {object} md.Response "具体错误"
  19. // @Router /api/dataCenter/original/data/list [POST]
  20. func OriginalDataList(c *gin.Context) {
  21. var req md.DataCenterOriginalDataReq
  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.DataCenterOriginalDataList(c, req)
  30. e.OutSuc(c, res, nil)
  31. return
  32. }