| | |
| | | name: |
| | | type: string |
| | | type: object |
| | | model.SalesDetails: |
| | | properties: |
| | | address: |
| | | type: string |
| | | addressee: |
| | | type: string |
| | | clientId: |
| | | type: integer |
| | | conditions: |
| | | type: string |
| | | deliveryDate: |
| | | type: string |
| | | id: |
| | | type: integer |
| | | memberId: |
| | | type: integer |
| | | number: |
| | | type: string |
| | | phone: |
| | | type: string |
| | | products: |
| | | items: |
| | | $ref: '#/definitions/model.Product' |
| | | type: array |
| | | remark: |
| | | type: string |
| | | saleChanceId: |
| | | type: integer |
| | | saleType: |
| | | type: integer |
| | | signTime: |
| | | type: string |
| | | wechatOrderStatus: |
| | | type: integer |
| | | type: object |
| | | model.SalesLeads: |
| | | properties: |
| | | city: |
| | |
| | | type: integer |
| | | name: |
| | | type: string |
| | | type: object |
| | | model.SubOrder: |
| | | properties: |
| | | clientId: |
| | | type: integer |
| | | id: |
| | | type: integer |
| | | masterOrderId: |
| | | type: integer |
| | | memberId: |
| | | type: integer |
| | | number: |
| | | type: string |
| | | products: |
| | | items: |
| | | $ref: '#/definitions/model.Product' |
| | | type: array |
| | | type: object |
| | | model.User: |
| | | properties: |
| | |
| | | required: |
| | | - name |
| | | type: object |
| | | request.AddSalesDetails: |
| | | properties: |
| | | salesDetails: |
| | | $ref: '#/definitions/request.SalesDetails' |
| | | type: object |
| | | request.AddSalesLeads: |
| | | properties: |
| | | city_id: |
| | |
| | | userName: |
| | | example: 用户名 |
| | | type: string |
| | | type: object |
| | | request.SalesDetails: |
| | | properties: |
| | | address: |
| | | type: string |
| | | addressee: |
| | | type: string |
| | | clientId: |
| | | type: integer |
| | | conditions: |
| | | type: string |
| | | deliveryDate: |
| | | type: string |
| | | id: |
| | | type: integer |
| | | memberId: |
| | | type: integer |
| | | number: |
| | | type: string |
| | | phone: |
| | | type: string |
| | | products: |
| | | items: |
| | | $ref: '#/definitions/model.Product' |
| | | type: array |
| | | remark: |
| | | type: string |
| | | saleChanceId: |
| | | type: integer |
| | | saleType: |
| | | type: integer |
| | | signTime: |
| | | type: string |
| | | wechatOrderStatus: |
| | | type: integer |
| | | type: object |
| | | request.SetCity: |
| | | properties: |
| | |
| | | required: |
| | | - sale_types |
| | | type: object |
| | | request.UpdateSalesDetails: |
| | | properties: |
| | | id: |
| | | type: integer |
| | | salesDetails: |
| | | $ref: '#/definitions/request.SalesDetails' |
| | | type: object |
| | | request.UpdateSalesLeads: |
| | | properties: |
| | | city_id: |
| | |
| | | $ref: '#/definitions/model.SaleType' |
| | | type: array |
| | | type: object |
| | | response.SalesDetailsResponse: |
| | | properties: |
| | | list: |
| | | items: |
| | | $ref: '#/definitions/model.SalesDetails' |
| | | type: array |
| | | type: object |
| | | response.SalesLeadsResponse: |
| | | properties: |
| | | list: |
| | |
| | | list: |
| | | items: |
| | | $ref: '#/definitions/model.SalesSources' |
| | | type: array |
| | | type: object |
| | | response.SubOrderResponse: |
| | | properties: |
| | | list: |
| | | items: |
| | | $ref: '#/definitions/model.SubOrder' |
| | | type: array |
| | | type: object |
| | | response.UserResponse: |
| | |
| | | summary: 更新销售类型 |
| | | tags: |
| | | - SaleType |
| | | /api/salesDetails/add: |
| | | post: |
| | | parameters: |
| | | - description: 查询参数 |
| | | in: body |
| | | name: object |
| | | required: true |
| | | schema: |
| | | $ref: '#/definitions/request.AddSalesDetails' |
| | | produces: |
| | | - application/json |
| | | responses: |
| | | "200": |
| | | description: OK |
| | | schema: |
| | | $ref: '#/definitions/contextx.Response' |
| | | summary: 添加销售明细 |
| | | tags: |
| | | - SalesDetails |
| | | /api/salesDetails/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: |
| | | - SalesDetails |
| | | /api/salesDetails/list: |
| | | get: |
| | | produces: |
| | | - application/json |
| | | responses: |
| | | "200": |
| | | description: OK |
| | | schema: |
| | | allOf: |
| | | - $ref: '#/definitions/contextx.Response' |
| | | - properties: |
| | | data: |
| | | $ref: '#/definitions/response.SalesDetailsResponse' |
| | | type: object |
| | | summary: 获取销售明细列表 |
| | | tags: |
| | | - SalesDetails |
| | | /api/salesDetails/update: |
| | | put: |
| | | parameters: |
| | | - description: 查询参数 |
| | | in: body |
| | | name: object |
| | | required: true |
| | | schema: |
| | | $ref: '#/definitions/request.UpdateSalesDetails' |
| | | produces: |
| | | - application/json |
| | | responses: |
| | | "200": |
| | | description: OK |
| | | schema: |
| | | $ref: '#/definitions/contextx.Response' |
| | | summary: 更新销售明细 |
| | | tags: |
| | | - SalesDetails |
| | | /api/salesLeads/add: |
| | | post: |
| | | parameters: |
| | |
| | | "200": |
| | | description: OK |
| | | schema: |
| | | $ref: '#/definitions/contextx.Response' |
| | | allOf: |
| | | - $ref: '#/definitions/contextx.Response' |
| | | - properties: |
| | | data: |
| | | $ref: '#/definitions/response.SubOrderResponse' |
| | | type: object |
| | | summary: 获取子订单列表 |
| | | tags: |
| | | - SubOrder |