| | |
| | | name: |
| | | type: string |
| | | type: object |
| | | model.SaleType: |
| | | properties: |
| | | id: |
| | | type: integer |
| | | name: |
| | | type: string |
| | | type: object |
| | | model.SalesLeads: |
| | | properties: |
| | | city: |
| | |
| | | type: string |
| | | type: object |
| | | request.AddSaleStage: |
| | | properties: |
| | | name: |
| | | type: string |
| | | required: |
| | | - name |
| | | type: object |
| | | request.AddSaleType: |
| | | properties: |
| | | name: |
| | | type: string |
| | |
| | | required: |
| | | - sale_stages |
| | | type: object |
| | | request.UpdateSaleType: |
| | | properties: |
| | | id: |
| | | type: integer |
| | | name: |
| | | type: string |
| | | required: |
| | | - id |
| | | - name |
| | | type: object |
| | | request.UpdateSaleTypes: |
| | | properties: |
| | | sale_types: |
| | | items: |
| | | $ref: '#/definitions/request.UpdateSaleType' |
| | | type: array |
| | | required: |
| | | - sale_types |
| | | type: object |
| | | request.UpdateSalesLeads: |
| | | properties: |
| | | city_id: |
| | |
| | | list: |
| | | items: |
| | | $ref: '#/definitions/model.SaleStage' |
| | | type: array |
| | | type: object |
| | | response.SaleTypeResponse: |
| | | properties: |
| | | list: |
| | | items: |
| | | $ref: '#/definitions/model.SaleType' |
| | | type: array |
| | | type: object |
| | | response.SalesLeadsResponse: |
| | |
| | | summary: 更新销售阶段 |
| | | tags: |
| | | - SaleStage |
| | | /api/saleType/add: |
| | | post: |
| | | parameters: |
| | | - description: 查询参数 |
| | | in: body |
| | | name: object |
| | | required: true |
| | | schema: |
| | | $ref: '#/definitions/request.AddSaleType' |
| | | produces: |
| | | - application/json |
| | | responses: |
| | | "200": |
| | | description: OK |
| | | schema: |
| | | $ref: '#/definitions/contextx.Response' |
| | | summary: 添加销售类型 |
| | | tags: |
| | | - SaleType |
| | | /api/saleType/delete/{id}: |
| | | delete: |
| | | parameters: |
| | | - description: 查询参数 |
| | | in: path |
| | | name: id |
| | | required: true |
| | | type: integer |
| | | produces: |
| | | - application/json |
| | | responses: |
| | | "200": |
| | | description: OK |
| | | schema: |
| | | $ref: '#/definitions/contextx.Response' |
| | | summary: 删除销售类型 |
| | | tags: |
| | | - SaleType |
| | | /api/saleType/list: |
| | | get: |
| | | produces: |
| | | - application/json |
| | | responses: |
| | | "200": |
| | | description: OK |
| | | schema: |
| | | allOf: |
| | | - $ref: '#/definitions/contextx.Response' |
| | | - properties: |
| | | data: |
| | | $ref: '#/definitions/response.SaleTypeResponse' |
| | | type: object |
| | | summary: 获取销售类型列表 |
| | | tags: |
| | | - SaleType |
| | | /api/saleType/update: |
| | | put: |
| | | parameters: |
| | | - description: 查询参数 |
| | | in: body |
| | | name: object |
| | | required: true |
| | | schema: |
| | | $ref: '#/definitions/request.UpdateSaleTypes' |
| | | produces: |
| | | - application/json |
| | | responses: |
| | | "200": |
| | | description: OK |
| | | schema: |
| | | $ref: '#/definitions/contextx.Response' |
| | | summary: 更新销售类型 |
| | | tags: |
| | | - SaleType |
| | | /api/salesLeads/add: |
| | | post: |
| | | parameters: |