| | |
| | | "in": "body", |
| | | "required": true, |
| | | "schema": { |
| | | "$ref": "#/definitions/request.DeleteserviceContract" |
| | | "$ref": "#/definitions/request.DeleteServiceContract" |
| | | } |
| | | } |
| | | ], |
| | |
| | | "tags": [ |
| | | "ServiceContract" |
| | | ], |
| | | "summary": "生成计划列表", |
| | | "summary": "服务合同列表", |
| | | "parameters": [ |
| | | { |
| | | "description": "参数", |
| | |
| | | } |
| | | }, |
| | | "/api/serviceOrder/list": { |
| | | "get": { |
| | | "post": { |
| | | "produces": [ |
| | | "application/json" |
| | | ], |
| | |
| | | "服务单管理" |
| | | ], |
| | | "summary": "获取服务单列表", |
| | | "parameters": [ |
| | | { |
| | | "description": "参数", |
| | | "name": "object", |
| | | "in": "body", |
| | | "required": true, |
| | | "schema": { |
| | | "$ref": "#/definitions/request.GetServiceOrderList" |
| | | } |
| | | } |
| | | ], |
| | | "responses": { |
| | | "200": { |
| | | "description": "OK", |
| | |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | "/api/wechatOrderStatus/add": { |
| | | "post": { |
| | | "produces": [ |
| | | "application/json" |
| | | ], |
| | | "tags": [ |
| | | "微信订单状态" |
| | | ], |
| | | "summary": "添加微信订单状态", |
| | | "parameters": [ |
| | | { |
| | | "description": "查询参数", |
| | | "name": "object", |
| | | "in": "body", |
| | | "required": true, |
| | | "schema": { |
| | | "$ref": "#/definitions/request.AddWechatOrderStatus" |
| | | } |
| | | } |
| | | ], |
| | | "responses": { |
| | | "200": { |
| | | "description": "OK", |
| | | "schema": { |
| | | "$ref": "#/definitions/contextx.Response" |
| | | } |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | "/api/wechatOrderStatus/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/wechatOrderStatus/list": { |
| | | "get": { |
| | | "produces": [ |
| | | "application/json" |
| | | ], |
| | | "tags": [ |
| | | "微信订单状态" |
| | | ], |
| | | "summary": "获取微信订单状态列表", |
| | | "parameters": [ |
| | | { |
| | | "type": "string", |
| | | "name": "keyword", |
| | | "in": "query" |
| | | }, |
| | | { |
| | | "enum": [ |
| | | "" |
| | | ], |
| | | "type": "string", |
| | | "x-enum-varnames": [ |
| | | "WechatOrderStatusKeywordCustomerName" |
| | | ], |
| | | "name": "keywordType", |
| | | "in": "query" |
| | | }, |
| | | { |
| | | "type": "integer", |
| | | "description": "页码", |
| | | "name": "page", |
| | | "in": "query" |
| | | }, |
| | | { |
| | | "type": "integer", |
| | | "description": "每页大小", |
| | | "name": "pageSize", |
| | | "in": "query" |
| | | }, |
| | | { |
| | | "enum": [ |
| | | "" |
| | | ], |
| | | "type": "string", |
| | | "x-enum-varnames": [ |
| | | "WechatOrderStatusQueryClassExpireLessThen60Days" |
| | | ], |
| | | "name": "queryClass", |
| | | "in": "query" |
| | | } |
| | | ], |
| | | "responses": { |
| | | "200": { |
| | | "description": "OK", |
| | | "schema": { |
| | | "allOf": [ |
| | | { |
| | | "$ref": "#/definitions/response.ListResponse" |
| | | }, |
| | | { |
| | | "type": "object", |
| | | "properties": { |
| | | "data": { |
| | | "type": "array", |
| | | "items": { |
| | | "$ref": "#/definitions/model.WechatOrderStatus" |
| | | } |
| | | } |
| | | } |
| | | } |
| | | ] |
| | | } |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | "/api/wechatOrderStatus/update": { |
| | | "put": { |
| | | "produces": [ |
| | | "application/json" |
| | | ], |
| | | "tags": [ |
| | | "微信订单状态" |
| | | ], |
| | | "summary": "更新微信订单状态", |
| | | "parameters": [ |
| | | { |
| | | "description": "查询参数", |
| | | "name": "object", |
| | | "in": "body", |
| | | "required": true, |
| | | "schema": { |
| | | "$ref": "#/definitions/request.UpdateWechatOrderStatus" |
| | | } |
| | | } |
| | | ], |
| | | "responses": { |
| | | "200": { |
| | | "description": "OK", |
| | | "schema": { |
| | | "$ref": "#/definitions/contextx.Response" |
| | | } |
| | | } |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | "definitions": { |
| | |
| | | "ReceiptQueryClassExpireLessThen60Days" |
| | | ] |
| | | }, |
| | | "constvar.SalesDetailsKeywordType": { |
| | | "type": "string", |
| | | "enum": [ |
| | | "客户名称", |
| | | "订单编号", |
| | | "签约日期", |
| | | "销售负责人", |
| | | "产品名称" |
| | | ], |
| | | "x-enum-varnames": [ |
| | | "SalesDetailsKeywordTypeCustomerName", |
| | | "SalesDetailsKeywordTypeOrderNumber", |
| | | "SalesDetailsKeywordTypeSignTime", |
| | | "SalesDetailsKeywordTypePrincipal", |
| | | "SalesDetailsKeywordTypeProductName" |
| | | ] |
| | | }, |
| | | "constvar.SalesStatus": { |
| | | "type": "integer", |
| | | "enum": [ |
| | | -1, |
| | | 0, |
| | | 1, |
| | | 2, |
| | | 3, |
| | | 4, |
| | | 5 |
| | | -1 |
| | | ], |
| | | "x-enum-comments": { |
| | | "SalesStatusFail": "失败", |
| | | "SalesStatusIng": "进行中", |
| | | "SalesStatusLevelUptoClient": "升级为客户", |
| | | "SalesStatusLevelUptoClientAndSalesChance": "升级为客户并且有销售机会", |
| | | "SalesStatusNew": "新建", |
| | | "SalesStatusSuccess": "成功" |
| | | "SalesStatusNew": "新建" |
| | | }, |
| | | "x-enum-varnames": [ |
| | | "SalesStatusFail", |
| | | "SalesStatusNew", |
| | | "SalesStatusIng", |
| | | "SalesStatusSuccess", |
| | | "SalesStatusLevelUptoClient", |
| | | "SalesStatusLevelUptoClientAndSalesChance" |
| | | "SalesStatusLevelUptoClientAndSalesChance", |
| | | "SalesStatusFail" |
| | | ] |
| | | }, |
| | | "constvar.ServiceContractKeywordType": { |
| | |
| | | "ServiceFollowupKeywordSatisfactionDegree" |
| | | ] |
| | | }, |
| | | "constvar.ServiceOrderKeywordType": { |
| | | "type": "string", |
| | | "enum": [ |
| | | "服务单编号", |
| | | "主题", |
| | | "客户名称", |
| | | "实际处理时间", |
| | | "服务人员", |
| | | "服务方式", |
| | | "产品类别", |
| | | "故障类别" |
| | | ], |
| | | "x-enum-varnames": [ |
| | | "ServiceOrderKeywordOrderNumber", |
| | | "ServiceOrderKeywordSubject", |
| | | "ServiceOrderKeywordClientName", |
| | | "ServiceOrderKeywordRealProcessTime", |
| | | "ServiceOrderKeywordServiceMan", |
| | | "ServiceOrderKeywordServiceType", |
| | | "ServiceOrderKeywordProductType", |
| | | "ServiceOrderKeywordFaultType" |
| | | ] |
| | | }, |
| | | "constvar.ServiceOrderQueryClass": { |
| | | "type": "string", |
| | | "enum": [ |
| | | "" |
| | | ], |
| | | "x-enum-varnames": [ |
| | | "ServiceOrderQueryClassExpireLessThen60Days" |
| | | ] |
| | | }, |
| | | "constvar.UserType": { |
| | | "type": "integer", |
| | | "enum": [ |
| | |
| | | "UserTypeSuper", |
| | | "UserTypePrimary", |
| | | "UserTypeSub" |
| | | ] |
| | | }, |
| | | "constvar.WechatOrderStatusKeywordType": { |
| | | "type": "string", |
| | | "enum": [ |
| | | "" |
| | | ], |
| | | "x-enum-varnames": [ |
| | | "WechatOrderStatusKeywordCustomerName" |
| | | ] |
| | | }, |
| | | "constvar.WechatOrderStatusQueryClass": { |
| | | "type": "string", |
| | | "enum": [ |
| | | "" |
| | | ], |
| | | "x-enum-varnames": [ |
| | | "WechatOrderStatusQueryClassExpireLessThen60Days" |
| | | ] |
| | | }, |
| | | "contextx.Response": { |
| | |
| | | "id": { |
| | | "type": "integer" |
| | | }, |
| | | "member": { |
| | | "$ref": "#/definitions/model.User" |
| | | }, |
| | | "member_id": { |
| | | "type": "integer" |
| | | }, |
| | |
| | | "principalId": { |
| | | "description": "销售负责人id", |
| | | "type": "integer" |
| | | }, |
| | | "products": { |
| | | "type": "array", |
| | | "items": { |
| | | "$ref": "#/definitions/model.Product" |
| | | } |
| | | }, |
| | | "sourceId": { |
| | | "description": "源单id", |
| | |
| | | "type": "object", |
| | | "properties": { |
| | | "amount": { |
| | | "type": "integer" |
| | | "type": "number" |
| | | }, |
| | | "desc": { |
| | | "type": "string" |
| | |
| | | "addressee": { |
| | | "type": "string" |
| | | }, |
| | | "amountInvoiced": { |
| | | "description": "已开票金额", |
| | | "type": "number" |
| | | }, |
| | | "amountReceivable": { |
| | | "description": "应收金额", |
| | | "type": "number" |
| | | }, |
| | | "amountReceived": { |
| | | "description": "已收金额", |
| | | "type": "number" |
| | | }, |
| | | "amountUnInvoiced": { |
| | | "description": "未开票金额", |
| | | "type": "number" |
| | | }, |
| | | "client": { |
| | | "$ref": "#/definitions/model.Client" |
| | | }, |
| | |
| | | "remark": { |
| | | "type": "string" |
| | | }, |
| | | "saleChance": { |
| | | "$ref": "#/definitions/model.SaleChance" |
| | | }, |
| | | "saleChanceId": { |
| | | "type": "integer" |
| | | }, |
| | |
| | | "type": "string" |
| | | }, |
| | | "wechatOrderStatus": { |
| | | "$ref": "#/definitions/model.WechatOrderStatus" |
| | | }, |
| | | "wechatOrderStatusId": { |
| | | "type": "integer" |
| | | } |
| | | } |
| | |
| | | "model.ServiceContract": { |
| | | "type": "object", |
| | | "properties": { |
| | | "SaleChance": { |
| | | "$ref": "#/definitions/model.SaleChance" |
| | | }, |
| | | "amountInvoiced": { |
| | | "description": "已开票金额", |
| | | "type": "number" |
| | |
| | | "description": "已收金额", |
| | | "type": "number" |
| | | }, |
| | | "amountUnInvoiced": { |
| | | "description": "未开票金额", |
| | | "type": "number" |
| | | }, |
| | | "client": { |
| | | "$ref": "#/definitions/model.Client" |
| | | }, |
| | | "clientId": { |
| | | "type": "integer" |
| | | }, |
| | | "contactId": { |
| | | "type": "integer" |
| | | }, |
| | | "contractId": { |
| | | "type": "integer" |
| | | }, |
| | | "endTime": { |
| | |
| | | "$ref": "#/definitions/model.Product" |
| | | } |
| | | }, |
| | | "quotation": { |
| | | "$ref": "#/definitions/model.Quotation" |
| | | }, |
| | | "quotationId": { |
| | | "type": "integer" |
| | | }, |
| | |
| | | "saleChanceId": { |
| | | "type": "integer" |
| | | }, |
| | | "salesDetails": { |
| | | "$ref": "#/definitions/model.SalesDetails" |
| | | }, |
| | | "salesDetailsId": { |
| | | "type": "integer" |
| | | }, |
| | | "serviceContractStatus": { |
| | | "$ref": "#/definitions/model.ServiceContractStatus" |
| | | }, |
| | | "serviceContractStatusId": { |
| | | "type": "integer" |
| | | }, |
| | | "serviceContractType": { |
| | | "$ref": "#/definitions/model.ServiceContractType" |
| | | }, |
| | | "serviceContractTypeId": { |
| | | "type": "integer" |
| | |
| | | "model.ServiceFollowup": { |
| | | "type": "object", |
| | | "properties": { |
| | | "Member": { |
| | | "$ref": "#/definitions/model.User" |
| | | }, |
| | | "client": { |
| | | "$ref": "#/definitions/model.Client" |
| | | }, |
| | | "clientId": { |
| | | "type": "integer" |
| | | }, |
| | | "contact": { |
| | | "$ref": "#/definitions/model.Contact" |
| | | }, |
| | | "contactId": { |
| | | "type": "integer" |
| | |
| | | "id": { |
| | | "type": "integer" |
| | | }, |
| | | "isVisit": { |
| | | "$ref": "#/definitions/model.IsVisit" |
| | | }, |
| | | "isVisitId": { |
| | | "type": "integer" |
| | | }, |
| | |
| | | }, |
| | | "number": { |
| | | "type": "string" |
| | | }, |
| | | "oldMember": { |
| | | "$ref": "#/definitions/model.User" |
| | | }, |
| | | "oldMemberId": { |
| | | "type": "integer" |
| | |
| | | "remark": { |
| | | "type": "string" |
| | | }, |
| | | "satisfaction": { |
| | | "$ref": "#/definitions/model.Satisfaction" |
| | | }, |
| | | "satisfactionId": { |
| | | "type": "integer" |
| | | }, |
| | |
| | | "serviceOrder": { |
| | | "$ref": "#/definitions/model.ServiceOrder" |
| | | }, |
| | | "solveRate": { |
| | | "$ref": "#/definitions/model.SolveRate" |
| | | }, |
| | | "solveRateId": { |
| | | "type": "integer" |
| | | }, |
| | | "timelyRate": { |
| | | "$ref": "#/definitions/model.TimelyRate" |
| | | }, |
| | | "timelyRateId": { |
| | | "type": "integer" |
| | |
| | | "type": "string" |
| | | }, |
| | | "uuid": { |
| | | "type": "string" |
| | | } |
| | | } |
| | | }, |
| | | "model.WechatOrderStatus": { |
| | | "type": "object", |
| | | "properties": { |
| | | "id": { |
| | | "type": "integer" |
| | | }, |
| | | "name": { |
| | | "type": "string" |
| | | } |
| | | } |
| | |
| | | "description": "销售负责人id", |
| | | "type": "integer" |
| | | }, |
| | | "products": { |
| | | "description": "发票对应产品,从相应源单里获取", |
| | | "type": "array", |
| | | "items": { |
| | | "$ref": "#/definitions/model.Product" |
| | | } |
| | | }, |
| | | "sourceId": { |
| | | "description": "源单id", |
| | | "type": "integer" |
| | |
| | | "request.AddSalesDetails": { |
| | | "type": "object", |
| | | "properties": { |
| | | "salesDetails": { |
| | | "$ref": "#/definitions/request.SalesDetails" |
| | | "address": { |
| | | "type": "string" |
| | | }, |
| | | "addressee": { |
| | | "type": "string" |
| | | }, |
| | | "clientId": { |
| | | "type": "integer" |
| | | }, |
| | | "conditions": { |
| | | "type": "string" |
| | | }, |
| | | "deliveryDate": { |
| | | "type": "string" |
| | | }, |
| | | "logisticCompany": { |
| | | "type": "string" |
| | | }, |
| | | "logisticCost": { |
| | | "type": "number" |
| | | }, |
| | | "logisticNumber": { |
| | | "type": "string" |
| | | }, |
| | | "memberId": { |
| | | "type": "integer" |
| | | }, |
| | | "number": { |
| | | "type": "string" |
| | | }, |
| | | "phone": { |
| | | "type": "string" |
| | | }, |
| | | "products": { |
| | | "type": "array", |
| | | "items": { |
| | | "$ref": "#/definitions/model.Product" |
| | | } |
| | | }, |
| | | "remark": { |
| | | "type": "string" |
| | | }, |
| | | "saleChanceId": { |
| | | "type": "integer" |
| | | }, |
| | | "saleType": { |
| | | "type": "integer" |
| | | }, |
| | | "signTime": { |
| | | "type": "string" |
| | | }, |
| | | "wechatOrderStatusId": { |
| | | "type": "integer" |
| | | } |
| | | } |
| | | }, |
| | |
| | | }, |
| | | "request.AddServiceContract": { |
| | | "type": "object", |
| | | "required": [ |
| | | "memberId" |
| | | ], |
| | | "properties": { |
| | | "clientId": { |
| | | "type": "integer" |
| | | }, |
| | | "contactId": { |
| | | "type": "integer" |
| | | }, |
| | | "contractId": { |
| | | "type": "integer" |
| | | }, |
| | | "endTime": { |
| | |
| | | "type": "string" |
| | | }, |
| | | "saleChanceId": { |
| | | "type": "integer" |
| | | }, |
| | | "salesDetailsId": { |
| | | "type": "integer" |
| | | }, |
| | | "serviceTimes": { |
| | |
| | | } |
| | | } |
| | | }, |
| | | "request.AddWechatOrderStatus": { |
| | | "type": "object", |
| | | "properties": { |
| | | "id": { |
| | | "type": "integer" |
| | | }, |
| | | "name": { |
| | | "type": "string" |
| | | } |
| | | } |
| | | }, |
| | | "request.Assign": { |
| | | "type": "object", |
| | | "properties": { |
| | |
| | | "type": "integer" |
| | | }, |
| | | "type": { |
| | | "description": "类型: client: 客户; salesLead: 销售线索; contact: 联系人; followRecord: 跟进记录", |
| | | "type": "string" |
| | | } |
| | | } |
| | |
| | | } |
| | | } |
| | | }, |
| | | "request.DeleteServiceContract": { |
| | | "type": "object", |
| | | "properties": { |
| | | "ids": { |
| | | "type": "array", |
| | | "items": { |
| | | "type": "integer" |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | "request.DeleteServiceFeeManage": { |
| | | "type": "object", |
| | | "properties": { |
| | |
| | | "userId": { |
| | | "description": "用户ID", |
| | | "type": "string" |
| | | } |
| | | } |
| | | }, |
| | | "request.DeleteserviceContract": { |
| | | "type": "object", |
| | | "properties": { |
| | | "ids": { |
| | | "type": "array", |
| | | "items": { |
| | | "type": "integer" |
| | | } |
| | | } |
| | | } |
| | | }, |
| | |
| | | "request.GetContactList": { |
| | | "type": "object", |
| | | "properties": { |
| | | "keyword": { |
| | | "type": "string" |
| | | }, |
| | | "page": { |
| | | "description": "页码", |
| | | "type": "integer" |
| | |
| | | "pageSize": { |
| | | "description": "每页大小", |
| | | "type": "integer" |
| | | }, |
| | | "search_map": { |
| | | "description": "搜索条件: map[string]interface{}{\"name\": \"xxx\"}; {\"name\": \"客户名称\", \"phone\": \"手机号码\", \"detail_address\":\"详细地址\", \"next_visit_time\":\"下回回访日期\", \"member_name\": \"销售负责人\", \"client_status\": \"客户状态\", \"client_level\": \"重要级别\", \"is_first\": \"是否是首要联系人\"}", |
| | | "type": "object", |
| | | "additionalProperties": true |
| | | } |
| | | } |
| | | }, |
| | |
| | | "request.GetFollowRecordList": { |
| | | "type": "object", |
| | | "properties": { |
| | | "keyword": { |
| | | "type": "string" |
| | | }, |
| | | "page": { |
| | | "description": "页码", |
| | | "type": "integer" |
| | |
| | | "pageSize": { |
| | | "description": "每页大小", |
| | | "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\": \"联系人姓名\"}", |
| | | "type": "object", |
| | | "additionalProperties": true |
| | | } |
| | | } |
| | | }, |
| | |
| | | "properties": { |
| | | "keyword": { |
| | | "type": "string" |
| | | }, |
| | | "keywordType": { |
| | | "$ref": "#/definitions/constvar.SalesDetailsKeywordType" |
| | | }, |
| | | "page": { |
| | | "description": "页码", |
| | |
| | | "pageSize": { |
| | | "description": "每页大小", |
| | | "type": "integer" |
| | | } |
| | | } |
| | | }, |
| | | "request.GetServiceOrderList": { |
| | | "type": "object", |
| | | "properties": { |
| | | "keyword": { |
| | | "type": "string" |
| | | }, |
| | | "keywordType": { |
| | | "$ref": "#/definitions/constvar.ServiceOrderKeywordType" |
| | | }, |
| | | "page": { |
| | | "description": "页码", |
| | | "type": "integer" |
| | | }, |
| | | "pageSize": { |
| | | "description": "每页大小", |
| | | "type": "integer" |
| | | }, |
| | | "queryClass": { |
| | | "$ref": "#/definitions/constvar.ServiceOrderQueryClass" |
| | | } |
| | | } |
| | | }, |
| | |
| | | "signTime": { |
| | | "type": "string" |
| | | }, |
| | | "wechatOrderStatus": { |
| | | "wechatOrderStatusId": { |
| | | "type": "integer" |
| | | } |
| | | } |
| | |
| | | }, |
| | | "request.UpdateInvoice": { |
| | | "type": "object", |
| | | "required": [ |
| | | "id" |
| | | ], |
| | | "properties": { |
| | | "clientId": { |
| | | "description": "客户id", |
| | |
| | | "principalId": { |
| | | "description": "销售负责人id", |
| | | "type": "integer" |
| | | }, |
| | | "products": { |
| | | "description": "发票对应产品,从相应源单里获取", |
| | | "type": "array", |
| | | "items": { |
| | | "$ref": "#/definitions/model.Product" |
| | | } |
| | | }, |
| | | "sourceId": { |
| | | "description": "源单id", |
| | |
| | | }, |
| | | "request.UpdateServiceContract": { |
| | | "type": "object", |
| | | "required": [ |
| | | "memberId" |
| | | ], |
| | | "properties": { |
| | | "clientId": { |
| | | "type": "integer" |
| | | }, |
| | | "contactId": { |
| | | "type": "integer" |
| | | }, |
| | | "contractId": { |
| | | "type": "integer" |
| | | }, |
| | | "endTime": { |
| | |
| | | "type": "string" |
| | | }, |
| | | "saleChanceId": { |
| | | "type": "integer" |
| | | }, |
| | | "salesDetailsId": { |
| | | "type": "integer" |
| | | }, |
| | | "serviceTimes": { |
| | |
| | | } |
| | | } |
| | | }, |
| | | "request.UpdateWechatOrderStatus": { |
| | | "type": "object", |
| | | "properties": { |
| | | "id": { |
| | | "type": "integer" |
| | | }, |
| | | "name": { |
| | | "type": "string" |
| | | } |
| | | } |
| | | }, |
| | | "response.AccountIdResponse": { |
| | | "type": "object", |
| | | "properties": { |