cloud-etl-engine/cloud-etl-server/src/main/java/com/muyu/controller/EngineLevelController.java

77 lines
1.9 KiB
Java
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

package com.muyu.controller;
import com.muyu.common.core.utils.poi.ExcelUtil;
import com.muyu.domain.EngineLevelEntity;
import com.muyu.domain.EngineMaintenance;
import com.muyu.domain.EngineVersion;
import com.muyu.domain.constants.Result;
import com.muyu.service.EngineLevelService;
import jakarta.servlet.http.HttpServletResponse;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import java.util.List;
/**
* @Authorqdm
* @Packagecom.muyu.controller
* @Projectcloud-etl-engine
* @nameEngineLevel
* @Date2024/8/25 18:51
*/
@RestController
@RequestMapping("/level")
public class EngineLevelController {
@Autowired
EngineLevelService engineLevelService;
/**
* 查询
*/
@PostMapping("/selectLevelList")
public List<EngineLevelEntity> selectLevelList() {
return engineLevelService.selectLevelLists();
}
/**
* 新增
*/
@PostMapping("/insert")
public Result<EngineLevelEntity> insert(EngineLevelEntity engineLevelEntity) {
return engineLevelService.insert(engineLevelEntity);
}
/**
* 修改
*/
@PostMapping("/update")
public Result<EngineLevelEntity> update(EngineLevelEntity engineLevelEntity) {
return engineLevelService.update(engineLevelEntity);
}
/**
* 删除 id
*/
@PostMapping("/delete/{id}")
public Result delete(@PathVariable Integer id) {
return engineLevelService.delete(id);
}
/**
* 批量删除 id
*/
@PostMapping("/deleteBatch")
public Result deleteBatch(@RequestParam("id") Integer[] ids) {
return engineLevelService.deleteBatch(ids);
}
/**
* 回显 id
*/
@PostMapping("/selectById/{id}")
public Result selectById(@PathVariable Integer id) {
return engineLevelService.selectById(id);
}
}