dev
parent
3996a6ab7d
commit
7700b5d0de
1 changed files with 39 additions and 0 deletions
@ -0,0 +1,39 @@ |
|||||||
|
package org.springblade.file.controller; |
||||||
|
|
||||||
|
import io.swagger.annotations.Api; |
||||||
|
import lombok.AllArgsConstructor; |
||||||
|
import org.springblade.core.boot.ctrl.BladeController; |
||||||
|
import org.springblade.core.tool.api.R; |
||||||
|
import org.springblade.file.entity.QualityFileAssistent; |
||||||
|
import org.springblade.file.mapper.QualityStorageFileRelMapper; |
||||||
|
import org.springblade.file.service.IQualityFileAssistentService; |
||||||
|
import org.springblade.file.service.impl.QualityFileAssistentServiceImpl; |
||||||
|
import org.springframework.web.bind.annotation.DeleteMapping; |
||||||
|
import org.springframework.web.bind.annotation.PutMapping; |
||||||
|
import org.springframework.web.bind.annotation.RequestMapping; |
||||||
|
import org.springframework.web.bind.annotation.RestController; |
||||||
|
|
||||||
|
/** |
||||||
|
* 质量文件版本管理 |
||||||
|
* @Description |
||||||
|
* @Author ytl |
||||||
|
* @Date 2022/9/23 0023 16:28 |
||||||
|
*/ |
||||||
|
@RestController |
||||||
|
@AllArgsConstructor |
||||||
|
@RequestMapping("/qualityfileassistent") |
||||||
|
@Api(value = "质量文件版本") |
||||||
|
public class QualityFileAssistentController extends BladeController { |
||||||
|
|
||||||
|
private final IQualityFileAssistentService qualityFileAssistentService; |
||||||
|
|
||||||
|
@PutMapping("/update") |
||||||
|
public R update(QualityFileAssistent file){ |
||||||
|
return R.data(qualityFileAssistentService.addOrUpdate(file)) ; |
||||||
|
} |
||||||
|
|
||||||
|
@DeleteMapping("/delete") |
||||||
|
public R delete(QualityFileAssistent file){ |
||||||
|
return R.data(qualityFileAssistentService.removeById(file)); |
||||||
|
} |
||||||
|
} |
||||||
Loading…
Reference in new issue