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.

screenstoragehandler.go 735 B

123456789101112131415161718192021222324
  1. package storage
  2. import (
  3. "github.com/zeromicro/go-zero/rest/httpx"
  4. "gitlink.org.cn/JointCloud/pcm-coordinator/internal/logic/storage"
  5. "gitlink.org.cn/JointCloud/pcm-coordinator/internal/svc"
  6. "gitlink.org.cn/JointCloud/pcm-coordinator/internal/types"
  7. "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/repository/result"
  8. "net/http"
  9. )
  10. func ScreenStorageHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {
  11. return func(w http.ResponseWriter, r *http.Request) {
  12. var req types.StorageScreenReq
  13. if err := httpx.Parse(r, &req); err != nil {
  14. result.ParamErrorResult(r, w, err)
  15. return
  16. }
  17. l := storage.NewScreenStorageLogic(r.Context(), svcCtx)
  18. resp, err := l.ScreenStorage(&req)
  19. result.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.