mirror of
https://gitee.com/XM-GO/PandaX.git
synced 2026-04-25 03:48:35 +08:00
【feat】 添加postgresql数据库支持,【修复】pg数据库的代码生成功能
This commit is contained in:
@@ -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}}{}).
|
||||
|
||||
Reference in New Issue
Block a user