| | |
| | | } |
| | | } |
| | | }, |
| | | "/api/collectionProjection/add": { |
| | | "post": { |
| | | "produces": [ |
| | | "application/json" |
| | | ], |
| | | "tags": [ |
| | | "CollectionProjection" |
| | | ], |
| | | "summary": "添加收款预测", |
| | | "parameters": [ |
| | | { |
| | | "description": "查询参数", |
| | | "name": "object", |
| | | "in": "body", |
| | | "required": true, |
| | | "schema": { |
| | | "$ref": "#/definitions/request.AddCollectionProjection" |
| | | } |
| | | } |
| | | ], |
| | | "responses": { |
| | | "200": { |
| | | "description": "OK", |
| | | "schema": { |
| | | "$ref": "#/definitions/contextx.Response" |
| | | } |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | "/api/contact/add": { |
| | | "post": { |
| | | "produces": [ |
| | |
| | | "description": "销售负责人id", |
| | | "type": "integer" |
| | | }, |
| | | "products": { |
| | | "type": "array", |
| | | "items": { |
| | | "$ref": "#/definitions/model.Product" |
| | | } |
| | | }, |
| | | "sourceId": { |
| | | "description": "源单id", |
| | | "type": "integer" |
| | |
| | | "type": "object", |
| | | "properties": { |
| | | "amount": { |
| | | "type": "integer" |
| | | "type": "number" |
| | | }, |
| | | "desc": { |
| | | "type": "string" |
| | |
| | | "amountReceived": { |
| | | "description": "已收金额", |
| | | "type": "number" |
| | | }, |
| | | "amountUnInvoiced": { |
| | | "description": "未开票金额", |
| | | "type": "number" |
| | | }, |
| | | "client": { |
| | | "$ref": "#/definitions/model.Client" |
| | | }, |
| | | "clientId": { |
| | | "type": "integer" |
| | |
| | | } |
| | | } |
| | | }, |
| | | "request.AddCollectionProjection": { |
| | | "type": "object", |
| | | "properties": { |
| | | "estimated_collection_amount": { |
| | | "description": "预计收款金额", |
| | | "type": "number" |
| | | }, |
| | | "estimated_collection_time": { |
| | | "description": "预计收款时间", |
| | | "type": "string" |
| | | }, |
| | | "sale_chance_id": { |
| | | "description": "销售机会id", |
| | | "type": "integer" |
| | | } |
| | | } |
| | | }, |
| | | "request.AddContact": { |
| | | "type": "object", |
| | | "properties": { |
| | |
| | | "principalId": { |
| | | "description": "销售负责人id", |
| | | "type": "integer" |
| | | }, |
| | | "products": { |
| | | "description": "发票对应产品,从相应源单里获取", |
| | | "type": "array", |
| | | "items": { |
| | | "$ref": "#/definitions/model.Product" |
| | | } |
| | | }, |
| | | "sourceId": { |
| | | "description": "源单id", |
| | |
| | | }, |
| | | "request.UpdateInvoice": { |
| | | "type": "object", |
| | | "required": [ |
| | | "id" |
| | | ], |
| | | "properties": { |
| | | "clientId": { |
| | | "description": "客户id", |
| | |
| | | "description": "销售负责人id", |
| | | "type": "integer" |
| | | }, |
| | | "products": { |
| | | "description": "发票对应产品,从相应源单里获取", |
| | | "type": "array", |
| | | "items": { |
| | | "$ref": "#/definitions/model.Product" |
| | | } |
| | | }, |
| | | "sourceId": { |
| | | "description": "源单id", |
| | | "type": "integer" |