package com.ruoyi.basic.controller; import com.ruoyi.basic.pojo.IfsInventoryQuantity; import com.ruoyi.basic.service.IfsInventoryQuantityService; import com.ruoyi.common.core.domain.Result; import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; import lombok.AllArgsConstructor; import org.springframework.web.bind.annotation.*; @Api(tags = "原辅材下单") @AllArgsConstructor @RestController @RequestMapping("/ifsInventoryQuantity") public class IfsInventoryQuantityController { private IfsInventoryQuantityService ifsInventoryQuantityService; @PostMapping("/addIfsInventory") public Result addIfsInventory(@RequestBody IfsInventoryQuantity ifsInventoryQuantity) { return Result.success(ifsInventoryQuantityService.addIfsInventory(ifsInventoryQuantity)); } @ApiOperation(value = "删除") @DeleteMapping("/delIfsInventory") public Result delIfsInventory(Integer id) { return Result.success(ifsInventoryQuantityService.delIfsInventory(id)); } }