|
- package cloud
-
- import (
- "github.com/zeromicro/go-zero/rest/httpx"
- "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/logic/cloud"
- "gitlink.org.cn/JointCloud/pcm-coordinator/api/internal/svc"
- "gitlink.org.cn/JointCloud/pcm-coordinator/pkg/repository/result"
- "net/http"
- )
-
- func CommitGeneralTaskHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {
- return func(w http.ResponseWriter, r *http.Request) {
- l := cloud.NewCommitGeneralTaskLogic(r.Context(), svcCtx)
- err := l.CommitGeneralTask()
- result.HttpResult(r, w, nil, err)
- }
- }
|