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
+1 -1
View File
@@ -75,4 +75,4 @@ func deleteTemplate(ctx context.Context, key string) error {
return errors.New(SystemTemplateCannotDelete)
}
return repository.DeleteTemplate(ctx, &tmpl)
}
}
+1 -1
View File
@@ -173,4 +173,4 @@ func DeleteTemplate(c *gin.Context) {
}
c.JSON(http.StatusOK, response.OKNil())
}
}
+4 -2
View File
@@ -3,7 +3,8 @@
package template
import ("bytes"
import (
"bytes"
"encoding/json"
"net/http"
"net/http/httptest"
@@ -14,7 +15,8 @@ import ("bytes"
"github.com/Rain-kl/Wavelet/internal/testhelper"
"github.com/gin-gonic/gin"
"github.com/Rain-kl/Wavelet/internal/common/response")
"github.com/Rain-kl/Wavelet/internal/common/response"
)
func setupTestRouter(authUser *model.User) *gin.Engine {
r := testhelper.NewTestGinEngine()