package com.iailab.module.data.channel.http.service.impl; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import com.iailab.framework.common.pojo.PageResult; import com.iailab.module.data.channel.http.dao.HttpApiDao; import com.iailab.module.data.channel.http.entity.HttpApiEntity; import com.iailab.module.data.channel.http.service.HttpApiService; import com.iailab.module.data.channel.http.vo.HttpApiPageReqVO; import org.springframework.stereotype.Service; import javax.annotation.Resource; import java.util.List; @Service public class HttpApiServiceImpl extends ServiceImpl implements HttpApiService { @Resource private HttpApiDao httpApiDao; @Override public PageResult queryPage(HttpApiPageReqVO reqVO) { return httpApiDao.selectPage(reqVO); } @Override public HttpApiEntity info(String id) { return httpApiDao.selectById(id); } @Override public void add(HttpApiEntity httpApiEntity) { httpApiDao.insert(httpApiEntity); } @Override public void update(HttpApiEntity httpApiEntity) { httpApiDao.updateById(httpApiEntity); } @Override public void delete(String id) { httpApiDao.deleteById(id); } @Override public HttpApiEntity selectXstHttpTagApi() { return httpApiDao.selectOne(new QueryWrapper().eq("code","xstHttpTag")); } @Override public HttpApiEntity getByCode(String code) { return httpApiDao.selectOne(new QueryWrapper().eq("code", code)); } @Override public List list() { return httpApiDao.selectList(new QueryWrapper<>()); } }