package com.whyc.controller; import com.whyc.dto.Response; import com.whyc.pojo.AttachLock; import com.whyc.service.AttachLockService; import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; import java.util.List; @Api(tags = "物料管理") @RestController @RequestMapping("attachLock") public class AttachLockController { @Autowired private AttachLockService service; @ApiOperation(value = "修改附件锁定状态") @PostMapping("updateAttachLock") public Response updateAttachLock(@RequestBody List list){ return service.attachLock(list); } @ApiOperation(tags = "产品管理",value = "修改丝印锁定状态") @PostMapping("updateProductLock") public Response updateProductLock(@RequestBody List list){ return service.updateProductLock(list); } }