{ "consumes": [ "application/json" ], "produces": [ "application/json" ], "schemes": [ "https" ], "swagger": "2.0", "info": { "title": "钱包服务", "version": "1.0" }, "basePath": "/", "paths": { "/api/v1/wallet/balance": { "get": { "produces": [ "application/json" ], "schemes": [ "https" ], "summary": "获取余额", "operationId": "walletGetBalance", "responses": { "200": { "description": "", "schema": { "type": "object", "properties": { "balance": { "type": "string" }, "frozenBalance": { "type": "string" } } } } } } }, "/api/v1/wallet/topup": { "post": { "consumes": [ "application/json" ], "produces": [ "application/json" ], "schemes": [ "https" ], "summary": "充值", "operationId": "walletTopup", "parameters": [ { "name": "body", "in": "body", "required": true, "schema": { "type": "object", "required": [ "amount", "method" ], "properties": { "amount": { "type": "string" }, "method": { "type": "string" } } } } ], "responses": { "200": { "description": "", "schema": { "type": "object" } } } } }, "/api/v1/wallet/transactions": { "get": { "produces": [ "application/json" ], "schemes": [ "https" ], "summary": "获取流水", "operationId": "walletListTransactions", "parameters": [ { "type": "integer", "default": 0, "example": 0, "name": "offset", "in": "query", "required": true }, { "type": "integer", "default": 20, "example": 20, "name": "limit", "in": "query", "required": true } ], "responses": { "200": { "description": "", "schema": { "type": "object", "properties": { "items": { "type": "array", "items": { "type": "object", "required": [ "id", "type", "amount", "description", "createdAt" ], "properties": { "amount": { "type": "string" }, "createdAt": { "type": "string" }, "description": { "type": "string" }, "id": { "type": "integer" }, "orderId": { "type": "string" }, "type": { "type": "string" } } } }, "meta": { "type": "object", "required": [ "total", "offset", "limit" ], "properties": { "limit": { "type": "integer" }, "offset": { "type": "integer" }, "total": { "type": "integer" } } } } } } } } }, "/api/v1/wallet/withdraw": { "post": { "consumes": [ "application/json" ], "produces": [ "application/json" ], "schemes": [ "https" ], "summary": "提现", "operationId": "walletWithdraw", "parameters": [ { "name": "body", "in": "body", "required": true, "schema": { "type": "object", "required": [ "amount", "method" ], "properties": { "amount": { "type": "string" }, "method": { "type": "string" } } } } ], "responses": { "200": { "description": "", "schema": { "type": "object" } } } } } }, "x-date": "2026-04-22 22:30:25", "x-description": "This is a goctl generated swagger file.", "x-github": "https://github.com/zeromicro/go-zero", "x-go-zero-doc": "https://go-zero.dev/", "x-goctl-version": "1.10.1" }