34 lines
1.1 KiB
Java
34 lines
1.1 KiB
Java
package com.yupi.springbootinit.controller;
|
|
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
import com.yupi.springbootinit.common.BaseResponse;
|
|
import com.yupi.springbootinit.common.ResultUtils;
|
|
import com.yupi.springbootinit.model.dto.host.ServerBigBrotherDTO;
|
|
import com.yupi.springbootinit.model.vo.bigbrother.ServerBigBrotherVO;
|
|
import com.yupi.springbootinit.service.ServerBigBrotherService;
|
|
import lombok.extern.slf4j.Slf4j;
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
import javax.annotation.Resource;
|
|
|
|
/*
|
|
* @author: ziin
|
|
* @date: 2025/6/25 19:22
|
|
*/
|
|
@RestController
|
|
@RequestMapping("/big-brother")
|
|
@Slf4j
|
|
@CrossOrigin
|
|
public class BigBrotherController {
|
|
|
|
|
|
@Resource
|
|
private ServerBigBrotherService bigBrotherService;
|
|
|
|
@PostMapping("page")
|
|
public BaseResponse<Page<ServerBigBrotherVO>> getBigBrotherPage(@RequestBody ServerBigBrotherDTO serverBigBrotherDTO){
|
|
Page<ServerBigBrotherVO> conditionHosts = bigBrotherService.getConditionHosts(serverBigBrotherDTO);
|
|
return ResultUtils.success(conditionHosts);
|
|
}
|
|
}
|