| | |
| | | |
| | | // Add |
| | | // |
| | | // @Tags SalesReturn |
| | | // @Tags 销售退货单 |
| | | // @Summary 添加销售退货 |
| | | // @Produce application/json |
| | | // @Param object body request.AddSalesReturnRequest true "查询参数" |
| | |
| | | |
| | | // Delete |
| | | // |
| | | // @Tags SalesReturn |
| | | // @Tags 销售退货单 |
| | | // @Summary 删除销售退货 |
| | | // @Produce application/json |
| | | // @Param id path int true "查询参数" |
| | |
| | | ctx.Ok() |
| | | } |
| | | |
| | | // BatchDelete |
| | | // @Tags 销售退货单 |
| | | // @Summary 批量删除销售退货单 |
| | | // @Produce application/json |
| | | // @Param object body request.CommonIds true "参数" |
| | | // @Success 200 {object} contextx.Response{} |
| | | // @Router /api/salesReturn/delete [delete] |
| | | func (s *SalesReturnApi) BatchDelete(c *gin.Context) { |
| | | var params request.CommonIds |
| | | ctx, ok := contextx.NewContext(c, ¶ms) |
| | | if !ok { |
| | | return |
| | | } |
| | | |
| | | errCode := salesReturnService.BatchDeleteSalesReturn(params.Ids) |
| | | if errCode != ecode.OK { |
| | | ctx.Fail(errCode) |
| | | return |
| | | } |
| | | |
| | | ctx.Ok() |
| | | } |
| | | |
| | | // Update |
| | | // |
| | | // @Tags SalesReturn |
| | | // @Tags 销售退货单 |
| | | // @Summary 更新销售退货 |
| | | // @Produce application/json |
| | | // @Param object body request.UpdateSalesReturnRequest true "查询参数" |
| | |
| | | |
| | | // List |
| | | // |
| | | // @Tags SalesReturn |
| | | // @Tags 销售退货单 |
| | | // @Summary 销售退货单列表 |
| | | // @Produce application/json |
| | | // |