Xiajijian
2025-10-11 e44aa1ce6be43c3733434426c2130d955e1024ce
ard-admin/src/main/java/com/ard/web/controller/data/ArdServerController.java
File was renamed from ard-admin/src/main/java/com/ard/web/controller/data/ArdServerManagementController.java
@@ -3,8 +3,8 @@
import java.util.List;
import javax.servlet.http.HttpServletResponse;
import com.ard.work.domain.data.ServerInfo;
import com.ard.work.service.IArdServerManagementService;
import com.ard.work.domain.entity.ArdServerInfo;
import com.ard.work.service.IArdServerService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.security.access.prepost.PreAuthorize;
@@ -33,10 +33,10 @@
@Api(tags = "服务器管理接口")
@RestController
@RequestMapping("/data/management")
public class ArdServerManagementController extends BaseController {
public class ArdServerController extends BaseController {
    @Autowired
    private IArdServerManagementService ardServerManagementService;
    private IArdServerService ardServerManagementService;
    /**
     * 查询服务器管理列表
@@ -44,9 +44,9 @@
    @ApiOperation("查询服务器管理列表")
    @PreAuthorize("@ss.hasPermi('system:management:list')")
    @GetMapping("/list")
    public TableDataInfo list(ServerInfo serverInfo) {
    public TableDataInfo list(ArdServerInfo ardServerInfo) {
        startPage();
        List<ServerInfo> list = ardServerManagementService.selectArdServerManagementList(serverInfo);
        List<ArdServerInfo> list = ardServerManagementService.selectArdServerManagementList(ardServerInfo);
        return getDataTable(list);
    }
@@ -57,9 +57,9 @@
    @PreAuthorize("@ss.hasPermi('system:management:export')")
    @Log(title = "服务器管理", businessType = BusinessType.EXPORT)
    @PostMapping("/export")
    public void export(HttpServletResponse response, ServerInfo serverInfo) {
        List<ServerInfo> list = ardServerManagementService.selectArdServerManagementList(serverInfo);
        ExcelUtil<ServerInfo> util = new ExcelUtil<ServerInfo>(ServerInfo.class);
    public void export(HttpServletResponse response, ArdServerInfo ardServerInfo) {
        List<ArdServerInfo> list = ardServerManagementService.selectArdServerManagementList(ardServerInfo);
        ExcelUtil<ArdServerInfo> util = new ExcelUtil<ArdServerInfo>(ArdServerInfo.class);
        util.exportExcel(response, list, "服务器管理数据");
    }
@@ -80,8 +80,8 @@
    @PreAuthorize("@ss.hasPermi('system:management:add')")
    @Log(title = "服务器管理", businessType = BusinessType.INSERT)
    @PostMapping
    public AjaxResult add(@RequestBody ServerInfo serverInfo) {
        return toAjax(ardServerManagementService.insertArdServerManagement(serverInfo));
    public AjaxResult add(@RequestBody ArdServerInfo ardServerInfo) {
        return toAjax(ardServerManagementService.insertArdServerManagement(ardServerInfo));
    }
    /**
@@ -91,8 +91,8 @@
    @PreAuthorize("@ss.hasPermi('system:management:edit')")
    @Log(title = "服务器管理", businessType = BusinessType.UPDATE)
    @PutMapping
    public AjaxResult edit(@RequestBody ServerInfo serverInfo) {
        return toAjax(ardServerManagementService.updateArdServerManagement(serverInfo));
    public AjaxResult edit(@RequestBody ArdServerInfo ardServerInfo) {
        return toAjax(ardServerManagementService.updateArdServerManagement(ardServerInfo));
    }
    /**