feat: 自动化代码可自行配置mod

This commit is contained in:
pixelmaxQM
2024-10-17 23:15:59 +08:00
parent efac72ecbb
commit a847ad292f
20 changed files with 44 additions and 37 deletions
@@ -2,17 +2,17 @@ package {{.Package}}
import (
{{if not .OnlyTemplate}}
"github.com/flipped-aurora/gin-vue-admin/server/global"
"github.com/flipped-aurora/gin-vue-admin/server/model/common/response"
"github.com/flipped-aurora/gin-vue-admin/server/model/{{.Package}}"
{{.Package}}Req "github.com/flipped-aurora/gin-vue-admin/server/model/{{.Package}}/request"
"{{.Module}}/global"
"{{.Module}}/model/common/response"
"{{.Module}}/model/{{.Package}}"
{{.Package}}Req "{{.Module}}/model/{{.Package}}/request"
"github.com/gin-gonic/gin"
"go.uber.org/zap"
{{- if .AutoCreateResource}}
"github.com/flipped-aurora/gin-vue-admin/server/utils"
"{{.Module}}/utils"
{{- end }}
{{- else}}
"github.com/flipped-aurora/gin-vue-admin/server/model/common/response"
"{{.Module}}/model/common/response"
"github.com/gin-gonic/gin"
{{- end}}
)