Open wangshxin opened 2 years ago
I can not get your point, can you give more details or give a demo?
// @router / [Get,Post] func (c *DfsFileController) ListDfsFiles() {}
"/dfs-files/": { "get": { "tags": [ "dfs-files" ], "description": "List dfs files in a directory", "operationId": "ListDfsFiles", "consumes": [ "application/json" ], "produces": [ "application/json" ], "parameters": [ ... ], "responses": { "200": { ... }, "500": { ... } } }, "post": { "tags": [ "dfs-files" ], "description": "List dfs files in a directory", "operationId": "ListDfsFiles", "consumes": [ "application/json" ], "produces": [ "application/json" ], "parameters": [ ... ], "responses": { "200": { ... }, "500": { ... } } } },
// @router [Get,Post] swagger文件的同一个path下,不同的method下会产生相同的operationID https://github.com/beego/bee/blob/develop/generate/swaggergen/g_docs.go#L571