提交 | 用户 | 时间
|
c7f709
|
1 |
package com.iailab.module.data.channel.http.service.impl; |
L |
2 |
|
|
3 |
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
|
4 |
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
|
5 |
import com.iailab.framework.common.pojo.PageResult; |
|
6 |
import com.iailab.module.data.channel.http.dao.HttpApiDao; |
|
7 |
import com.iailab.module.data.channel.http.entity.HttpApiEntity; |
|
8 |
import com.iailab.module.data.channel.http.service.HttpApiService; |
|
9 |
import com.iailab.module.data.channel.http.vo.HttpApiPageReqVO; |
|
10 |
import org.springframework.stereotype.Service; |
|
11 |
|
|
12 |
import javax.annotation.Resource; |
|
13 |
import java.util.List; |
|
14 |
|
|
15 |
@Service |
|
16 |
public class HttpApiServiceImpl extends ServiceImpl<HttpApiDao, HttpApiEntity> implements HttpApiService { |
|
17 |
|
|
18 |
@Resource |
|
19 |
private HttpApiDao httpApiDao; |
|
20 |
|
|
21 |
@Override |
|
22 |
public PageResult<HttpApiEntity> queryPage(HttpApiPageReqVO reqVO) { |
|
23 |
return httpApiDao.selectPage(reqVO); |
|
24 |
} |
|
25 |
|
|
26 |
@Override |
|
27 |
public HttpApiEntity info(String id) { |
|
28 |
return httpApiDao.selectById(id); |
|
29 |
} |
|
30 |
|
|
31 |
@Override |
|
32 |
public void add(HttpApiEntity httpApiEntity) { |
|
33 |
httpApiDao.insert(httpApiEntity); |
|
34 |
} |
|
35 |
|
|
36 |
@Override |
|
37 |
public void update(HttpApiEntity httpApiEntity) { |
|
38 |
httpApiDao.updateById(httpApiEntity); |
|
39 |
} |
|
40 |
|
|
41 |
@Override |
|
42 |
public void delete(String id) { |
|
43 |
httpApiDao.deleteById(id); |
|
44 |
} |
|
45 |
|
|
46 |
@Override |
|
47 |
public HttpApiEntity getByCode(String code) { |
|
48 |
return httpApiDao.selectOne(new QueryWrapper<HttpApiEntity>().eq("code", code)); |
|
49 |
} |
|
50 |
|
|
51 |
@Override |
|
52 |
public List<HttpApiEntity> list() { |
|
53 |
return httpApiDao.selectList(new QueryWrapper<>()); |
|
54 |
} |
|
55 |
|
|
56 |
} |