| | |
| | | "tags": [ |
| | | "OrderManage" |
| | | ], |
| | | "summary": "添加订单", |
| | | "summary": "添加工单", |
| | | "parameters": [ |
| | | { |
| | | "description": "查询参数", |
| | |
| | | "tags": [ |
| | | "OrderManage" |
| | | ], |
| | | "summary": "删除订单", |
| | | "summary": "删除工单", |
| | | "parameters": [ |
| | | { |
| | | "type": "integer", |
| | |
| | | "tags": [ |
| | | "OrderManage" |
| | | ], |
| | | "summary": "订单列表", |
| | | "summary": "工单列表", |
| | | "responses": { |
| | | "200": { |
| | | "description": "OK", |
| | |
| | | "tags": [ |
| | | "OrderManage" |
| | | ], |
| | | "summary": "更新订单", |
| | | "summary": "更新工单", |
| | | "parameters": [ |
| | | { |
| | | "description": "查询参数", |
| | |
| | | "required": true, |
| | | "schema": { |
| | | "$ref": "#/definitions/request.UpdateRegularCustomersList" |
| | | } |
| | | } |
| | | ], |
| | | "responses": { |
| | | "200": { |
| | | "description": "OK", |
| | | "schema": { |
| | | "$ref": "#/definitions/contextx.Response" |
| | | } |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | "/api/reportSource/add": { |
| | | "post": { |
| | | "produces": [ |
| | | "application/json" |
| | | ], |
| | | "tags": [ |
| | | "ReportSource" |
| | | ], |
| | | "summary": "添加报表来源", |
| | | "parameters": [ |
| | | { |
| | | "description": "查询参数", |
| | | "name": "object", |
| | | "in": "body", |
| | | "required": true, |
| | | "schema": { |
| | | "$ref": "#/definitions/request.AddReportSource" |
| | | } |
| | | } |
| | | ], |
| | | "responses": { |
| | | "200": { |
| | | "description": "OK", |
| | | "schema": { |
| | | "$ref": "#/definitions/contextx.Response" |
| | | } |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | "/api/reportSource/delete/{id}": { |
| | | "delete": { |
| | | "produces": [ |
| | | "application/json" |
| | | ], |
| | | "tags": [ |
| | | "ReportSource" |
| | | ], |
| | | "summary": "删除报表来源", |
| | | "parameters": [ |
| | | { |
| | | "type": "integer", |
| | | "description": "查询参数", |
| | | "name": "id", |
| | | "in": "path", |
| | | "required": true |
| | | } |
| | | ], |
| | | "responses": { |
| | | "200": { |
| | | "description": "OK", |
| | | "schema": { |
| | | "$ref": "#/definitions/contextx.Response" |
| | | } |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | "/api/reportSource/list": { |
| | | "get": { |
| | | "produces": [ |
| | | "application/json" |
| | | ], |
| | | "tags": [ |
| | | "ReportSource" |
| | | ], |
| | | "summary": "获取报表来源列表", |
| | | "responses": { |
| | | "200": { |
| | | "description": "OK", |
| | | "schema": { |
| | | "allOf": [ |
| | | { |
| | | "$ref": "#/definitions/contextx.Response" |
| | | }, |
| | | { |
| | | "type": "object", |
| | | "properties": { |
| | | "data": { |
| | | "$ref": "#/definitions/response.ReportSourceResponse" |
| | | } |
| | | } |
| | | } |
| | | ] |
| | | } |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | "/api/reportSource/update": { |
| | | "put": { |
| | | "produces": [ |
| | | "application/json" |
| | | ], |
| | | "tags": [ |
| | | "ReportSource" |
| | | ], |
| | | "summary": "更新报表来源", |
| | | "parameters": [ |
| | | { |
| | | "description": "查询参数", |
| | | "name": "object", |
| | | "in": "body", |
| | | "required": true, |
| | | "schema": { |
| | | "$ref": "#/definitions/request.UpdateReportSources" |
| | | } |
| | | } |
| | | ], |
| | |
| | | } |
| | | } |
| | | }, |
| | | "model.ReportSource": { |
| | | "type": "object", |
| | | "properties": { |
| | | "id": { |
| | | "type": "integer" |
| | | }, |
| | | "name": { |
| | | "type": "string" |
| | | } |
| | | } |
| | | }, |
| | | "model.SaleChance": { |
| | | "type": "object", |
| | | "properties": { |
| | |
| | | } |
| | | }, |
| | | "request.AddRegularCustomers": { |
| | | "type": "object", |
| | | "required": [ |
| | | "name" |
| | | ], |
| | | "properties": { |
| | | "name": { |
| | | "type": "string" |
| | | } |
| | | } |
| | | }, |
| | | "request.AddReportSource": { |
| | | "type": "object", |
| | | "required": [ |
| | | "name" |
| | |
| | | } |
| | | } |
| | | }, |
| | | "request.UpdateReportSource": { |
| | | "type": "object", |
| | | "required": [ |
| | | "id", |
| | | "name" |
| | | ], |
| | | "properties": { |
| | | "id": { |
| | | "type": "integer" |
| | | }, |
| | | "name": { |
| | | "type": "string" |
| | | } |
| | | } |
| | | }, |
| | | "request.UpdateReportSources": { |
| | | "type": "object", |
| | | "required": [ |
| | | "report_source" |
| | | ], |
| | | "properties": { |
| | | "report_source": { |
| | | "type": "array", |
| | | "items": { |
| | | "$ref": "#/definitions/request.UpdateReportSource" |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | "request.UpdateSaleChance": { |
| | | "type": "object", |
| | | "required": [ |
| | |
| | | "$ref": "#/definitions/model.RegularCustomers" |
| | | } |
| | | }, |
| | | "reportSource": { |
| | | "description": "报表来源", |
| | | "type": "array", |
| | | "items": { |
| | | "$ref": "#/definitions/model.ReportSource" |
| | | } |
| | | }, |
| | | "sale_stage": { |
| | | "description": "销售阶段", |
| | | "type": "array", |
| | |
| | | } |
| | | } |
| | | }, |
| | | "response.ReportSourceResponse": { |
| | | "type": "object", |
| | | "properties": { |
| | | "list": { |
| | | "type": "array", |
| | | "items": { |
| | | "$ref": "#/definitions/model.ReportSource" |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | "response.SaleChanceResponse": { |
| | | "type": "object", |
| | | "properties": { |