提交 | 用户 | 时间
|
8b3ee3
|
1 |
package com.iailab.module.model.mpk.service.impl; |
潘 |
2 |
|
|
3 |
import com.iailab.framework.common.pojo.PageResult; |
|
4 |
import com.iailab.module.model.mpk.dao.IconDao; |
|
5 |
import com.iailab.module.model.mpk.entity.IconEntity; |
|
6 |
import com.iailab.module.model.mpk.service.IconService; |
|
7 |
import com.iailab.module.model.mpk.vo.IconPageReqVO; |
|
8 |
import lombok.extern.slf4j.Slf4j; |
|
9 |
import org.springframework.beans.factory.annotation.Autowired; |
|
10 |
import org.springframework.stereotype.Service; |
|
11 |
|
|
12 |
import java.util.List; |
|
13 |
import java.util.UUID; |
|
14 |
|
|
15 |
/** |
|
16 |
* @author PanZhibao |
|
17 |
* @Description |
|
18 |
* @createTime 2024年09月22日 |
|
19 |
*/ |
|
20 |
@Slf4j |
|
21 |
@Service |
|
22 |
public class IconServiceImpl implements IconService { |
|
23 |
|
|
24 |
@Autowired |
|
25 |
private IconDao iconDao; |
|
26 |
|
|
27 |
@Override |
|
28 |
public PageResult<IconEntity> page(IconPageReqVO reqVO) { |
|
29 |
return iconDao.selectPage(reqVO); |
|
30 |
} |
|
31 |
|
|
32 |
@Override |
|
33 |
public List<IconEntity> list() { |
|
34 |
return iconDao.selectList(null); |
|
35 |
} |
|
36 |
|
|
37 |
@Override |
|
38 |
public void create(IconEntity entity) { |
|
39 |
entity.setId(UUID.randomUUID().toString()); |
|
40 |
iconDao.insert(entity); |
|
41 |
} |
|
42 |
|
|
43 |
@Override |
|
44 |
public void update(IconEntity entity) { |
|
45 |
iconDao.updateById(entity); |
|
46 |
} |
|
47 |
|
|
48 |
@Override |
|
49 |
public IconEntity get(String id) { |
|
50 |
return iconDao.selectById(id); |
|
51 |
} |
|
52 |
|
|
53 |
@Override |
|
54 |
public void delete(String id) { |
|
55 |
iconDao.deleteById(id); |
|
56 |
} |
|
57 |
|
|
58 |
} |