add
wangpengfei
2023-07-21 bf9d36e5474301bcfe571606d9caaa7ceefa8192
docs/docs.go
@@ -3064,6 +3064,125 @@
                }
            }
        },
        "/api/refundMethod/add": {
            "post": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "RefundMethod"
                ],
                "summary": "添加退款方式",
                "parameters": [
                    {
                        "description": "查询参数",
                        "name": "object",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/request.AddRefundMethod"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/contextx.Response"
                        }
                    }
                }
            }
        },
        "/api/refundMethod/delete/{id}": {
            "delete": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "RefundMethod"
                ],
                "summary": "删除退款方式",
                "parameters": [
                    {
                        "type": "integer",
                        "description": "查询参数",
                        "name": "id",
                        "in": "path",
                        "required": true
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/contextx.Response"
                        }
                    }
                }
            }
        },
        "/api/refundMethod/list": {
            "get": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "RefundMethod"
                ],
                "summary": "获取退款方式列表",
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "allOf": [
                                {
                                    "$ref": "#/definitions/contextx.Response"
                                },
                                {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/definitions/response.RefundMethodResponse"
                                        }
                                    }
                                }
                            ]
                        }
                    }
                }
            }
        },
        "/api/refundMethod/update": {
            "put": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "RefundMethod"
                ],
                "summary": "更新退款方式",
                "parameters": [
                    {
                        "description": "查询参数",
                        "name": "object",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/request.UpdateRefundMethods"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/contextx.Response"
                        }
                    }
                }
            }
        },
        "/api/region/add": {
            "post": {
                "produces": [
@@ -6796,6 +6915,17 @@
                }
            }
        },
        "model.RefundMethod": {
            "type": "object",
            "properties": {
                "id": {
                    "type": "integer"
                },
                "name": {
                    "type": "string"
                }
            }
        },
        "model.Region": {
            "type": "object",
            "properties": {
@@ -7927,6 +8057,17 @@
                    "type": "integer"
                },
                "validity_date": {
                    "type": "string"
                }
            }
        },
        "request.AddRefundMethod": {
            "type": "object",
            "required": [
                "name"
            ],
            "properties": {
                "name": {
                    "type": "string"
                }
            }
@@ -9693,6 +9834,35 @@
                }
            }
        },
        "request.UpdateRefundMethod": {
            "type": "object",
            "required": [
                "id",
                "name"
            ],
            "properties": {
                "id": {
                    "type": "integer"
                },
                "name": {
                    "type": "string"
                }
            }
        },
        "request.UpdateRefundMethods": {
            "type": "object",
            "required": [
                "refund_method"
            ],
            "properties": {
                "refund_method": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/request.UpdateRefundMethod"
                    }
                }
            }
        },
        "request.UpdateRegion": {
            "type": "object",
            "properties": {
@@ -10690,6 +10860,13 @@
                        "$ref": "#/definitions/model.Province"
                    }
                },
                "refundMethod": {
                    "description": "退款方式",
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/model.RefundMethod"
                    }
                },
                "region": {
                    "description": "区域数据",
                    "type": "array",
@@ -10948,6 +11125,17 @@
                }
            }
        },
        "response.RefundMethodResponse": {
            "type": "object",
            "properties": {
                "list": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/model.RefundMethod"
                    }
                }
            }
        },
        "response.RegisteredCapitalResponse": {
            "type": "object",
            "properties": {