| | |
| | | } |
| | | } |
| | | }, |
| | | "/api/client/checkName": { |
| | | "post": { |
| | | "produces": [ |
| | | "application/json" |
| | | ], |
| | | "tags": [ |
| | | "Client" |
| | | ], |
| | | "summary": "检查客户名称是否重复", |
| | | "parameters": [ |
| | | { |
| | | "description": "参数", |
| | | "name": "object", |
| | | "in": "body", |
| | | "required": true, |
| | | "schema": { |
| | | "$ref": "#/definitions/request.CheckClientName" |
| | | } |
| | | } |
| | | ], |
| | | "responses": { |
| | | "200": { |
| | | "description": "OK", |
| | | "schema": { |
| | | "$ref": "#/definitions/contextx.Response" |
| | | } |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | "/api/client/delete": { |
| | | "delete": { |
| | | "produces": [ |
| | |
| | | "description": "OK", |
| | | "schema": { |
| | | "$ref": "#/definitions/contextx.Response" |
| | | } |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | "/api/contactInformation/list": { |
| | | "get": { |
| | | "produces": [ |
| | | "application/json" |
| | | ], |
| | | "tags": [ |
| | | "ContactInformation" |
| | | ], |
| | | "summary": "联系方式列表", |
| | | "responses": { |
| | | "200": { |
| | | "description": "OK", |
| | | "schema": { |
| | | "allOf": [ |
| | | { |
| | | "$ref": "#/definitions/contextx.Response" |
| | | }, |
| | | { |
| | | "type": "object", |
| | | "properties": { |
| | | "data": { |
| | | "$ref": "#/definitions/response.ContactInformationResponse" |
| | | } |
| | | } |
| | | } |
| | | ] |
| | | } |
| | | } |
| | | } |
| | |
| | | "application/json" |
| | | ], |
| | | "tags": [ |
| | | "SalesRefund" |
| | | "销售退款单" |
| | | ], |
| | | "summary": "添加销售退款", |
| | | "parameters": [ |
| | |
| | | } |
| | | } |
| | | }, |
| | | "/api/salesRefund/delete": { |
| | | "delete": { |
| | | "produces": [ |
| | | "application/json" |
| | | ], |
| | | "tags": [ |
| | | "销售退款单" |
| | | ], |
| | | "summary": "批量删除销售退款单", |
| | | "parameters": [ |
| | | { |
| | | "description": "参数", |
| | | "name": "object", |
| | | "in": "body", |
| | | "required": true, |
| | | "schema": { |
| | | "$ref": "#/definitions/request.CommonIds" |
| | | } |
| | | } |
| | | ], |
| | | "responses": { |
| | | "200": { |
| | | "description": "OK", |
| | | "schema": { |
| | | "$ref": "#/definitions/contextx.Response" |
| | | } |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | "/api/salesRefund/delete/{id}": { |
| | | "delete": { |
| | | "produces": [ |
| | | "application/json" |
| | | ], |
| | | "tags": [ |
| | | "SalesRefund" |
| | | "销售退款单" |
| | | ], |
| | | "summary": "删除销售退款", |
| | | "parameters": [ |
| | |
| | | "application/json" |
| | | ], |
| | | "tags": [ |
| | | "SalesRefund" |
| | | "销售退款单" |
| | | ], |
| | | "summary": "销售退款单列表", |
| | | "parameters": [ |
| | |
| | | "application/json" |
| | | ], |
| | | "tags": [ |
| | | "SalesRefund" |
| | | "销售退款单" |
| | | ], |
| | | "summary": "更新销售退款", |
| | | "parameters": [ |
| | |
| | | "application/json" |
| | | ], |
| | | "tags": [ |
| | | "SalesReturn" |
| | | "销售退货单" |
| | | ], |
| | | "summary": "添加销售退货", |
| | | "parameters": [ |
| | |
| | | } |
| | | } |
| | | }, |
| | | "/api/salesReturn/delete": { |
| | | "delete": { |
| | | "produces": [ |
| | | "application/json" |
| | | ], |
| | | "tags": [ |
| | | "销售退货单" |
| | | ], |
| | | "summary": "批量删除销售退货单", |
| | | "parameters": [ |
| | | { |
| | | "description": "参数", |
| | | "name": "object", |
| | | "in": "body", |
| | | "required": true, |
| | | "schema": { |
| | | "$ref": "#/definitions/request.CommonIds" |
| | | } |
| | | } |
| | | ], |
| | | "responses": { |
| | | "200": { |
| | | "description": "OK", |
| | | "schema": { |
| | | "$ref": "#/definitions/contextx.Response" |
| | | } |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | "/api/salesReturn/delete/{id}": { |
| | | "delete": { |
| | | "produces": [ |
| | | "application/json" |
| | | ], |
| | | "tags": [ |
| | | "SalesReturn" |
| | | "销售退货单" |
| | | ], |
| | | "summary": "删除销售退货", |
| | | "parameters": [ |
| | |
| | | "application/json" |
| | | ], |
| | | "tags": [ |
| | | "SalesReturn" |
| | | "销售退货单" |
| | | ], |
| | | "summary": "销售退货单列表", |
| | | "parameters": [ |
| | |
| | | "application/json" |
| | | ], |
| | | "tags": [ |
| | | "SalesReturn" |
| | | "销售退货单" |
| | | ], |
| | | "summary": "更新销售退货", |
| | | "parameters": [ |
| | |
| | | "SalesRefundKeywordPriceTotal" |
| | | ] |
| | | }, |
| | | "constvar.SalesReturnKeywordType": { |
| | | "type": "string", |
| | | "enum": [ |
| | | "销售退货单编号", |
| | | "客户名称", |
| | | "退款日期", |
| | | "状态", |
| | | "退入仓库", |
| | | "应退款", |
| | | "已退款", |
| | | "销售负责人" |
| | | ], |
| | | "x-enum-varnames": [ |
| | | "SalesReturnKeywordReturnNumber", |
| | | "SalesReturnKeywordClientName", |
| | | "SalesReturnKeywordReturnDate", |
| | | "SalesReturnKeywordStatus", |
| | | "SalesReturnKeywordRepository", |
| | | "SalesReturnKeywordAmountShouldRefund", |
| | | "SalesReturnKeywordAmountHasRefund", |
| | | "SalesReturnKeywordPrincipal" |
| | | ] |
| | | }, |
| | | "constvar.SalesReturnSourceType": { |
| | | "type": "integer", |
| | | "enum": [ |
| | |
| | | "type": "integer" |
| | | }, |
| | | "wechat": { |
| | | "type": "string" |
| | | } |
| | | } |
| | | }, |
| | | "model.ContactInformation": { |
| | | "type": "object", |
| | | "properties": { |
| | | "id": { |
| | | "type": "integer" |
| | | }, |
| | | "name": { |
| | | "type": "string" |
| | | } |
| | | } |
| | |
| | | "type": "integer" |
| | | }, |
| | | "isInvoice": { |
| | | "type": "integer" |
| | | "type": "string" |
| | | }, |
| | | "member": { |
| | | "$ref": "#/definitions/model.User" |
| | |
| | | "type": "integer" |
| | | }, |
| | | "sourceType": { |
| | | "description": "来源类型(1销售明细单2服务合同3销售发票4收款计划5出库单)", |
| | | "description": "来源类型(1销售退货)", |
| | | "allOf": [ |
| | | { |
| | | "$ref": "#/definitions/constvar.RefundSourceType" |
| | |
| | | "$ref": "#/definitions/model.SalesReturnStatus" |
| | | } |
| | | ] |
| | | }, |
| | | "amountHasRefund": { |
| | | "description": "已退款金额", |
| | | "type": "number" |
| | | }, |
| | | "amountShouldRefund": { |
| | | "description": "应退款金额", |
| | | "type": "number" |
| | | }, |
| | | "client": { |
| | | "$ref": "#/definitions/model.Client" |
| | |
| | | }, |
| | | "id": { |
| | | "type": "integer" |
| | | }, |
| | | "member": { |
| | | "$ref": "#/definitions/model.User" |
| | | }, |
| | | "memberId": { |
| | | "type": "integer" |
| | |
| | | "description": "问题描述", |
| | | "type": "string" |
| | | }, |
| | | "product": { |
| | | "$ref": "#/definitions/model.Product" |
| | | "productName": { |
| | | "description": "产品名称", |
| | | "type": "string" |
| | | }, |
| | | "productId": { |
| | | "description": "产品id", |
| | | "type": "integer" |
| | | "productTypeName": { |
| | | "description": "产品分类名称", |
| | | "type": "string" |
| | | }, |
| | | "realTime": { |
| | | "description": "实际处理时间", |
| | |
| | | }, |
| | | "contact": { |
| | | "$ref": "#/definitions/request.Contact" |
| | | }, |
| | | "contact_id": { |
| | | "description": "联系人ID", |
| | | "type": "integer" |
| | | }, |
| | | "country_id": { |
| | | "type": "integer" |
| | |
| | | "contact": { |
| | | "$ref": "#/definitions/request.Contact" |
| | | }, |
| | | "contact_id": { |
| | | "description": "联系人ID", |
| | | "type": "integer" |
| | | }, |
| | | "country_id": { |
| | | "type": "integer" |
| | | }, |
| | |
| | | "description": "问题描述", |
| | | "type": "string" |
| | | }, |
| | | "productId": { |
| | | "description": "产品id", |
| | | "type": "integer" |
| | | "productName": { |
| | | "description": "产品名称", |
| | | "type": "string" |
| | | }, |
| | | "productTypeName": { |
| | | "description": "产品分类名称", |
| | | "type": "string" |
| | | }, |
| | | "realTime": { |
| | | "description": "实际处理时间", |
| | |
| | | }, |
| | | "pos": { |
| | | "description": "用户岗位", |
| | | "type": "string" |
| | | } |
| | | } |
| | | }, |
| | | "request.CheckClientName": { |
| | | "type": "object", |
| | | "properties": { |
| | | "name": { |
| | | "type": "string" |
| | | } |
| | | } |
| | |
| | | "type": "integer" |
| | | }, |
| | | "search_map": { |
| | | "description": "搜索条件: map[string]interface{}{\"name\": \"xxx\"}; {\"topic\": \"跟进主题\", \"member_name\": \"跟进人\", \"client_name\": \"客户名称\", \"client_status\": \"客户状态\", \"follow_time\": \"跟进时间\", \"next_follow_time\": \"下次跟进时间\", \"record\": \"跟进记录\", \"phone\": \"联系人电话\", \"contact_name\": \"联系人姓名\"}", |
| | | "description": "搜索条件: map[string]interface{}{\"name\": \"xxx\"}; {\"topic\": \"跟进主题\", \"member_name\": \"跟进人\", \"client_name\": \"客户名称\", \"client_status\": \"客户状态\", \"follow_time\": \"跟进时间\", \"next_follow_time\": \"下次跟进时间\", \"record\": \"跟进记录\", \"phone\": \"联系人电话\", \"contact_name\": \"联系人姓名\", \"sales_leads_id\": \"销售线索id\", \"sale_chance_id\": \"销售机会id\"}", |
| | | "type": "object", |
| | | "additionalProperties": true |
| | | } |
| | |
| | | "description": "每页大小", |
| | | "type": "integer" |
| | | }, |
| | | "searchMap": { |
| | | "search_map": { |
| | | "description": "搜索条件: map[string]interface{}{\"name\": \"xxx\"}; {\"sale_chance_id\": 销售线索id, \"client_name\": \"客户名称\", \"member_name\": \"销售负责人\", \"contact_name\": \"联系人\", \"validity_date\": \"有效期\"}", |
| | | "type": "object", |
| | | "additionalProperties": true |
| | |
| | | "properties": { |
| | | "keyword": { |
| | | "type": "string" |
| | | }, |
| | | "keywordType": { |
| | | "$ref": "#/definitions/constvar.SalesReturnKeywordType" |
| | | }, |
| | | "page": { |
| | | "description": "页码", |
| | |
| | | }, |
| | | "request.SalesRefund": { |
| | | "type": "object", |
| | | "required": [ |
| | | "sourceId", |
| | | "sourceType" |
| | | ], |
| | | "properties": { |
| | | "bankAccountId": { |
| | | "description": "账户id", |
| | |
| | | "type": "integer" |
| | | }, |
| | | "isInvoice": { |
| | | "type": "integer" |
| | | "type": "string" |
| | | }, |
| | | "memberId": { |
| | | "type": "integer" |
| | |
| | | "type": "integer" |
| | | }, |
| | | "sourceType": { |
| | | "description": "来源类型(1销售明细单2服务合同3销售发票4收款计划5出库单)", |
| | | "description": "来源类型(1销售退款单)", |
| | | "allOf": [ |
| | | { |
| | | "$ref": "#/definitions/constvar.RefundSourceType" |
| | |
| | | }, |
| | | "contact": { |
| | | "$ref": "#/definitions/request.Contact" |
| | | }, |
| | | "contact_id": { |
| | | "description": "联系人ID", |
| | | "type": "integer" |
| | | }, |
| | | "country_id": { |
| | | "type": "integer" |
| | |
| | | "contact": { |
| | | "$ref": "#/definitions/request.Contact" |
| | | }, |
| | | "contact_id": { |
| | | "description": "联系人ID", |
| | | "type": "integer" |
| | | }, |
| | | "country_id": { |
| | | "type": "integer" |
| | | }, |
| | |
| | | "description": "问题描述", |
| | | "type": "string" |
| | | }, |
| | | "productId": { |
| | | "description": "产品id", |
| | | "type": "integer" |
| | | "productName": { |
| | | "description": "产品名称", |
| | | "type": "string" |
| | | }, |
| | | "productTypeName": { |
| | | "description": "产品分类名称", |
| | | "type": "string" |
| | | }, |
| | | "realTime": { |
| | | "description": "实际处理时间", |
| | |
| | | } |
| | | } |
| | | }, |
| | | "response.ContactInformationResponse": { |
| | | "type": "object", |
| | | "properties": { |
| | | "list": { |
| | | "type": "array", |
| | | "items": { |
| | | "$ref": "#/definitions/model.ContactInformation" |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | "response.ContactResponse": { |
| | | "type": "object", |
| | | "properties": { |