From 1109d0c6565e3413e54d9f28e68dda8ca26b99c4 Mon Sep 17 00:00:00 2001 From: wangpengfei <274878379@qq.com> Date: 星期二, 25 七月 2023 11:19:52 +0800 Subject: [PATCH] fix --- docs/docs.go | 281 +++++++++++++++++++++++++++++++++++++++++++++++++++---- 1 files changed, 259 insertions(+), 22 deletions(-) diff --git a/docs/docs.go b/docs/docs.go index cf08ca0..7984631 100644 --- a/docs/docs.go +++ b/docs/docs.go @@ -1395,6 +1395,125 @@ } } }, + "/api/currency/add": { + "post": { + "produces": [ + "application/json" + ], + "tags": [ + "Currency" + ], + "summary": "娣诲姞甯佺", + "parameters": [ + { + "description": "鏌ヨ鍙傛暟", + "name": "object", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/request.AddCurrency" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/contextx.Response" + } + } + } + } + }, + "/api/currency/delete/{id}": { + "delete": { + "produces": [ + "application/json" + ], + "tags": [ + "Currency" + ], + "summary": "鍒犻櫎甯佺", + "parameters": [ + { + "type": "integer", + "description": "鏌ヨ鍙傛暟", + "name": "id", + "in": "path", + "required": true + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/contextx.Response" + } + } + } + } + }, + "/api/currency/list": { + "get": { + "produces": [ + "application/json" + ], + "tags": [ + "Currency" + ], + "summary": "鑾峰彇甯佺鍒楄〃", + "responses": { + "200": { + "description": "OK", + "schema": { + "allOf": [ + { + "$ref": "#/definitions/contextx.Response" + }, + { + "type": "object", + "properties": { + "data": { + "$ref": "#/definitions/response.CurrencyResponse" + } + } + } + ] + } + } + } + } + }, + "/api/currency/update": { + "put": { + "produces": [ + "application/json" + ], + "tags": [ + "Currency" + ], + "summary": "鏇存柊甯佺", + "parameters": [ + { + "description": "鏌ヨ鍙傛暟", + "name": "object", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/request.UpdateCurrencys" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/contextx.Response" + } + } + } + } + }, "/api/customerServiceSheet/add": { "post": { "produces": [ @@ -6693,30 +6812,39 @@ } } } + }, + "/api/vetting/update": { + "post": { + "produces": [ + "application/json" + ], + "tags": [ + "Vetting" + ], + "summary": "鏇存柊瀹℃壒", + "parameters": [ + { + "description": "鏌ヨ鍙傛暟", + "name": "object", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/request.UpdateVetting" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/contextx.Response" + } + } + } + } } }, "definitions": { - "constvar.CurrencyType": { - "type": "integer", - "enum": [ - 1, - 2, - 3, - 4 - ], - "x-enum-comments": { - "CurrencyTypeCNY": "浜烘皯甯�", - "CurrencyTypeEUR": "娆у厓", - "CurrencyTypeGBP": "鑻遍晳", - "CurrencyTypeUSD": "缇庡厓" - }, - "x-enum-varnames": [ - "CurrencyTypeCNY", - "CurrencyTypeUSD", - "CurrencyTypeEUR", - "CurrencyTypeGBP" - ] - }, "constvar.SalesStatus": { "type": "integer", "enum": [ @@ -7175,6 +7303,17 @@ "items": { "$ref": "#/definitions/model.Province" } + } + } + }, + "model.Currency": { + "type": "object", + "properties": { + "id": { + "type": "integer" + }, + "name": { + "type": "string" } } }, @@ -7649,7 +7788,7 @@ "type": "integer" }, "currency": { - "$ref": "#/definitions/constvar.CurrencyType" + "type": "integer" }, "detail_address": { "type": "string" @@ -8154,6 +8293,17 @@ } } }, + "model.Status": { + "type": "object", + "properties": { + "id": { + "type": "integer" + }, + "name": { + "type": "string" + } + } + }, "model.SubOrder": { "type": "object", "properties": { @@ -8506,6 +8656,17 @@ "properties": { "name": { "description": "鍥藉鍚嶇О", + "type": "string" + } + } + }, + "request.AddCurrency": { + "type": "object", + "required": [ + "name" + ], + "properties": { + "name": { "type": "string" } } @@ -10202,6 +10363,35 @@ } } }, + "request.UpdateCurrency": { + "type": "object", + "required": [ + "id", + "name" + ], + "properties": { + "id": { + "type": "integer" + }, + "name": { + "type": "string" + } + } + }, + "request.UpdateCurrencys": { + "type": "object", + "required": [ + "currency" + ], + "properties": { + "currency": { + "type": "array", + "items": { + "$ref": "#/definitions/request.UpdateCurrency" + } + } + } + }, "request.UpdateCustomerServiceSheet": { "type": "object", "properties": { @@ -11510,6 +11700,21 @@ } } }, + "request.UpdateVetting": { + "type": "object", + "required": [ + "id", + "status" + ], + "properties": { + "id": { + "type": "integer" + }, + "status": { + "type": "integer" + } + } + }, "response.AccountIdResponse": { "type": "object", "properties": { @@ -11620,6 +11825,17 @@ } } }, + "response.CurrencyResponse": { + "type": "object", + "properties": { + "list": { + "type": "array", + "items": { + "$ref": "#/definitions/model.Currency" + } + } + } + }, "response.DataResponse": { "type": "object", "properties": { @@ -11670,6 +11886,13 @@ "type": "array", "items": { "$ref": "#/definitions/model.Country" + } + }, + "currency": { + "description": "甯佺", + "type": "array", + "items": { + "$ref": "#/definitions/model.Currency" } }, "department": { @@ -11726,6 +11949,13 @@ "type": "array", "items": { "$ref": "#/definitions/model.OrderType" + } + }, + "possibility": { + "description": "鍙兘鎬�", + "type": "array", + "items": { + "$ref": "#/definitions/model.Possibility" } }, "province": { @@ -11840,6 +12070,13 @@ "$ref": "#/definitions/model.SolveRate" } }, + "status": { + "description": "鐘舵��", + "type": "array", + "items": { + "$ref": "#/definitions/model.Status" + } + }, "timely_rate": { "description": "鍙婃椂鐜�", "type": "array", -- Gitblit v1.8.0