{
  "openapi": "3.0.1",
  "info": {
    "title": "默认模块",
    "description": "",
    "version": "1.0.0"
  },
  "tags": [],
  "paths": {
    "/paymentType/list/{id:^\\d+$}": {
      "get": {
        "summary": "列表 payment_type_query",
        "deprecated": false,
        "description": "",
        "tags": [],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "query",
            "in": "query",
            "description": "",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "status",
            "in": "query",
            "description": "",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "paymentType",
            "in": "query",
            "description": " PAY :代付\nHARVEST :代收",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RListPaymentTypeListVO"
                },
                "example": {
                  "code": 0,
                  "msg": "",
                  "data": [
                    {
                      "id": 0,
                      "status": false,
                      "paymentName": "",
                      "paymentCode": "",
                      "paymentType": ""
                    }
                  ]
                }
              }
            },
            "headers": {}
          }
        },
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/paymentType/save": {
      "post": {
        "summary": "新增 payment_type_save",
        "deprecated": false,
        "description": "",
        "tags": [],
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PaymentTypeROAdd",
                "description": ""
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/R",
                  "description": "响应信息主体"
                },
                "example": {
                  "ok": false,
                  "code": null,
                  "msg": "",
                  "data": {}
                }
              }
            },
            "headers": {}
          }
        },
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/paymentType/info/{id:^\\d+$}": {
      "get": {
        "summary": "详情 payment_type_info",
        "deprecated": false,
        "description": "",
        "tags": [],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RPaymentType"
                },
                "example": {
                  "code": 0,
                  "msg": "",
                  "data": {
                    "id": 0,
                    "status": false,
                    "createBy": "",
                    "updateBy": "",
                    "createTime": "",
                    "updateTime": "",
                    "channelId": 0,
                    "paymentName": "",
                    "paymentCode": "",
                    "paymentType": ""
                  }
                }
              }
            },
            "headers": {}
          }
        },
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/paymentType/edit/{id:^\\d+$}": {
      "patch": {
        "summary": "编辑(不可修改状态、不可修改类型) payment_type_edit",
        "deprecated": false,
        "description": "",
        "tags": [],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PaymentTypeROEdit",
                "description": ""
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/R",
                  "description": "响应信息主体"
                },
                "example": {
                  "ok": false,
                  "code": null,
                  "msg": "",
                  "data": {}
                }
              }
            },
            "headers": {}
          }
        },
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/paymentType/changeStatus/{id:^\\d+$}": {
      "patch": {
        "summary": "修改状态 payment_channel_edit",
        "deprecated": false,
        "description": "",
        "tags": [],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/R",
                  "description": "响应信息主体"
                },
                "example": {
                  "ok": false,
                  "code": null,
                  "msg": "",
                  "data": {}
                }
              }
            },
            "headers": {}
          }
        },
        "security": [
          {
            "bearer": []
          }
        ]
      }
    }
  },
  "components": {
    "schemas": {
      "PaymentTypeListVO": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "description": "",
            "format": "int64"
          },
          "status": {
            "type": "boolean",
            "description": "启用状态"
          },
          "paymentName": {
            "type": "string",
            "description": "支付类型名称"
          },
          "paymentCode": {
            "type": "string",
            "description": "支付类型代码"
          },
          "paymentType": {
            "type": "string",
            "description": "支付类别",
            "enum": [
              "PAY",
              "HARVEST"
            ]
          }
        }
      },
      "RListPaymentTypeListVO": {
        "type": "object",
        "properties": {
          "code": {
            "type": "integer",
            "description": "返回标记：成功标记=0，失败标记=1"
          },
          "msg": {
            "type": "string",
            "description": "返回信息"
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PaymentTypeListVO",
              "description": ""
            },
            "description": "数据"
          }
        }
      },
      "PaymentTypeROAdd": {
        "type": "object",
        "properties": {
          "status": {
            "type": "boolean",
            "description": "启用状态"
          },
          "channelId": {
            "type": "integer",
            "description": "通道id",
            "format": "int64"
          },
          "paymentName": {
            "type": "string",
            "description": "支付类型名称"
          },
          "paymentCode": {
            "type": "string",
            "description": "支付类型代码"
          },
          "paymentType": {
            "type": "string",
            "description": "支付类别",
            "enum": [
              "PAY",
              "HARVEST"
            ]
          }
        },
        "required": [
          "status",
          "channelId",
          "paymentName",
          "paymentCode",
          "paymentType"
        ]
      },
      "PaymentType": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "description": "",
            "format": "int64"
          },
          "status": {
            "type": "boolean",
            "description": "启用状态"
          },
          "createBy": {
            "type": "string",
            "description": "创建人"
          },
          "updateBy": {
            "type": "string",
            "description": "修改人"
          },
          "createTime": {
            "type": "string",
            "description": "创建时间"
          },
          "updateTime": {
            "type": "string",
            "description": "修改时间"
          },
          "channelId": {
            "type": "integer",
            "description": "通道id",
            "format": "int64"
          },
          "paymentName": {
            "type": "string",
            "description": "支付类型名称"
          },
          "paymentCode": {
            "type": "string",
            "description": "支付类型代码"
          },
          "paymentType": {
            "type": "string",
            "description": "支付类别",
            "enum": [
              "PAY",
              "HARVEST"
            ]
          }
        }
      },
      "R": {
        "type": "object",
        "properties": {
          "ok": {
            "type": "boolean"
          },
          "code": {
            "description": "返回标记：成功标记=0，失败标记=1",
            "type": "null"
          },
          "msg": {
            "type": "string",
            "description": "返回信息"
          },
          "data": {
            "type": "object",
            "properties": {},
            "description": "数据"
          }
        }
      },
      "RPaymentType": {
        "type": "object",
        "properties": {
          "code": {
            "type": "integer",
            "description": "返回标记：成功标记=0，失败标记=1"
          },
          "msg": {
            "type": "string",
            "description": "返回信息"
          },
          "data": {
            "$ref": "#/components/schemas/PaymentType",
            "description": "数据"
          }
        }
      },
      "PaymentTypeROEdit": {
        "type": "object",
        "properties": {
          "status": {
            "type": "boolean",
            "description": "启用状态"
          },
          "channelId": {
            "type": "integer",
            "description": "通道id",
            "format": "int64"
          },
          "paymentName": {
            "type": "string",
            "description": "支付类型名称"
          },
          "paymentCode": {
            "type": "string",
            "description": "支付类型代码"
          },
          "paymentType": {
            "type": "string",
            "description": "支付类别",
            "enum": [
              "PAY",
              "HARVEST"
            ]
          }
        },
        "required": [
          "channelId",
          "paymentName",
          "paymentCode"
        ]
      }
    },
    "securitySchemes": {
      "bearer": {
        "type": "http",
        "scheme": "bearer"
      }
    }
  },
  "servers": [],
  "security": []
}