【修改】修改swagger

This commit is contained in:
PandaGoAdmin
2022-01-18 17:16:08 +08:00
parent b7dc4da946
commit 3d603d8fde
10 changed files with 10012 additions and 338 deletions

View File

@@ -15,7 +15,7 @@ type GenApi struct {
// @Description 获取JSON
// @Tags 工具 / 生成工具
// @Param tableId path int true "tableId"
// @Success 200 {object} response.Response "{"code": 200, "data": [...]}"
// @Success 200 {string} string "{"code": 200, "data": [...]}"
// @Router /develop/code/gen/preview/{tableId} [get]
// @Security X-TOKEN
func (e *GenApi) Preview(rc *ctx.ReqCtx) {
@@ -27,7 +27,7 @@ func (e *GenApi) Preview(rc *ctx.ReqCtx) {
// @Description 获取JSON
// @Tags 工具 / 生成工具
// @Param tableId path int true "tableId"
// @Success 200 {object} response.Response "{"code": 200, "data": [...]}"
// @Success 200 {string} string "{"code": 200, "data": [...]}"
// @Router /develop/code/gen/code/{tableId} [get]
// @Security X-TOKEN
func (e *GenApi) GenCode(rc *ctx.ReqCtx) {