| | |
| | | // @Summary 添加销售明细 |
| | | // @Produce application/json |
| | | // @Param object body request.AddSalesDetails true "查询参数" |
| | | // @Success 200 {object} contextx.Response{} |
| | | // @Success 200 {object} contextx.Response{data=request.AddSalesDetails} |
| | | // @Router /api/salesDetails/add [post] |
| | | func (s *SalesDetailsApi) Add(c *gin.Context) { |
| | | var params request.AddSalesDetails |
| | |
| | | return |
| | | } |
| | | |
| | | ctx.Ok() |
| | | ctx.OkWithDetailed(salesDetails) |
| | | } |
| | | |
| | | // Delete |
| | |
| | | "200": { |
| | | "description": "OK", |
| | | "schema": { |
| | | "$ref": "#/definitions/contextx.Response" |
| | | "allOf": [ |
| | | { |
| | | "$ref": "#/definitions/contextx.Response" |
| | | }, |
| | | { |
| | | "type": "object", |
| | | "properties": { |
| | | "data": { |
| | | "$ref": "#/definitions/request.AddSalesDetails" |
| | | } |
| | | } |
| | | } |
| | | ] |
| | | } |
| | | } |
| | | } |
| | |
| | | "200": { |
| | | "description": "OK", |
| | | "schema": { |
| | | "$ref": "#/definitions/contextx.Response" |
| | | "allOf": [ |
| | | { |
| | | "$ref": "#/definitions/contextx.Response" |
| | | }, |
| | | { |
| | | "type": "object", |
| | | "properties": { |
| | | "data": { |
| | | "$ref": "#/definitions/request.AddSalesDetails" |
| | | } |
| | | } |
| | | } |
| | | ] |
| | | } |
| | | } |
| | | } |
| | |
| | | "200": |
| | | description: OK |
| | | schema: |
| | | $ref: '#/definitions/contextx.Response' |
| | | allOf: |
| | | - $ref: '#/definitions/contextx.Response' |
| | | - properties: |
| | | data: |
| | | $ref: '#/definitions/request.AddSalesDetails' |
| | | type: object |
| | | summary: 添加销售明细 |
| | | tags: |
| | | - SalesDetails |