zhangqian
2023-08-16 4e3ea78e188813511a59dccd95066c71850edd6a
api/v1/salesReturn.go
@@ -14,7 +14,7 @@
// Add
//
//   @Tags      SalesReturn
//   @Tags      销售退货单
//   @Summary   添加销售退货
//   @Produce   application/json
//   @Param      object   body      request.AddSalesReturnRequest   true   "查询参数"
@@ -44,7 +44,7 @@
// Delete
//
//   @Tags      SalesReturn
//   @Tags      销售退货单
//   @Summary   删除销售退货
//   @Produce   application/json
//   @Param      id   path      int   true   "查询参数"
@@ -66,9 +66,32 @@
   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, &params)
   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   "查询参数"
@@ -126,7 +149,7 @@
// List
//
//   @Tags      SalesReturn
//   @Tags      销售退货单
//   @Summary   销售退货单列表
//   @Produce   application/json
//