{ "swagger": "2.0", "info": { "description": "{{.Description}}", "title": "{{.Title}}", "contact": {}, "license": {}, "version": "{{.Version}}" }, "host": "{{.Host}}", "basePath": "{{.BasePath}}", "paths": { "/api/v1/admin/admins/{ids}": { "post": { "security": [ { "ApiKeyAuth": [] } ], "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "系统管理员" ], "summary": "批量删除管理员", "parameters": [ { "type": "string", "description": "Account ID 多个用,分开", "name": "ids", "in": "path", "required": true } ], "responses": { "200": { "description": "desc", "schema": { "type": "object", "$ref": "#/definitions/entity.ResponseData" } } } } }, "/api/v1/business/codelogin": { "post": { "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "商家" ], "summary": "商家手机验证码登录", "parameters": [ { "description": "body", "name": "body", "in": "body", "required": true, "schema": { "type": "object", "$ref": "#/definitions/entity.BusinessLoginOrRegisterRequest" } } ], "responses": { "200": { "description": "desc", "schema": { "type": "object", "$ref": "#/definitions/entity.ResponseData" } } } } }, "/api/v1/business/goods": { "get": { "security": [ { "ApiKeyAuth": [] } ], "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "商家" ], "summary": "分页查询商家商品", "parameters": [ { "type": "string", "description": "页大小", "name": "pageSize", "in": "query" }, { "type": "string", "description": "页数", "name": "page", "in": "query" } ], "responses": { "200": { "description": "desc", "schema": { "type": "object", "$ref": "#/definitions/entity.ResponseData" } } } }, "post": { "security": [ { "ApiKeyAuth": [] } ], "consumes": [ "multipart/form-data" ], "produces": [ "application/json" ], "tags": [ "商家" ], "summary": "添加商品", "parameters": [ { "type": "string", "description": "商品名称", "name": "goods_name", "in": "formData", "required": true }, { "type": "file", "description": "商品图片", "name": "goods_photo", "in": "formData" }, { "type": "string", "description": "商品描述", "name": "goods_description", "in": "formData" }, { "type": "boolean", "description": "是否上架", "name": "goods_listing", "in": "formData" }, { "type": "number", "description": "商品价格", "name": "goods_price", "in": "formData" }, { "type": "string", "description": "商品单位 份、杯、瓶", "name": "goods_unit", "in": "formData", "required": true }, { "type": "string", "description": "排序", "name": "goods_sort", "in": "formData", "required": true }, { "type": "integer", "description": "商品种类ID", "name": "goods_type_id", "in": "formData" } ], "responses": { "200": { "description": "desc", "schema": { "type": "object", "$ref": "#/definitions/entity.ResponseData" } } } } }, "/api/v1/business/goods/{id}": { "get": { "security": [ { "ApiKeyAuth": [] } ], "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "商家" ], "summary": "查询商品By ID", "parameters": [ { "type": "integer", "description": "商品ID", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "desc", "schema": { "type": "object", "$ref": "#/definitions/entity.ResponseData" } } } }, "put": { "security": [ { "ApiKeyAuth": [] } ], "consumes": [ "multipart/form-data" ], "produces": [ "application/json" ], "tags": [ "商家" ], "summary": "修改商品", "parameters": [ { "type": "integer", "description": "商品ID", "name": "id", "in": "path", "required": true }, { "type": "string", "description": "商品名称", "name": "goods_name", "in": "formData", "required": true }, { "type": "file", "description": "商品图片", "name": "goods_photo", "in": "formData" }, { "type": "string", "description": "商品描述", "name": "goods_description", "in": "formData" }, { "type": "boolean", "description": "是否上架", "name": "goods_listing", "in": "formData" }, { "type": "number", "description": "商品价格", "name": "goods_price", "in": "formData" }, { "type": "string", "description": "商品单位 份、杯、瓶", "name": "goods_unit", "in": "formData", "required": true }, { "type": "string", "description": "排序", "name": "goods_sort", "in": "formData", "required": true }, { "type": "integer", "description": "商品种类ID", "name": "goods_type_id", "in": "formData" } ], "responses": { "200": { "description": "desc", "schema": { "type": "object", "$ref": "#/definitions/entity.ResponseData" } } } }, "delete": { "security": [ { "ApiKeyAuth": [] } ], "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "商家" ], "summary": "商品删除", "parameters": [ { "type": "integer", "description": "商品ID", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "desc", "schema": { "type": "object", "$ref": "#/definitions/entity.ResponseData" } } } } }, "/api/v1/business/goods/{id}/{downorup}": { "put": { "security": [ { "ApiKeyAuth": [] } ], "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "商家" ], "summary": "上架/下架商品", "parameters": [ { "type": "integer", "description": "商品ID", "name": "id", "in": "path", "required": true }, { "type": "boolean", "description": "是否上架", "name": "downorup", "in": "path" } ], "responses": { "200": { "description": "desc", "schema": { "type": "object", "$ref": "#/definitions/entity.ResponseData" } } } } }, "/api/v1/business/goodstype": { "get": { "security": [ { "ApiKeyAuth": [] } ], "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "商家" ], "summary": "分页查询商家商品种类", "parameters": [ { "type": "string", "description": "页大小", "name": "pageSize", "in": "query" }, { "type": "string", "description": "页数", "name": "page", "in": "query" } ], "responses": { "200": { "description": "desc", "schema": { "type": "object", "$ref": "#/definitions/entity.ResponseData" } } } }, "post": { "security": [ { "ApiKeyAuth": [] } ], "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "商家" ], "summary": "商品种类添加", "parameters": [ { "description": "body", "name": "body", "in": "body", "required": true, "schema": { "type": "object", "$ref": "#/definitions/entity.GoodsTypeRequest" } } ], "responses": { "200": { "description": "desc", "schema": { "type": "object", "$ref": "#/definitions/entity.ResponseData" } } } } }, "/api/v1/business/goodstype/{id}": { "get": { "security": [ { "ApiKeyAuth": [] } ], "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "商家" ], "summary": "查询商品种类By ID", "parameters": [ { "type": "integer", "description": "商品种类ID", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "desc", "schema": { "type": "object", "$ref": "#/definitions/entity.ResponseData" } } } }, "put": { "security": [ { "ApiKeyAuth": [] } ], "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "商家" ], "summary": "商品种类修改", "parameters": [ { "type": "integer", "description": "商品种类ID", "name": "id", "in": "path", "required": true }, { "description": "body", "name": "body", "in": "body", "required": true, "schema": { "type": "object", "$ref": "#/definitions/entity.GoodsTypeRequest" } } ], "responses": { "200": { "description": "desc", "schema": { "type": "object", "$ref": "#/definitions/entity.ResponseData" } } } }, "delete": { "security": [ { "ApiKeyAuth": [] } ], "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "商家" ], "summary": "商品种类删除", "parameters": [ { "type": "integer", "description": "商品种类ID", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "desc", "schema": { "type": "object", "$ref": "#/definitions/entity.ResponseData" } } } } }, "/api/v1/business/goodstypes": { "get": { "security": [ { "ApiKeyAuth": [] } ], "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "商家" ], "summary": "查询商家商品种类ID和名称", "responses": { "200": { "description": "desc", "schema": { "type": "object", "$ref": "#/definitions/entity.ResponseData" } } } } }, "/api/v1/business/passlogin": { "post": { "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "商家" ], "summary": "商家账号密码登录", "parameters": [ { "description": "body", "name": "body", "in": "body", "required": true, "schema": { "type": "object", "$ref": "#/definitions/entity.BusinessPassLoginRequest" } } ], "responses": { "200": { "description": "desc", "schema": { "type": "object", "$ref": "#/definitions/entity.ResponseData" } } } } }, "/api/v1/business/register": { "post": { "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "商家" ], "summary": "商家注册", "parameters": [ { "description": "body", "name": "body", "in": "body", "required": true, "schema": { "type": "object", "$ref": "#/definitions/entity.BusinessLoginOrRegisterRequest" } } ], "responses": { "200": { "description": "desc", "schema": { "type": "object", "$ref": "#/definitions/entity.ResponseData" } } } } }, "/api/v1/business/store": { "get": { "security": [ { "ApiKeyAuth": [] } ], "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "商家" ], "summary": "查询商家门店信息", "responses": { "200": { "description": "desc", "schema": { "type": "object", "$ref": "#/definitions/entity.ResponseData" } } } }, "put": { "security": [ { "ApiKeyAuth": [] } ], "consumes": [ "multipart/form-data" ], "produces": [ "application/json" ], "tags": [ "商家" ], "summary": "更新商家门店信息", "parameters": [ { "type": "string", "description": "门店名称", "name": "store_name", "in": "formData", "required": true }, { "type": "string", "description": "门店详细地址", "name": "store_address", "in": "formData", "required": true }, { "type": "file", "description": "门店logo", "name": "store_logo", "in": "formData" }, { "type": "string", "description": "门店联系人姓名", "name": "store_contact_name", "in": "formData" }, { "type": "string", "description": "门店联系人电话", "name": "store_contact_tel", "in": "formData" }, { "type": "string", "description": "门店开始营业时间", "name": "store_start_banking_hours", "in": "formData", "required": true }, { "type": "string", "description": "门店结束营业时间", "name": "store_end_banking_hours", "in": "formData", "required": true }, { "type": "file", "description": "门脸照", "name": "store_face_photo", "in": "formData" }, { "type": "file", "description": "店内照", "name": "in_store_photos", "in": "formData" } ], "responses": { "200": { "description": "desc", "schema": { "type": "object", "$ref": "#/definitions/entity.ResponseData" } } } } }, "/api/v1/business/table": { "get": { "security": [ { "ApiKeyAuth": [] } ], "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "商家" ], "summary": "分页查询餐桌", "parameters": [ { "type": "string", "description": "页大小", "name": "pageSize", "in": "query" }, { "type": "string", "description": "页数", "name": "page", "in": "query" } ], "responses": { "200": { "description": "desc", "schema": { "type": "object", "$ref": "#/definitions/entity.ResponseData" } } } }, "post": { "security": [ { "ApiKeyAuth": [] } ], "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "商家" ], "summary": "添加餐桌", "parameters": [ { "description": "body", "name": "body", "in": "body", "required": true, "schema": { "type": "object", "$ref": "#/definitions/entity.TableRequest" } } ], "responses": { "200": { "description": "desc", "schema": { "type": "object", "$ref": "#/definitions/entity.ResponseData" } } } } }, "/api/v1/business/table/{id}": { "get": { "security": [ { "ApiKeyAuth": [] } ], "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "商家" ], "summary": "查询餐桌By ID", "parameters": [ { "type": "integer", "description": "餐桌ID", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "desc", "schema": { "type": "object", "$ref": "#/definitions/entity.ResponseData" } } } }, "put": { "security": [ { "ApiKeyAuth": [] } ], "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "商家" ], "summary": "修改餐桌", "parameters": [ { "type": "integer", "description": "餐桌ID", "name": "id", "in": "path", "required": true }, { "description": "body", "name": "body", "in": "body", "required": true, "schema": { "type": "object", "$ref": "#/definitions/entity.TableRequest" } } ], "responses": { "200": { "description": "desc", "schema": { "type": "object", "$ref": "#/definitions/entity.ResponseData" } } } }, "delete": { "security": [ { "ApiKeyAuth": [] } ], "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "商家" ], "summary": "删除餐桌", "parameters": [ { "type": "integer", "description": "餐桌ID", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "desc", "schema": { "type": "object", "$ref": "#/definitions/entity.ResponseData" } } } } }, "/api/v1/business/table/{id}/qrcode": { "get": { "security": [ { "ApiKeyAuth": [] } ], "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "商家" ], "summary": "生成餐桌二维码", "parameters": [ { "type": "integer", "description": "餐桌ID", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "desc", "schema": { "type": "object", "$ref": "#/definitions/entity.ResponseData" } } } } }, "/api/v1/business/tabletype": { "get": { "security": [ { "ApiKeyAuth": [] } ], "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "商家" ], "summary": "分页查询餐桌种类", "parameters": [ { "type": "string", "description": "页大小", "name": "pageSize", "in": "query" }, { "type": "string", "description": "页数", "name": "page", "in": "query" } ], "responses": { "200": { "description": "desc", "schema": { "type": "object", "$ref": "#/definitions/entity.ResponseData" } } } }, "post": { "security": [ { "ApiKeyAuth": [] } ], "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "商家" ], "summary": "添加餐桌种类", "parameters": [ { "description": "body", "name": "body", "in": "body", "required": true, "schema": { "type": "object", "$ref": "#/definitions/entity.TableTypeRequest" } } ], "responses": { "200": { "description": "desc", "schema": { "type": "object", "$ref": "#/definitions/entity.ResponseData" } } } } }, "/api/v1/business/tabletype/{id}": { "get": { "security": [ { "ApiKeyAuth": [] } ], "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "商家" ], "summary": "查询餐桌种类By ID", "parameters": [ { "type": "integer", "description": "餐桌种类ID", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "desc", "schema": { "type": "object", "$ref": "#/definitions/entity.ResponseData" } } } }, "put": { "security": [ { "ApiKeyAuth": [] } ], "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "商家" ], "summary": "修改餐桌种类", "parameters": [ { "type": "integer", "description": "餐桌种类ID", "name": "id", "in": "path", "required": true }, { "description": "body", "name": "body", "in": "body", "required": true, "schema": { "type": "object", "$ref": "#/definitions/entity.TableTypeRequest" } } ], "responses": { "200": { "description": "desc", "schema": { "type": "object", "$ref": "#/definitions/entity.ResponseData" } } } }, "delete": { "security": [ { "ApiKeyAuth": [] } ], "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "商家" ], "summary": "删除餐桌种类", "parameters": [ { "type": "integer", "description": "餐桌种类ID", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "desc", "schema": { "type": "object", "$ref": "#/definitions/entity.ResponseData" } } } } }, "/api/v1/business/tabletypes": { "get": { "security": [ { "ApiKeyAuth": [] } ], "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "商家" ], "summary": "查询餐桌种类ID和名称", "responses": { "200": { "description": "desc", "schema": { "type": "object", "$ref": "#/definitions/entity.ResponseData" } } } } }, "/api/v1/common/verificationcode": { "get": { "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "公共接口" ], "summary": "获取验证码", "parameters": [ { "type": "string", "description": "手机号码", "name": "tel", "in": "query", "required": true } ], "responses": { "200": { "description": "desc", "schema": { "type": "object", "$ref": "#/definitions/entity.ResponseData" } } } } }, "/api/v1/system/admin": { "get": { "security": [ { "ApiKeyAuth": [] } ], "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "系统管理员" ], "summary": "查询管理员by token", "responses": { "200": { "description": "desc", "schema": { "type": "object", "$ref": "#/definitions/entity.ResponseData" } } } }, "put": { "security": [ { "ApiKeyAuth": [] } ], "consumes": [ "multipart/form-data" ], "produces": [ "application/json" ], "tags": [ "系统管理员" ], "summary": "修改管理员", "parameters": [ { "type": "string", "description": "昵称", "name": "nikename", "in": "formData" }, { "type": "string", "description": "操作权限 Y | N", "name": "manager", "in": "formData" }, { "type": "file", "description": "用户头像", "name": "avatar", "in": "formData" }, { "type": "boolean", "description": "是否启用", "name": "is_enable", "in": "formData", "required": true } ], "responses": { "200": { "description": "desc", "schema": { "type": "object", "$ref": "#/definitions/entity.ResponseData" } } } }, "post": { "security": [ { "ApiKeyAuth": [] } ], "consumes": [ "multipart/form-data" ], "produces": [ "application/json" ], "tags": [ "系统管理员" ], "summary": "添加管理员", "parameters": [ { "type": "string", "description": "用户名", "name": "username", "in": "formData", "required": true }, { "type": "string", "description": "昵称", "name": "nikename", "in": "formData" }, { "type": "string", "description": "密码", "name": "password", "in": "formData", "required": true }, { "type": "string", "description": "操作权限 Y | N", "name": "manager", "in": "formData" }, { "type": "file", "description": "用户头像", "name": "avatar", "in": "formData" }, { "type": "boolean", "description": "是否启用", "name": "is_enable", "in": "formData" } ], "responses": { "200": { "description": "desc", "schema": { "type": "object", "$ref": "#/definitions/entity.ResponseData" } } } } }, "/api/v1/system/admin/enable/{id}": { "put": { "security": [ { "ApiKeyAuth": [] } ], "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "系统管理员" ], "summary": "启用/禁用管理员", "parameters": [ { "type": "integer", "description": "Account ID", "name": "id", "in": "path", "required": true }, { "type": "boolean", "description": "启用/禁用管理员", "name": "is_enable", "in": "query", "required": true } ], "responses": { "200": { "description": "desc", "schema": { "type": "object", "$ref": "#/definitions/entity.ResponseData" } } } } }, "/api/v1/system/admin/manager/{id}": { "put": { "security": [ { "ApiKeyAuth": [] } ], "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "系统管理员" ], "summary": "授权/禁止管理员权限", "parameters": [ { "type": "integer", "description": "Account ID", "name": "id", "in": "path", "required": true }, { "type": "string", "description": "Y:授权/ N:禁止", "name": "is_manager", "in": "query", "required": true } ], "responses": { "200": { "description": "desc", "schema": { "type": "object", "$ref": "#/definitions/entity.ResponseData" } } } } }, "/api/v1/system/admin/password": { "put": { "security": [ { "ApiKeyAuth": [] } ], "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "系统管理员" ], "summary": "修改管理员密码", "parameters": [ { "description": "body", "name": "body", "in": "body", "required": true, "schema": { "type": "object", "$ref": "#/definitions/entity.SystemAdminUpdatePassRequest" } } ], "responses": { "200": { "description": "desc", "schema": { "type": "object", "$ref": "#/definitions/entity.ResponseData" } } } } }, "/api/v1/system/admin/{id}": { "get": { "security": [ { "ApiKeyAuth": [] } ], "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "系统管理员" ], "summary": "查询管理员by id", "parameters": [ { "type": "integer", "description": "Account ID", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "desc", "schema": { "type": "object", "$ref": "#/definitions/entity.ResponseData" } } } }, "delete": { "security": [ { "ApiKeyAuth": [] } ], "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "系统管理员" ], "summary": "删除管理员", "parameters": [ { "type": "integer", "description": "Account ID", "name": "id", "in": "path", "required": true } ], "responses": { "200": { "description": "desc", "schema": { "type": "object", "$ref": "#/definitions/entity.ResponseData" } } } } }, "/api/v1/system/admins": { "get": { "security": [ { "ApiKeyAuth": [] } ], "consumes": [ "application/x-www-form-urlencoded" ], "produces": [ "application/json" ], "tags": [ "系统管理员" ], "summary": "分页查询管理员(默认前100条) 并返回总记录数", "parameters": [ { "type": "string", "description": "用户名", "name": "username", "in": "query" }, { "type": "string", "description": "创建开始时间", "name": "created_at_start", "in": "query" }, { "type": "string", "description": "创建结束时间", "name": "created_at_end", "in": "query" }, { "type": "string", "description": "操作权限", "name": "manager", "in": "query" }, { "type": "string", "description": "创建人", "name": "created_by", "in": "query" }, { "type": "boolean", "description": "是否启用", "name": "is_enable", "in": "query" }, { "type": "string", "description": "页大小", "name": "pageSize", "in": "query" }, { "type": "string", "description": "页数", "name": "page", "in": "query" } ], "responses": { "200": { "description": "desc", "schema": { "type": "object", "$ref": "#/definitions/entity.ResponseData" } } } } }, "/api/v1/system/login": { "post": { "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "系统管理员" ], "summary": "管理员登录", "parameters": [ { "description": "body", "name": "body", "in": "body", "required": true, "schema": { "type": "object", "$ref": "#/definitions/entity.SystemAdminLoginRequest" } } ], "responses": { "200": { "description": "desc", "schema": { "type": "object", "$ref": "#/definitions/entity.ResponseData" } } } } } }, "definitions": { "entity.BusinessLoginOrRegisterRequest": { "type": "object", "properties": { "code": { "description": "验证码", "type": "string" }, "tel": { "description": "手机号码", "type": "string" } } }, "entity.BusinessPassLoginRequest": { "type": "object", "properties": { "password": { "description": "密码", "type": "string" }, "tel": { "description": "手机号码", "type": "string" } } }, "entity.GoodsTypeRequest": { "type": "object", "properties": { "display_or_not": { "description": "是否显示", "type": "boolean" }, "name": { "description": "种类名称", "type": "string" }, "type_sort": { "description": "种类排序", "type": "integer" } } }, "entity.ResponseData": { "type": "object", "properties": { "data": { "description": "返回数据", "type": "object" }, "message": { "description": "提示信息", "type": "string" }, "status": { "description": "成功失败标志;true:成功 、false:失败", "type": "boolean" } } }, "entity.SystemAdminLoginRequest": { "type": "object", "properties": { "password": { "description": "密码", "type": "string" }, "username": { "description": "用户名", "type": "string" } } }, "entity.SystemAdminUpdatePassRequest": { "type": "object", "properties": { "new_password": { "description": "新密码", "type": "string" }, "old_password": { "description": "旧密码", "type": "string" } } }, "entity.TableRequest": { "type": "object", "properties": { "display_or_not": { "description": "是否显示", "type": "boolean" }, "name": { "description": "餐桌名称", "type": "string" }, "sort": { "description": "餐桌排序", "type": "integer" }, "table_type_id": { "description": "餐桌种类ID", "type": "integer" } } }, "entity.TableTypeRequest": { "type": "object", "properties": { "display_or_not": { "description": "是否显示", "type": "boolean" }, "name": { "description": "种类名称", "type": "string" }, "seating_max": { "description": "最多可坐人数", "type": "integer" }, "seating_min": { "description": "最少可坐人数", "type": "integer" } } } }, "securityDefinitions": { "ApiKeyAuth": { "type": "apiKey", "name": "Authorization", "in": "header" } } }