swagger: split the Visa/Master tag and document payment-history in Turkmen
Some checks failed
CI/CD / Vet, test, build (push) Has been cancelled
CI/CD / Docker image (push) Has been cancelled
CI/CD / Deploy binary to server (push) Has been cancelled

visa-master-payment-orders mixed order CRUD with the GBÜS payment flow;
they are now visa-master-orders and visa-master-payment. payment-history
summaries, descriptions and params are in Turkmen with one shape
(what it returns, Tertip, Bellik), and its tag description lists the
endpoints in the order they are used.

@securityDefinitions.apikey moves to the end of the general info block:
swag read every line after it as its attributes, so @schemes and all
@tag.* declarations were silently dropped from the spec.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-24 23:21:07 +05:00
parent 78e1976e53
commit d7e5d1f989
7 changed files with 377 additions and 198 deletions

View File

@@ -43,7 +43,7 @@ func (h *handler) Register(router *gin.RouterGroup) {
// list godoc
// @Summary List visa/master payment orders
// @Description Returns paginated visa/master payment orders; sber orders are excluded (see /visa-master-payment-orders/sber)
// @Tags visa-master-payment-orders
// @Tags visa-master-orders
// @Produce json
// @Security BearerAuth
// @Param name query string false "Filter by passport name or surname"
@@ -72,7 +72,7 @@ func (h *handler) list(c *gin.Context) {
// listSber godoc
// @Summary List sber payment orders
// @Description Returns paginated payment orders of type sber
// @Tags visa-master-payment-orders
// @Tags visa-master-orders
// @Produce json
// @Security BearerAuth
// @Param name query string false "Filter by passport name or surname"
@@ -111,7 +111,7 @@ func (h *handler) respondList(c *gin.Context, filter ListFilter) {
// getByID godoc
// @Summary Get visa/master payment order by ID
// @Description Returns a single visa/master payment order with branch and user details
// @Tags visa-master-payment-orders
// @Tags visa-master-orders
// @Produce json
// @Security BearerAuth
// @Param id path int true "Visa/master payment order ID"
@@ -148,7 +148,7 @@ func (h *handler) getByID(c *gin.Context) {
// create godoc
// @Summary Create visa/master payment order
// @Description Creates a new visa/master payment order
// @Tags visa-master-payment-orders
// @Tags visa-master-orders
// @Accept json
// @Produce json
// @Security BearerAuth
@@ -178,7 +178,7 @@ func (h *handler) create(c *gin.Context) {
// update godoc
// @Summary Update visa/master payment order
// @Description Updates an existing visa/master payment order
// @Tags visa-master-payment-orders
// @Tags visa-master-orders
// @Accept json
// @Produce json
// @Security BearerAuth
@@ -224,7 +224,7 @@ func (h *handler) update(c *gin.Context) {
// delete godoc
// @Summary Delete visa/master payment order
// @Description Deletes a visa/master payment order
// @Tags visa-master-payment-orders
// @Tags visa-master-orders
// @Produce json
// @Security BearerAuth
// @Param id path int true "Visa/master payment order ID"