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.

commitgeneraltaskhandler.go 545 B

1234567891011121314151617
  1. package cloud
  2. import (
  3. "github.com/zeromicro/go-zero/rest/httpx"
  4. "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/cloud"
  5. "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc"
  6. "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/repository/result"
  7. "net/http"
  8. )
  9. func CommitGeneralTaskHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {
  10. return func(w http.ResponseWriter, r *http.Request) {
  11. l := cloud.NewCommitGeneralTaskLogic(r.Context(), svcCtx)
  12. err := l.CommitGeneralTask()
  13. result.HttpResult(r, w, nil, err)
  14. }
  15. }

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.