swagger: document the ?lang= query parameter on every admin endpoint
appresult.Localize applies to all /api/admin routes, so each handler's godoc now declares lang (tm, ru, en, all; default tm) and Swagger UI offers it as a dropdown. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
72a5ac52b0
commit
f1337706f0
32 files changed
+5534
No files matched your search
@@ -33,6 +33,7 @@ func (h *handler) Register(router *gin.RouterGroup) {
|
||||
// @Tags permission
|
||||
// @Produce json
|
||||
// @Security BearerAuth
|
||||
// @Param lang query string false "Language of localized fields; all returns the full {en, ru, tm} objects" Enums(tm, ru, en, all) default(tm)
|
||||
// @Success 200 {object} appresult.AppSuccess
|
||||
// @Router /permissions [get]
|
||||
func (h *handler) list(c *gin.Context) {
|
||||
|
||||
Reference in new issue
Block a user