增加任务接口逻辑

This commit is contained in:
lianghuanjie
2024-12-11 21:15:59 +08:00
parent e2ba6924b8
commit 9f4fb0a9d0
24 changed files with 765 additions and 63 deletions

View File

@@ -1,15 +1,14 @@
package task
import (
"net/http"
"github.com/zeromicro/go-zero/rest/httpx"
"net/http"
"nova_task/internal/logic/task"
"nova_task/internal/svc"
"nova_task/internal/types"
)
// 获取任务列表
// GetTaskListHandler 获取任务列表
func GetTaskListHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {
return func(w http.ResponseWriter, r *http.Request) {
var req types.GetTaskListReq