package handler import ( "net/http" "dag-jupyter/internal/logic" "dag-jupyter/internal/svc" "dag-jupyter/internal/types" "github.com/zeromicro/go-zero/rest/httpx" ) func StatusOpHandler(svcCtx *svc.ServiceContext) http.HandlerFunc { return func(w http.ResponseWriter, r *http.Request) { var req types.ReleaseInfo if err := httpx.Parse(r, &req); err != nil { httpx.Error(w, err) return } l := logic.NewStatusOpLogic(r.Context(), svcCtx) resp, err := l.StatusOp(&req) if err != nil { httpx.Error(w, err) } else { httpx.OkJson(w, resp) } } }