| | |
| | | } |
| | | } |
| | | }, |
| | | "/api/code/getAutoCode": { |
| | | "post": { |
| | | "produces": [ |
| | | "application/json" |
| | | ], |
| | | "tags": [ |
| | | "编码" |
| | | ], |
| | | "summary": "获取自动编码", |
| | | "parameters": [ |
| | | { |
| | | "description": "参数", |
| | | "name": "object", |
| | | "in": "body", |
| | | "required": true, |
| | | "schema": { |
| | | "$ref": "#/definitions/code.CodeStandard" |
| | | } |
| | | } |
| | | ], |
| | | "responses": { |
| | | "200": { |
| | | "description": "OK", |
| | | "schema": { |
| | | "$ref": "#/definitions/response.ListResponse" |
| | | } |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | "/api/code/getCodeList": { |
| | | "get": { |
| | | "produces": [ |
| | |
| | | "required": true, |
| | | "schema": { |
| | | "$ref": "#/definitions/request.UpdateRefundMethods" |
| | | } |
| | | } |
| | | ], |
| | | "responses": { |
| | | "200": { |
| | | "description": "OK", |
| | | "schema": { |
| | | "$ref": "#/definitions/contextx.Response" |
| | | } |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | "/api/refundType/add": { |
| | | "post": { |
| | | "produces": [ |
| | | "application/json" |
| | | ], |
| | | "tags": [ |
| | | "退款方式管理" |
| | | ], |
| | | "summary": "添加退款方式", |
| | | "parameters": [ |
| | | { |
| | | "description": "查询参数", |
| | | "name": "object", |
| | | "in": "body", |
| | | "required": true, |
| | | "schema": { |
| | | "$ref": "#/definitions/request.AddRefundType" |
| | | } |
| | | } |
| | | ], |
| | | "responses": { |
| | | "200": { |
| | | "description": "OK", |
| | | "schema": { |
| | | "$ref": "#/definitions/contextx.Response" |
| | | } |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | "/api/refundType/delete/{id}": { |
| | | "delete": { |
| | | "produces": [ |
| | | "application/json" |
| | | ], |
| | | "tags": [ |
| | | "退款方式管理" |
| | | ], |
| | | "summary": "删除退款方式", |
| | | "parameters": [ |
| | | { |
| | | "type": "integer", |
| | | "description": "查询参数", |
| | | "name": "id", |
| | | "in": "path", |
| | | "required": true |
| | | } |
| | | ], |
| | | "responses": { |
| | | "200": { |
| | | "description": "OK", |
| | | "schema": { |
| | | "$ref": "#/definitions/contextx.Response" |
| | | } |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | "/api/refundType/list": { |
| | | "get": { |
| | | "produces": [ |
| | | "application/json" |
| | | ], |
| | | "tags": [ |
| | | "退款方式管理" |
| | | ], |
| | | "summary": "获取退款方式列表", |
| | | "parameters": [ |
| | | { |
| | | "type": "integer", |
| | | "description": "页码", |
| | | "name": "page", |
| | | "in": "query" |
| | | }, |
| | | { |
| | | "type": "integer", |
| | | "description": "每页大小", |
| | | "name": "pageSize", |
| | | "in": "query" |
| | | } |
| | | ], |
| | | "responses": { |
| | | "200": { |
| | | "description": "OK", |
| | | "schema": { |
| | | "allOf": [ |
| | | { |
| | | "$ref": "#/definitions/response.ListResponse" |
| | | }, |
| | | { |
| | | "type": "object", |
| | | "properties": { |
| | | "data": { |
| | | "type": "array", |
| | | "items": { |
| | | "$ref": "#/definitions/model.RefundType" |
| | | } |
| | | } |
| | | } |
| | | } |
| | | ] |
| | | } |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | "/api/refundType/update": { |
| | | "put": { |
| | | "produces": [ |
| | | "application/json" |
| | | ], |
| | | "tags": [ |
| | | "退款方式管理" |
| | | ], |
| | | "summary": "更新退款方式", |
| | | "parameters": [ |
| | | { |
| | | "description": "查询参数", |
| | | "name": "object", |
| | | "in": "body", |
| | | "required": true, |
| | | "schema": { |
| | | "$ref": "#/definitions/request.UpdateRefundType" |
| | | } |
| | | } |
| | | ], |
| | |
| | | "quotationId": { |
| | | "type": "integer" |
| | | }, |
| | | "sendTime": { |
| | | "type": "string" |
| | | }, |
| | | "serviceContractStatus": { |
| | | "$ref": "#/definitions/model.ServiceContractStatus" |
| | | }, |
| | |
| | | "description": "客户id", |
| | | "type": "integer" |
| | | }, |
| | | "codeStandID": { |
| | | "type": "string" |
| | | }, |
| | | "courierCompany": { |
| | | "$ref": "#/definitions/model.CourierCompany" |
| | | }, |
| | |
| | | "invoiceTypeId": { |
| | | "description": "发票类型id", |
| | | "type": "integer" |
| | | }, |
| | | "number": { |
| | | "type": "string" |
| | | }, |
| | | "principalId": { |
| | | "description": "销售负责人id", |
| | |
| | | } |
| | | } |
| | | }, |
| | | "model.RefundType": { |
| | | "type": "object", |
| | | "properties": { |
| | | "id": { |
| | | "type": "integer" |
| | | }, |
| | | "name": { |
| | | "type": "string" |
| | | } |
| | | } |
| | | }, |
| | | "model.Region": { |
| | | "type": "object", |
| | | "properties": { |
| | |
| | | "solutions": { |
| | | "type": "string" |
| | | }, |
| | | "status": { |
| | | "description": "状态", |
| | | "allOf": [ |
| | | { |
| | | "$ref": "#/definitions/model.Status" |
| | | } |
| | | ] |
| | | }, |
| | | "status_id": { |
| | | "type": "integer" |
| | | }, |
| | |
| | | "creatorName": { |
| | | "type": "string" |
| | | }, |
| | | "deliverType": { |
| | | "type": "integer" |
| | | }, |
| | | "deliveryDate": { |
| | | "type": "string" |
| | | }, |
| | |
| | | "items": { |
| | | "$ref": "#/definitions/model.Product" |
| | | } |
| | | }, |
| | | "quotation": { |
| | | "$ref": "#/definitions/model.Quotation" |
| | | }, |
| | | "quotationId": { |
| | | "type": "integer" |
| | | }, |
| | | "remark": { |
| | | "type": "string" |
| | |
| | | "model.SalesRefund": { |
| | | "type": "object", |
| | | "properties": { |
| | | "Source": { |
| | | "$ref": "#/definitions/model.SalesReturn" |
| | | "RefundType": { |
| | | "description": "退款方式", |
| | | "allOf": [ |
| | | { |
| | | "$ref": "#/definitions/model.RefundType" |
| | | } |
| | | ] |
| | | }, |
| | | "amountTotal": { |
| | | "description": "价税合计", |
| | |
| | | }, |
| | | "refundDate": { |
| | | "type": "string" |
| | | }, |
| | | "refundTypeId": { |
| | | "description": "退款方式ID", |
| | | "type": "integer" |
| | | }, |
| | | "salesReturn": { |
| | | "$ref": "#/definitions/model.SalesReturn" |
| | | }, |
| | | "sourceId": { |
| | | "description": "源单id", |
| | |
| | | "severity": { |
| | | "$ref": "#/definitions/model.Severity" |
| | | }, |
| | | "severityId": { |
| | | "description": "严重程度id", |
| | | "type": "integer" |
| | | }, |
| | | "solution": { |
| | | "description": "解决方法", |
| | | "type": "string" |
| | |
| | | "description": "客户类型ID", |
| | | "type": "integer" |
| | | }, |
| | | "codeRule": { |
| | | "$ref": "#/definitions/code.CodeStandard" |
| | | }, |
| | | "codeStandID": { |
| | | "description": "编码id", |
| | | "type": "string" |
| | |
| | | "client_id": { |
| | | "type": "integer" |
| | | }, |
| | | "codeRule": { |
| | | "$ref": "#/definitions/code.CodeStandard" |
| | | }, |
| | | "codeStandID": { |
| | | "description": "编码id", |
| | | "type": "string" |
| | |
| | | }, |
| | | "quotation_id": { |
| | | "type": "integer" |
| | | }, |
| | | "sendTime": { |
| | | "description": "发货时间", |
| | | "type": "string" |
| | | }, |
| | | "status_id": { |
| | | "type": "integer" |
| | |
| | | "description": "客户id", |
| | | "type": "integer" |
| | | }, |
| | | "codeStandID": { |
| | | "type": "string" |
| | | }, |
| | | "courierCompanyId": { |
| | | "description": "物流公司", |
| | | "type": "integer" |
| | |
| | | "invoiceTypeId": { |
| | | "description": "发票类型id", |
| | | "type": "integer" |
| | | }, |
| | | "number": { |
| | | "description": "发票编号", |
| | | "type": "string" |
| | | }, |
| | | "principalId": { |
| | | "description": "销售负责人id", |
| | |
| | | "properties": { |
| | | "client_id": { |
| | | "type": "integer" |
| | | }, |
| | | "codeRule": { |
| | | "$ref": "#/definitions/code.CodeStandard" |
| | | }, |
| | | "codeStandID": { |
| | | "description": "编码id", |
| | |
| | | "properties": { |
| | | "client_id": { |
| | | "type": "integer" |
| | | }, |
| | | "codeRule": { |
| | | "$ref": "#/definitions/code.CodeStandard" |
| | | }, |
| | | "codeStandID": { |
| | | "description": "编码id", |
| | |
| | | } |
| | | } |
| | | }, |
| | | "request.AddRefundType": { |
| | | "type": "object", |
| | | "properties": { |
| | | "id": { |
| | | "type": "integer" |
| | | }, |
| | | "name": { |
| | | "type": "string" |
| | | } |
| | | } |
| | | }, |
| | | "request.AddRegion": { |
| | | "type": "object", |
| | | "properties": { |
| | |
| | | }, |
| | | "client_id": { |
| | | "type": "integer" |
| | | }, |
| | | "codeRule": { |
| | | "$ref": "#/definitions/code.CodeStandard" |
| | | }, |
| | | "codeStandID": { |
| | | "description": "编码id", |
| | |
| | | "clientId": { |
| | | "type": "integer" |
| | | }, |
| | | "codeRule": { |
| | | "$ref": "#/definitions/code.CodeStandard" |
| | | }, |
| | | "codeStandID": { |
| | | "description": "编码id", |
| | | "type": "string" |
| | | }, |
| | | "conditions": { |
| | | "type": "string" |
| | | }, |
| | | "deliverType": { |
| | | "description": "交付类型:1.一次发货,2.多次发货", |
| | | "type": "integer" |
| | | }, |
| | | "deliveryDate": { |
| | | "type": "string" |
| | |
| | | "$ref": "#/definitions/model.Product" |
| | | } |
| | | }, |
| | | "quotationId": { |
| | | "type": "integer" |
| | | }, |
| | | "remark": { |
| | | "type": "string" |
| | | }, |
| | |
| | | "properties": { |
| | | "city_id": { |
| | | "type": "integer" |
| | | }, |
| | | "codeRule": { |
| | | "$ref": "#/definitions/code.CodeStandard" |
| | | }, |
| | | "codeStandID": { |
| | | "description": "编码id", |
| | |
| | | "clientId": { |
| | | "type": "integer" |
| | | }, |
| | | "codeRule": { |
| | | "$ref": "#/definitions/code.CodeStandard" |
| | | }, |
| | | "codeStandID": { |
| | | "description": "编码id", |
| | | "type": "string" |
| | |
| | | "description": "客户类型ID", |
| | | "type": "integer" |
| | | }, |
| | | "codeRule": { |
| | | "$ref": "#/definitions/code.CodeStandard" |
| | | }, |
| | | "codeStandID": { |
| | | "description": "编码id", |
| | | "type": "string" |
| | |
| | | "clientId": { |
| | | "type": "integer" |
| | | }, |
| | | "codeRule": { |
| | | "$ref": "#/definitions/code.CodeStandard" |
| | | }, |
| | | "codeStandID": { |
| | | "description": "编码id", |
| | | "type": "string" |
| | |
| | | "clientId": { |
| | | "description": "客户id", |
| | | "type": "integer" |
| | | }, |
| | | "codeRule": { |
| | | "$ref": "#/definitions/code.CodeStandard" |
| | | }, |
| | | "codeStandID": { |
| | | "description": "编码id", |
| | |
| | | "description": "服务方式id", |
| | | "type": "integer" |
| | | }, |
| | | "severity": { |
| | | "severityId": { |
| | | "description": "严重程度id", |
| | | "type": "integer" |
| | | }, |
| | |
| | | "properties": { |
| | | "clientId": { |
| | | "type": "integer" |
| | | }, |
| | | "codeRule": { |
| | | "$ref": "#/definitions/code.CodeStandard" |
| | | }, |
| | | "codeStandID": { |
| | | "description": "编码id", |
| | |
| | | }, |
| | | "client_status_id": { |
| | | "type": "integer" |
| | | }, |
| | | "codeRule": { |
| | | "$ref": "#/definitions/code.CodeStandard" |
| | | }, |
| | | "codeStandID": { |
| | | "type": "string" |
| | |
| | | "clientId": { |
| | | "type": "integer" |
| | | }, |
| | | "codeRule": { |
| | | "$ref": "#/definitions/code.CodeStandard" |
| | | }, |
| | | "codeStandID": { |
| | | "description": "编码id", |
| | | "type": "string" |
| | | }, |
| | | "conditions": { |
| | | "type": "string" |
| | | }, |
| | | "deliverType": { |
| | | "description": "交付类型:1.一次发货,2.多次发货", |
| | | "type": "integer" |
| | | }, |
| | | "deliveryDate": { |
| | | "type": "string" |
| | |
| | | "items": { |
| | | "$ref": "#/definitions/model.Product" |
| | | } |
| | | }, |
| | | "quotationId": { |
| | | "type": "integer" |
| | | }, |
| | | "remark": { |
| | | "type": "string" |
| | |
| | | }, |
| | | "clientId": { |
| | | "type": "integer" |
| | | }, |
| | | "codeRule": { |
| | | "$ref": "#/definitions/code.CodeStandard" |
| | | }, |
| | | "codeStandID": { |
| | | "description": "编码id", |
| | |
| | | "properties": { |
| | | "clientId": { |
| | | "type": "integer" |
| | | }, |
| | | "codeRule": { |
| | | "$ref": "#/definitions/code.CodeStandard" |
| | | }, |
| | | "codeStandID": { |
| | | "description": "编码id", |
| | |
| | | "client_type_id": { |
| | | "description": "客户类型ID", |
| | | "type": "integer" |
| | | }, |
| | | "codeRule": { |
| | | "$ref": "#/definitions/code.CodeStandard" |
| | | }, |
| | | "codeStandID": { |
| | | "description": "编码id", |
| | |
| | | "client_id": { |
| | | "type": "integer" |
| | | }, |
| | | "codeRule": { |
| | | "$ref": "#/definitions/code.CodeStandard" |
| | | }, |
| | | "codeStandID": { |
| | | "description": "编码id", |
| | | "type": "string" |
| | |
| | | }, |
| | | "quotation_id": { |
| | | "type": "integer" |
| | | }, |
| | | "sendTime": { |
| | | "description": "发货时间", |
| | | "type": "string" |
| | | }, |
| | | "status_id": { |
| | | "type": "integer" |
| | |
| | | "description": "客户id", |
| | | "type": "integer" |
| | | }, |
| | | "codeStandID": { |
| | | "type": "string" |
| | | }, |
| | | "courierCompanyId": { |
| | | "description": "物流公司", |
| | | "type": "integer" |
| | |
| | | "invoiceTypeId": { |
| | | "description": "发票类型id", |
| | | "type": "integer" |
| | | }, |
| | | "number": { |
| | | "description": "发票编号", |
| | | "type": "string" |
| | | }, |
| | | "principalId": { |
| | | "description": "销售负责人id", |
| | |
| | | "properties": { |
| | | "client_id": { |
| | | "type": "integer" |
| | | }, |
| | | "codeRule": { |
| | | "$ref": "#/definitions/code.CodeStandard" |
| | | }, |
| | | "codeStandID": { |
| | | "description": "编码id", |
| | |
| | | "properties": { |
| | | "client_id": { |
| | | "type": "integer" |
| | | }, |
| | | "codeRule": { |
| | | "$ref": "#/definitions/code.CodeStandard" |
| | | }, |
| | | "codeStandID": { |
| | | "description": "编码id", |
| | |
| | | } |
| | | } |
| | | }, |
| | | "request.UpdateRefundType": { |
| | | "type": "object", |
| | | "properties": { |
| | | "id": { |
| | | "type": "integer" |
| | | }, |
| | | "name": { |
| | | "type": "string" |
| | | } |
| | | } |
| | | }, |
| | | "request.UpdateRegion": { |
| | | "type": "object", |
| | | "properties": { |
| | |
| | | }, |
| | | "client_id": { |
| | | "type": "integer" |
| | | }, |
| | | "codeRule": { |
| | | "$ref": "#/definitions/code.CodeStandard" |
| | | }, |
| | | "codeStandID": { |
| | | "description": "编码id", |
| | |
| | | "properties": { |
| | | "city_id": { |
| | | "type": "integer" |
| | | }, |
| | | "codeRule": { |
| | | "$ref": "#/definitions/code.CodeStandard" |
| | | }, |
| | | "codeStandID": { |
| | | "description": "编码id", |
| | |
| | | "clientId": { |
| | | "type": "integer" |
| | | }, |
| | | "codeRule": { |
| | | "$ref": "#/definitions/code.CodeStandard" |
| | | }, |
| | | "codeStandID": { |
| | | "description": "编码id", |
| | | "type": "string" |
| | |
| | | "description": "客户类型ID", |
| | | "type": "integer" |
| | | }, |
| | | "codeRule": { |
| | | "$ref": "#/definitions/code.CodeStandard" |
| | | }, |
| | | "codeStandID": { |
| | | "description": "编码id", |
| | | "type": "string" |
| | |
| | | "clientId": { |
| | | "type": "integer" |
| | | }, |
| | | "codeRule": { |
| | | "$ref": "#/definitions/code.CodeStandard" |
| | | }, |
| | | "codeStandID": { |
| | | "description": "编码id", |
| | | "type": "string" |
| | |
| | | "clientId": { |
| | | "description": "客户id", |
| | | "type": "integer" |
| | | }, |
| | | "codeRule": { |
| | | "$ref": "#/definitions/code.CodeStandard" |
| | | }, |
| | | "codeStandID": { |
| | | "description": "编码id", |
| | |
| | | "description": "服务方式id", |
| | | "type": "integer" |
| | | }, |
| | | "severity": { |
| | | "severityId": { |
| | | "description": "严重程度id", |
| | | "type": "integer" |
| | | }, |
| | |
| | | "properties": { |
| | | "clientId": { |
| | | "type": "integer" |
| | | }, |
| | | "codeRule": { |
| | | "$ref": "#/definitions/code.CodeStandard" |
| | | }, |
| | | "codeStandID": { |
| | | "description": "编码id", |