| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294 |
- {
- "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": []
- }
|