package com.yupi.springbootinit.service.impl; import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import com.yupi.springbootinit.model.dto.host.HostInfoDTO; import com.yupi.springbootinit.model.dto.host.ServerBigBrotherDTO; import com.yupi.springbootinit.model.vo.bigbrother.ServerBigBrotherVO; import com.yupi.springbootinit.model.vo.hosts.NewHostsVO; import org.springframework.stereotype.Service; import org.springframework.beans.factory.annotation.Autowired; import java.util.List; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import com.yupi.springbootinit.mapper.ServerBigBrotherMapper; import com.yupi.springbootinit.model.entity.ServerBigBrother; import com.yupi.springbootinit.service.ServerBigBrotherService; import org.springframework.web.bind.annotation.RequestBody; import javax.annotation.Resource; /* * @author: ziin * @date: 2025/6/25 19:21 */ @Service public class ServerBigBrotherServiceImpl extends ServiceImpl implements ServerBigBrotherService{ @Resource private ServerBigBrotherMapper serverBigBrotherMapper; @Override public Page getConditionHosts(ServerBigBrotherDTO serverBigBrotherDTO) { Page page = new Page<>(serverBigBrotherDTO.getCurrent(),serverBigBrotherDTO.getPageSize()); return serverBigBrotherMapper.selectPageByCondition(page, serverBigBrotherDTO); } }