bar.go 569 B

123456789101112131415161718192021222324252627
  1. package dashboard
  2. import (
  3. "kpt-pasture/http/middleware"
  4. "gitee.com/xuyiping_admin/pkg/apierr"
  5. "gitee.com/xuyiping_admin/pkg/ginutil"
  6. "github.com/gin-gonic/gin"
  7. )
  8. func Bar(c *gin.Context) {
  9. res, err := middleware.Dependency(c).StoreEventHub.OpsService.Bar(c)
  10. if err != nil {
  11. apierr.ClassifiedAbort(c, err)
  12. return
  13. }
  14. ginutil.JSONResp(c, res)
  15. }
  16. func NeckRingWarning(c *gin.Context) {
  17. res, err := middleware.Dependency(c).StoreEventHub.OpsService.NeckRingWarning(c)
  18. if err != nil {
  19. apierr.ClassifiedAbort(c, err)
  20. return
  21. }
  22. ginutil.JSONResp(c, res)
  23. }