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
@@ -36,6 +36,7 @@ func (h *handler) Register(router *gin.RouterGroup) {
|
||||
// @Tags payment-settings
|
||||
// @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} PaymentSettingsDTO
|
||||
// @Failure 500 {object} appresult.AppError
|
||||
// @Router /payment-settings [get]
|
||||
@@ -58,6 +59,7 @@ func (h *handler) get(c *gin.Context) {
|
||||
// @Produce json
|
||||
// @Security BearerAuth
|
||||
// @Param body body UpdatePaymentSettingsDTO true "Payment settings payload"
|
||||
// @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} PaymentSettingsDTO
|
||||
// @Failure 400 {object} appresult.AppError
|
||||
// @Failure 500 {object} appresult.AppError
|
||||
|
||||
Reference in new issue
Block a user