This commit is contained in:
ryan
2026-07-13 15:17:45 +08:00
parent 08e61ce833
commit e0eb4e5975
334 changed files with 17212 additions and 12321 deletions
+4 -2
View File
@@ -4,7 +4,8 @@
package task
import ("fmt"
import (
"fmt"
"net/http"
"strconv"
"strings"
@@ -18,7 +19,8 @@ import ("fmt"
"github.com/gin-gonic/gin"
"github.com/robfig/cron/v3"
"github.com/Rain-kl/Wavelet/internal/common/response")
"github.com/Rain-kl/Wavelet/internal/common/response"
)
// ListTaskTypes 获取支持的任务类型列表
// @Summary 获取支持的任务类型
+4 -2
View File
@@ -4,7 +4,8 @@
package task
import ("bytes"
import (
"bytes"
"context"
"encoding/json"
"fmt"
@@ -25,7 +26,8 @@ import ("bytes"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"github.com/Rain-kl/Wavelet/internal/common/response")
"github.com/Rain-kl/Wavelet/internal/common/response"
)
func setupTaskTestEnvironment(t *testing.T) func() {
_, mr, cleanup := testhelper.SetupTestEnvironment(t)