{ "openapi": "3.0.1", "info": { "title": "默认模块", "description": "", "version": "1.0.0" }, "tags": [], "paths": { "/merchant/getWhitelist": { "get": { "summary": "查看白名单", "deprecated": false, "description": "", "tags": [], "parameters": [], "responses": { "200": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RString" }, "example": { "code": 0, "msg": "", "data": "" } } }, "headers": {} } }, "security": [ { "bearer": [] } ] } }, "/merchant/editWhitelist": { "patch": { "summary": "设置白名单", "deprecated": false, "description": "", "tags": [], "parameters": [], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/EditMerchantSafeRO", "description": "" } } } }, "responses": { "200": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/R", "description": "响应信息主体" }, "example": { "ok": false, "code": 0, "msg": "", "data": {} } } }, "headers": {} } }, "security": [ { "bearer": [] } ] } }, "/merchant/editSecondaryPwd": { "patch": { "summary": "设置二级密码", "deprecated": false, "description": "", "tags": [], "parameters": [], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/EditMerchantSafeRO", "description": "" } } } }, "responses": { "200": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/R", "description": "响应信息主体" }, "example": { "ok": false, "code": 0, "msg": "", "data": {} } } }, "headers": {} } }, "security": [ { "bearer": [] } ] } } }, "components": { "schemas": { "RString": { "type": "object", "properties": { "code": { "type": "integer", "description": "返回标记:成功标记=0,失败标记=1" }, "msg": { "type": "string", "description": "返回信息" }, "data": { "type": "string", "description": "数据" } } }, "EditMerchantSafeRO": { "type": "object", "properties": { "whitelist": { "type": "string", "description": "白名单" }, "secondaryPwd": { "type": "string", "description": "二级密码" }, "oldSecondaryPwd": { "type": "string", "description": "旧二级密码" } } }, "R": { "type": "object", "properties": { "ok": { "type": "boolean" }, "code": { "type": "integer", "description": "返回标记:成功标记=0,失败标记=1" }, "msg": { "type": "string", "description": "返回信息" }, "data": { "type": "object", "properties": {}, "description": "数据" } } } }, "securitySchemes": { "bearer": { "type": "http", "scheme": "bearer" } } }, "servers": [], "security": [] }