You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

datasetcheckhandler.go 708 B

12345678910111213141516171819202122232425
  1. package image
  2. import (
  3. result2 "gitlink.org.cn/jcce-pcm/utils/result"
  4. "net/http"
  5. "github.com/zeromicro/go-zero/rest/httpx"
  6. "gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/logic/image"
  7. "gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/svc"
  8. "gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/types"
  9. )
  10. func DataSetCheckHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {
  11. return func(w http.ResponseWriter, r *http.Request) {
  12. var req types.CheckReq
  13. if err := httpx.Parse(r, &req); err != nil {
  14. httpx.ErrorCtx(r.Context(), w, err)
  15. return
  16. }
  17. l := image.NewDataSetCheckLogic(r.Context(), svcCtx)
  18. resp, err := l.DataSetCheck(&req)
  19. result2.HttpResult(r, w, resp, err)
  20. }
  21. }

PCM is positioned as Software stack over Cloud, aiming to build the standards and ecology of heterogeneous cloud collaboration for JCC in a non intrusive and autonomous peer-to-peer manner.