/
Arsinenko
/
CompClubAPI_Go
Обзор
Документация
Войти
/
Arsinenko
/
CompClubAPI_Go
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
main
docs/docs.go
1 916 строк
67 KB
Arsinenko
Working space update
17 ноя 2025, 17:41
17 ноя 2025, 17:41
d647065
Код
Авторство
О чём код?
// Package docs Code generated by swaggo/swag. DO NOT EDIT package docs import "github.com/swaggo/swag" const docTemplate = `{ "schemes": {{ marshal .Schemes }}, "swagger": "2.0", "info": { "description": "{{escape .Description}}", "title": "{{.Title}}", "contact": {}, "version": "{{.Version}}" }, "host": "{{.Host}}", "basePath": "{{.BasePath}}", "paths": { "/bookings/": { "get": { "description": "Retrieves a list of all bookings", "produces": [ "application/json" ], "tags": [ "bookings" ], "summary": "Get all bookings", "responses": { "200": { "description": "List of bookings", "schema": { "type": "object", "additionalProperties": true } }, "404": { "description": "No bookings found", "schema": { "type": "object", "additionalProperties": { "type": "string" } } }, "500": { "description": "Internal server error", "schema": { "type": "object", "additionalProperties": { "type": "string" } } } } }, "post": { "description": "Creates a new booking for a user at a computer station", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "bookings" ], "summary": "Start a new booking", "parameters": [ { "description": "Booking start request", "name": "request", "in": "body", "required": true, "schema": { "$ref": "#/definitions/services.StartBookingRequest" } } ], "responses": { "200": { "description": "Booking created successfully", "schema": { "type": "object", "additionalProperties": true } }, "400": { "description": "Invalid request body", "schema": { "type": "object", "additionalProperties": { "type": "string" } } }, "500": { "description": "Internal server error", "schema": { "type": "object", "additionalProperties": { "type": "string" } } } } } }, "/bookings/{id}": { "put": { "description": "Stops a booking by its ID", "produces": [ "application/json" ], "tags": [ "bookings" ], "summary": "Stop an active booking", "parameters": [ { "type": "integer", "description": "Booking ID", "name": "id", "in": "path", "required": true } ], "responses": { "204": { "description": "Booking stopped successfully" }, "400": { "description": "Invalid or missing ID", "schema": { "type": "object", "additionalProperties": { "type": "string" } } }, "404": { "description": "Booking not found", "schema": { "type": "object", "additionalProperties": { "type": "string" } } }, "500": { "description": "Internal server error", "schema": { "type": "object", "additionalProperties": { "type": "string" } } } } }, "delete": { "description": "Deletes a booking by its ID", "produces": [ "application/json" ], "tags": [ "bookings" ], "summary": "Delete a booking", "parameters": [ { "type": "integer", "description": "Booking ID", "name": "id", "in": "path", "required": true } ], "responses": { "204": { "description": "Booking deleted successfully" }, "400": { "description": "Invalid or missing ID / Booking not found", "schema": { "type": "object", "additionalProperties": { "type": "string" } } }, "500": { "description": "Internal server error", "schema": { "type": "object", "additionalProperties": { "type": "string" } } } } } }, "/bookings/{user}": { "get": { "description": "Retrieves all bookings associated with a specific user", "produces": [ "application/json" ], "tags": [ "bookings" ], "summary": "Get bookings by user", "parameters": [ { "type": "string", "description": "Username", "name": "user", "in": "path", "required": true } ], "responses": { "200": { "description": "List of user bookings", "schema": { "type": "object", "additionalProperties": true } }, "400": { "description": "User parameter missing", "schema": { "type": "object", "additionalProperties": { "type": "string" } } }, "404": { "description": "Bookings not found for user", "schema": { "type": "object", "additionalProperties": { "type": "string" } } }, "500": { "description": "Internal server error", "schema": { "type": "object", "additionalProperties": { "type": "string" } } } } } }, "/clubs/": { "get": { "description": "Retrieves a list of all computer clubs", "produces": [ "application/json" ], "tags": [ "clubs" ], "summary": "Get all clubs", "responses": { "200": { "description": "List of clubs", "schema": { "type": "object", "additionalProperties": true } }, "500": { "description": "Internal server error", "schema": { "type": "object", "additionalProperties": { "type": "string" } } } } }, "put": { "description": "Updates club information by name (name is part of the request body)", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "clubs" ], "summary": "Update an existing club", "parameters": [ { "description": "Club update data", "name": "request", "in": "body", "required": true, "schema": { "$ref": "#/definitions/services.UpdateClubRequest" } } ], "responses": { "200": { "description": "Club updated successfully", "schema": { "type": "object", "additionalProperties": true } }, "400": { "description": "Invalid request body", "schema": { "type": "object", "additionalProperties": { "type": "string" } } }, "404": { "description": "Club not found", "schema": { "type": "object", "additionalProperties": { "type": "string" } } }, "500": { "description": "Internal server error", "schema": { "type": "object", "additionalProperties": { "type": "string" } } } } }, "post": { "description": "Creates a new computer club with the provided details", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "clubs" ], "summary": "Create a new club", "parameters": [ { "description": "Club creation data", "name": "request", "in": "body", "required": true, "schema": { "$ref": "#/definitions/services.CreateClubRequest" } } ], "responses": { "200": { "description": "Club created successfully", "schema": { "type": "object", "additionalProperties": true } }, "400": { "description": "Invalid request body or club already exists", "schema": { "type": "object", "additionalProperties": { "type": "string" } } }, "500": { "description": "Internal server error", "schema": { "type": "object", "additionalProperties": { "type": "string" } } } } } }, "/clubs/{name}": { "get": { "description": "Retrieves a specific club by its name", "produces": [ "application/json" ], "tags": [ "clubs" ], "summary": "Get club by name", "parameters": [ { "type": "string", "description": "Name of the club", "name": "name", "in": "path", "required": true } ], "responses": { "200": { "description": "Club details", "schema": { "type": "object", "additionalProperties": true } }, "404": { "description": "Club not found", "schema": { "type": "object", "additionalProperties": { "type": "string" } } }, "500": { "description": "Internal server error", "schema": { "type": "object", "additionalProperties": { "type": "string" } } } } }, "delete": { "description": "Closes or deactivates a club by name. Does not delete it permanently.", "produces": [ "application/json" ], "tags": [ "clubs" ], "summary": "Close (deactivate) a club", "parameters": [ { "type": "string", "description": "Name of the club to close", "name": "name", "in": "path", "required": true } ], "responses": { "200": { "description": "Closed club details", "schema": { "type": "object", "additionalProperties": true } }, "404": { "description": "Club not found", "schema": { "type": "object", "additionalProperties": { "type": "string" } } }, "500": { "description": "Internal server error", "schema": { "type": "object", "additionalProperties": { "type": "string" } } } } } }, "/equipment/": { "get": { "description": "Retrieves a list of all registered equipment items", "produces": [ "application/json" ], "tags": [ "equipment" ], "summary": "Get all equipment", "responses": { "200": { "description": "List of equipment", "schema": { "type": "object", "additionalProperties": true } }, "500": { "description": "Internal server error", "schema": { "type": "object", "additionalProperties": { "type": "string" } } } } }, "post": { "description": "Registers new equipment in the system (e.g., computer, chair, etc.)", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "equipment" ], "summary": "Buy new equipment", "parameters": [ { "description": "Equipment creation data", "name": "request", "in": "body", "required": true, "schema": { "$ref": "#/definitions/services.CreateEquipmentRequest" } } ], "responses": { "200": { "description": "Equipment created successfully", "schema": { "type": "object", "additionalProperties": true } }, "400": { "description": "Invalid request body or equipment already exists", "schema": { "type": "object", "additionalProperties": { "type": "string" } } }, "500": { "description": "Internal server error", "schema": { "type": "object", "additionalProperties": { "type": "string" } } } } } }, "/equipment/{id}": { "get": { "description": "Retrieves detailed information about a specific equipment item", "produces": [ "application/json" ], "tags": [ "equipment" ], "summary": "Get equipment by ID", "parameters": [ { "type": "integer", "description": "Equipment ID", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "Equipment details", "schema": { "type": "object", "additionalProperties": true } }, "400": { "description": "Invalid or missing ID", "schema": { "type": "object", "additionalProperties": { "type": "string" } } }, "404": { "description": "Equipment not found", "schema": { "type": "object", "additionalProperties": { "type": "string" } } }, "500": { "description": "Internal server error", "schema": { "type": "object", "additionalProperties": { "type": "string" } } } } }, "put": { "description": "Changes the operational status of equipment (e.g., from 'working' to 'broken' or vice versa)", "produces": [ "application/json" ], "tags": [ "equipment" ], "summary": "Toggle equipment status", "parameters": [ { "type": "integer", "description": "Equipment ID", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "Status changed successfully", "schema": { "type": "object", "additionalProperties": { "type": "string" } } }, "400": { "description": "Invalid or missing ID", "schema": { "type": "object", "additionalProperties": { "type": "string" } } }, "500": { "description": "Internal server error", "schema": { "type": "object", "additionalProperties": { "type": "string" } } } } }, "delete": { "description": "Permanently removes an equipment item from the system by ID", "produces": [ "application/json" ], "tags": [ "equipment" ], "summary": "Delete equipment", "parameters": [ { "type": "integer", "description": "Equipment ID", "name": "id", "in": "path", "required": true } ], "responses": { "204": { "description": "Equipment deleted successfully" }, "400": { "description": "Invalid ID or equipment not found", "schema": { "type": "object", "additionalProperties": { "type": "string" } } }, "500": { "description": "Internal server error", "schema": { "type": "object", "additionalProperties": { "type": "string" } } } } } }, "/stats/": { "get": { "description": "Retrieves aggregated statistics (e.g., balance, usage) for all computer clubs", "produces": [ "application/json" ], "tags": [ "club-stats" ], "summary": "Get statistics for all clubs", "responses": { "200": { "description": "List of club statistics", "schema": { "type": "object", "additionalProperties": true } }, "500": { "description": "Internal server error", "schema": { "type": "object", "additionalProperties": { "type": "string" } } } } }, "put": { "description": "Adjusts the financial balance of a club (e.g., add revenue or expenses)", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "club-stats" ], "summary": "Update club balance", "parameters": [ { "description": "Balance update data", "name": "request", "in": "body", "required": true, "schema": { "$ref": "#/definitions/services.UpdateClubBalanceRequest" } } ], "responses": { "200": { "description": "Updated club statistics", "schema": { "type": "object", "additionalProperties": true } }, "400": { "description": "Invalid request body", "schema": { "type": "object", "additionalProperties": { "type": "string" } } }, "404": { "description": "Club not found", "schema": { "type": "object", "additionalProperties": { "type": "string" } } }, "500": { "description": "Internal server error", "schema": { "type": "object", "additionalProperties": { "type": "string" } } } } } }, "/stats/{name}": { "get": { "description": "Retrieves detailed statistics for a club by its name", "produces": [ "application/json" ], "tags": [ "club-stats" ], "summary": "Get statistics for a specific club", "parameters": [ { "type": "string", "description": "Name of the club", "name": "name", "in": "path", "required": true } ], "responses": { "200": { "description": "Club statistics", "schema": { "type": "object", "additionalProperties": true } }, "404": { "description": "Club not found", "schema": { "type": "object", "additionalProperties": { "type": "string" } } }, "500": { "description": "Internal server error", "schema": { "type": "object", "additionalProperties": { "type": "string" } } } } } }, "/tariffs/": { "get": { "description": "Retrieves a list of all available tariffs", "produces": [ "application/json" ], "tags": [ "tariffs" ], "summary": "Get all tariffs", "responses": { "200": { "description": "List of tariffs", "schema": { "type": "object", "additionalProperties": true } }, "404": { "description": "No tariffs found", "schema": { "type": "object", "additionalProperties": { "type": "string" } } }, "500": { "description": "Internal server error", "schema": { "type": "object", "additionalProperties": { "type": "string" } } } } }, "put": { "description": "Updates tariff details (name must match an existing tariff)", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "tariffs" ], "summary": "Update an existing tariff", "parameters": [ { "description": "Updated tariff data", "name": "tariff", "in": "body", "required": true, "schema": { "$ref": "#/definitions/services.TariffModel" } } ], "responses": { "200": { "description": "Tariff updated successfully", "schema": { "type": "object", "additionalProperties": true } }, "400": { "description": "Invalid request body", "schema": { "type": "object", "additionalProperties": { "type": "string" } } }, "404": { "description": "Tariff not found", "schema": { "type": "object", "additionalProperties": { "type": "string" } } }, "500": { "description": "Internal server error", "schema": { "type": "object", "additionalProperties": { "type": "string" } } } } }, "post": { "description": "Creates a new pricing tariff (e.g., hourly rate for club usage)", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "tariffs" ], "summary": "Create a new tariff", "parameters": [ { "description": "Tariff data", "name": "tariff", "in": "body", "required": true, "schema": { "$ref": "#/definitions/services.TariffModel" } } ], "responses": { "201": { "description": "Tariff created successfully", "schema": { "type": "object", "additionalProperties": true } }, "400": { "description": "Invalid request body or tariff already exists", "schema": { "type": "object", "additionalProperties": { "type": "string" } } }, "500": { "description": "Internal server error", "schema": { "type": "object", "additionalProperties": { "type": "string" } } } } } }, "/tariffs/{name}": { "get": { "description": "Retrieves a specific tariff by its name", "produces": [ "application/json" ], "tags": [ "tariffs" ], "summary": "Get tariff by name", "parameters": [ { "type": "string", "description": "Name of the tariff", "name": "name", "in": "path", "required": true } ], "responses": { "200": { "description": "Tariff details", "schema": { "type": "object", "additionalProperties": true } }, "400": { "description": "Name parameter missing", "schema": { "type": "object", "additionalProperties": { "type": "string" } } }, "404": { "description": "Tariff not found", "schema": { "type": "object", "additionalProperties": { "type": "string" } } }, "500": { "description": "Internal server error", "schema": { "type": "object", "additionalProperties": { "type": "string" } } } } }, "delete": { "description": "Removes a tariff from the system by name", "produces": [ "application/json" ], "tags": [ "tariffs" ], "summary": "Delete a tariff", "parameters": [ { "type": "string", "description": "Name of the tariff to delete", "name": "name", "in": "path", "required": true } ], "responses": { "200": { "description": "Tariff deleted successfully", "schema": { "type": "object", "additionalProperties": { "type": "string" } } }, "400": { "description": "Name parameter missing", "schema": { "type": "object", "additionalProperties": { "type": "string" } } }, "404": { "description": "Tariff not found", "schema": { "type": "object", "additionalProperties": { "type": "string" } } }, "500": { "description": "Internal server error", "schema": { "type": "object", "additionalProperties": { "type": "string" } } } } } }, "/users/": { "get": { "security": [ { "ApiKeyAuth": [] } ], "description": "Retrieves a list of all registered users. Requires admin role.", "produces": [ "application/json" ], "tags": [ "users" ], "summary": "Get all users (admin only)", "parameters": [ { "type": "integer", "description": "Page number for pagination", "name": "page", "in": "query" }, { "type": "integer", "description": "Number of items per page", "name": "size", "in": "query" } ], "responses": { "200": { "description": "List of users", "schema": { "type": "object", "additionalProperties": true } }, "500": { "description": "Internal server error (if any)", "schema": { "type": "object", "additionalProperties": { "type": "string" } } } } } }, "/users/auth": { "post": { "description": "Logs in a user and returns a JWT token", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "users" ], "summary": "Authenticate user", "parameters": [ { "description": "Login credentials", "name": "request", "in": "body", "required": true, "schema": { "$ref": "#/definitions/services.LoginUserRequest" } } ], "responses": { "200": { "description": "JWT token", "schema": { "type": "object", "additionalProperties": { "type": "string" } } }, "400": { "description": "Invalid credentials or user not found", "schema": { "type": "object", "additionalProperties": { "type": "string" } } }, "500": { "description": "Internal server error", "schema": { "type": "object", "additionalProperties": { "type": "string" } } } } } }, "/users/register": { "post": { "description": "Creates a new user account. Only admins can register other admins.", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "users" ], "summary": "Register a new user", "parameters": [ { "description": "User registration data", "name": "request", "in": "body", "required": true, "schema": { "$ref": "#/definitions/services.CreateUserRequest" } } ], "responses": { "200": { "description": "User registered successfully", "schema": { "type": "object", "additionalProperties": true } }, "400": { "description": "Invalid request body, invalid role, or invalid model", "schema": { "type": "object", "additionalProperties": { "type": "string" } } }, "401": { "description": "Missing or invalid Authorization header (when creating admin)", "schema": { "type": "object", "additionalProperties": { "type": "string" } } }, "403": { "description": "Only admins can create admin users", "schema": { "type": "object", "additionalProperties": { "type": "string" } } }, "409": { "description": "User already exists", "schema": { "type": "object", "additionalProperties": { "type": "string" } } }, "500": { "description": "Internal server error", "schema": { "type": "object", "additionalProperties": { "type": "string" } } } } } }, "/users/search/{substr}": { "get": { "security": [ { "ApiKeyAuth": [] } ], "description": "Retrieves a list of users whose login contains the given substring. Requires admin role.", "produces": [ "application/json" ], "tags": [ "users" ], "summary": "Get users by substring (admin only)", "parameters": [ { "type": "string", "description": "Substring to search for in user logins", "name": "substr", "in": "path", "required": true } ], "responses": { "200": { "description": "List of users matching the substring", "schema": { "type": "object", "additionalProperties": true } }, "500": { "description": "Internal server error", "schema": { "type": "object", "additionalProperties": { "type": "string" } } } } } }, "/users/{login}": { "get": { "security": [ { "ApiKeyAuth": [] } ], "description": "Retrieves user details by login. Accessible to the user themselves or admins.", "produces": [ "application/json" ], "tags": [ "users" ], "summary": "Get user by login", "parameters": [ { "type": "string", "description": "User login", "name": "login", "in": "path", "required": true } ], "responses": { "200": { "description": "User details", "schema": { "type": "object", "additionalProperties": true } }, "404": { "description": "User not found", "schema": { "type": "object", "additionalProperties": { "type": "string" } } }, "500": { "description": "Internal server error", "schema": { "type": "object", "additionalProperties": { "type": "string" } } } } }, "put": { "security": [ { "ApiKeyAuth": [] } ], "description": "Updates user information (e.g., role, password). Requires admin role.", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "users" ], "summary": "Update user details (admin only)", "parameters": [ { "type": "string", "description": "User login to update", "name": "login", "in": "path", "required": true }, { "description": "Updated user data", "name": "request", "in": "body", "required": true, "schema": { "$ref": "#/definitions/services.UpdateUserRequest" } } ], "responses": { "200": { "description": "Updated user", "schema": { "type": "object", "additionalProperties": true } }, "400": { "description": "Invalid request body", "schema": { "type": "object", "additionalProperties": { "type": "string" } } }, "404": { "description": "User not found", "schema": { "type": "object", "additionalProperties": { "type": "string" } } }, "500": { "description": "Internal server error", "schema": { "type": "object", "additionalProperties": { "type": "string" } } } } }, "delete": { "security": [ { "ApiKeyAuth": [] } ], "description": "Removes a user from the system by login. Requires admin role.", "produces": [ "application/json" ], "tags": [ "users" ], "summary": "Delete a user (admin only)", "parameters": [ { "type": "string", "description": "User login to delete", "name": "login", "in": "path", "required": true } ], "responses": { "200": { "description": "User deleted successfully", "schema": { "type": "object", "additionalProperties": { "type": "string" } } }, "404": { "description": "User not found", "schema": { "type": "object", "additionalProperties": { "type": "string" } } }, "500": { "description": "Internal server error", "schema": { "type": "object", "additionalProperties": { "type": "string" } } } } } }, "/working-spaces": { "get": { "description": "Get a list of all working spaces", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "working-spaces" ], "summary": "Get all working spaces", "responses": { "200": { "description": "OK", "schema": { "type": "object", "additionalProperties": true } }, "500": { "description": "Internal Server Error", "schema": { "type": "object", "additionalProperties": true } } } }, "post": { "description": "Create a new working space with the given details", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "working-spaces" ], "summary": "Create a new working space", "parameters": [ { "description": "Working Space", "name": "working_space", "in": "body", "required": true, "schema": { "$ref": "#/definitions/services.CreateWorkingSpaceRequest" } } ], "responses": { "201": { "description": "Created", "schema": { "type": "object", "additionalProperties": true } }, "400": { "description": "Bad Request", "schema": { "type": "object", "additionalProperties": true } }, "500": { "description": "Internal Server Error", "schema": { "type": "object", "additionalProperties": true } } } } }, "/working-spaces/{id}": { "get": { "description": "Get a specific working space by its ID", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "working-spaces" ], "summary": "Get a working space", "parameters": [ { "type": "integer", "description": "Working Space ID", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "type": "object", "additionalProperties": true } }, "400": { "description": "Bad Request", "schema": { "type": "object", "additionalProperties": true } }, "500": { "description": "Internal Server Error", "schema": { "type": "object", "additionalProperties": true } } } } }, "/working-spaces/{id}/status/{status}": { "put": { "description": "Update the status of a specific working space by its ID", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "working-spaces" ], "summary": "Update working space status", "parameters": [ { "type": "integer", "description": "Working Space ID", "name": "id", "in": "path", "required": true }, { "type": "boolean", "description": "New Status", "name": "status", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "type": "object", "additionalProperties": true } }, "400": { "description": "Bad Request", "schema": { "type": "object", "additionalProperties": true } }, "500": { "description": "Internal Server Error", "schema": { "type": "object", "additionalProperties": true } } } } }, "/working-spaces/{id}/tariff/{tariff}": { "put": { "description": "Update the tariff of a specific working space by its ID", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "working-spaces" ], "summary": "Update working space tariff", "parameters": [ { "type": "integer", "description": "Working Space ID", "name": "id", "in": "path", "required": true }, { "type": "string", "description": "New Tariff", "name": "tariff", "in": "path", "required": true } ], "responses": { "200": { "description": "OK", "schema": { "type": "object", "additionalProperties": true } }, "400": { "description": "Bad Request", "schema": { "type": "object", "additionalProperties": true } }, "500": { "description": "Internal Server Error", "schema": { "type": "object", "additionalProperties": true } } } } } }, "definitions": { "services.CreateClubRequest": { "type": "object", "properties": { "address": { "type": "string" }, "name": { "type": "string" }, "phone": { "type": "string" }, "working_hours": { "type": "string" } } }, "services.CreateEquipmentRequest": { "type": "object", "properties": { "name": { "type": "string" }, "status": { "type": "boolean" }, "working_space": { "type": "integer" } } }, "services.CreateUserRequest": { "type": "object", "properties": { "balance": { "type": "string" }, "login": { "type": "string" }, "password": { "type": "string" }, "role": { "type": "string" } } }, "services.CreateWorkingSpaceRequest": { "type": "object", "properties": { "club": { "type": "string" }, "tariff": { "type": "string" } } }, "services.LoginUserRequest": { "type": "object", "properties": { "login": { "type": "string" }, "password": { "type": "string" } } }, "services.StartBookingRequest": { "type": "object", "properties": { "user": { "type": "string" }, "working_space_id": { "type": "integer" } } }, "services.TariffModel": { "type": "object", "properties": { "name": { "type": "string" }, "price": { "type": "string" } } }, "services.UpdateClubBalanceRequest": { "type": "object", "properties": { "balance": { "type": "string" }, "name": { "type": "string" } } }, "services.UpdateClubRequest": { "type": "object", "properties": { "address": { "type": "string" }, "name": { "type": "string" }, "phone": { "type": "string" }, "working_hours": { "type": "string" } } }, "services.UpdateUserRequest": { "type": "object", "properties": { "property": { "type": "string" }, "value": { "type": "string" } } } } }` // SwaggerInfo holds exported Swagger Info so clients can modify it var SwaggerInfo = &swag.Spec{ Version: "", Host: "", BasePath: "", Schemes: []string{}, Title: "", Description: "", InfoInstanceName: "swagger", SwaggerTemplate: docTemplate, LeftDelim: "{{", RightDelim: "}}", } func init() { swag.Register(SwaggerInfo.InstanceName(), SwaggerInfo) }