【feat】 添加postgresql数据库支持,【修复】pg数据库的代码生成功能

This commit is contained in:
PandaX
2023-11-10 10:07:38 +08:00
parent a37dace97c
commit 72ffbf38c3
15 changed files with 1323 additions and 724 deletions

View File

@@ -40,7 +40,7 @@ func Init{{.ClassName}}Router(container *restful.Container) {
restfulx.NewReqCtx(request, response).WithLog("获取{{.FunctionName}}信息").Handle(s.Get{{.ClassName}})
}).
Doc("获取{{.FunctionName}}信息").
Param(ws.PathParameter("{{.PkJsonField}}", "Id").DataType("int")).
Param(ws.PathParameter("{{.PkJsonField}}", "Id").DataType("{{.PkGoType}}")).
Metadata(restfulspec.KeyOpenAPITags, tags).
Writes(entity.{{.ClassName}}{}). // on the response
Returns(200, "OK", entity.{{.ClassName}}{}).