{ "openapi": "3.0.1", "info": { "title": "默认模块", "description": "", "version": "1.0.0" }, "tags": [], "paths": { "/merchantPaymentType/list": { "get": { "summary": "列表-代收或代付 merchant_payment_type_query", "deprecated": false, "description": "", "tags": [], "parameters": [ { "name": "paymentType", "in": "query", "description": "通道类型\nPAY :代付\nHARVEST :代收", "required": true, "schema": { "type": "string", "enum": [ "PAY", "HARVEST" ] } }, { "name": "merchantUserId", "in": "query", "description": "商户id", "required": true, "schema": { "type": "integer", "format": "int64" } } ], "responses": { "200": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RListMerchantPaymentTypeListVO" }, "example": { "code": 0, "msg": "", "data": [ { "merchantPaymentTypeId": 0, "paymentTypeId": 0, "channelName": "", "channelCode": "", "paymentName": "", "paymentCode": "", "status": false, "agentUserRate": 0, "merchantUserRate": 0, "singleMaxAmount": 0, "singleMinAmount": 0, "baseSingleMaxAmount": 0, "baseSingleMinAmount": 0 } ] } } }, "headers": {} } }, "security": [ { "bearer": [] } ] } }, "/merchantPaymentType/edit": { "post": { "summary": "编辑配置 merchant_payment_type_edit", "deprecated": false, "description": "", "tags": [], "parameters": [], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/EditMerchantPaymentROEdit", "description": "" } } } }, "responses": { "200": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/R", "description": "响应信息主体" }, "example": { "ok": false, "code": null, "msg": "", "data": {} } } }, "headers": {} } }, "security": [ { "bearer": [] } ] } } }, "components": { "schemas": { "MerchantPaymentTypeListVO": { "type": "object", "properties": { "merchantPaymentTypeId": { "type": "integer", "description": "配置id", "format": "int64" }, "paymentTypeId": { "type": "integer", "description": "支付类型id", "format": "int64" }, "channelName": { "type": "string", "description": "通道名称" }, "channelCode": { "type": "string", "description": "通道编码" }, "paymentName": { "type": "string", "description": "支付类型名称" }, "paymentCode": { "type": "string", "description": "支付类型代码" }, "status": { "type": "boolean", "description": "启用状态" }, "agentUserRate": { "type": "number", "description": "代理商费率" }, "merchantUserRate": { "type": "number", "description": "商户费率" }, "singleMaxAmount": { "type": "number", "description": "单比最大金额" }, "singleMinAmount": { "type": "number", "description": "单比最小金额" }, "baseSingleMaxAmount": { "type": "number", "description": "通道单比最大金额" }, "baseSingleMinAmount": { "type": "number", "description": "通道单比最小金额" } } }, "RListMerchantPaymentTypeListVO": { "type": "object", "properties": { "code": { "type": "integer", "description": "返回标记:成功标记=0,失败标记=1" }, "msg": { "type": "string", "description": "返回信息" }, "data": { "type": "array", "items": { "$ref": "#/components/schemas/MerchantPaymentTypeListVO", "description": "" }, "description": "数据" } } }, "EditMerchantPaymentROEdit": { "type": "object", "properties": { "merchantPaymentTypeId": { "type": "integer", "description": "配置id", "format": "int64" }, "paymentType": { "type": "string", "description": "通道类型", "enum": [ "PAY", "HARVEST" ] }, "paymentTypeId": { "type": "integer", "description": "支付类型id", "format": "int64" }, "merchantUserId": { "type": "integer", "description": "商户id", "format": "int64" }, "agentUserRate": { "type": "number", "description": "代理商费率" }, "merchantUserRate": { "type": "number", "description": "商户费率" }, "status": { "type": "boolean", "description": "启用状态" }, "singleMaxAmount": { "type": "number", "description": "单比最大金额" }, "singleMinAmount": { "type": "number", "description": "单比最小金额" } }, "required": [ "paymentType", "paymentTypeId", "merchantUserId", "status" ] }, "R": { "type": "object", "properties": { "ok": { "type": "boolean" }, "code": { "description": "返回标记:成功标记=0,失败标记=1", "type": "null" }, "msg": { "type": "string", "description": "返回信息" }, "data": { "type": "object", "properties": {}, "description": "数据" } } } }, "securitySchemes": { "bearer": { "type": "http", "scheme": "bearer" } } }, "servers": [], "security": [] }