package com.iailab.module.model.mpk.service.impl;
|
|
import com.iailab.framework.common.pojo.PageResult;
|
import com.iailab.module.model.mpk.dao.IconDao;
|
import com.iailab.module.model.mpk.entity.IconEntity;
|
import com.iailab.module.model.mpk.service.IconService;
|
import com.iailab.module.model.mpk.vo.IconPageReqVO;
|
import lombok.extern.slf4j.Slf4j;
|
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.stereotype.Service;
|
|
import java.util.List;
|
import java.util.UUID;
|
|
/**
|
* @author PanZhibao
|
* @Description
|
* @createTime 2024年09月22日
|
*/
|
@Slf4j
|
@Service
|
public class IconServiceImpl implements IconService {
|
|
@Autowired
|
private IconDao iconDao;
|
|
@Override
|
public PageResult<IconEntity> page(IconPageReqVO reqVO) {
|
return iconDao.selectPage(reqVO);
|
}
|
|
@Override
|
public List<IconEntity> list() {
|
return iconDao.selectList(null);
|
}
|
|
@Override
|
public void create(IconEntity entity) {
|
entity.setId(UUID.randomUUID().toString());
|
iconDao.insert(entity);
|
}
|
|
@Override
|
public void update(IconEntity entity) {
|
iconDao.updateById(entity);
|
}
|
|
@Override
|
public IconEntity get(String id) {
|
return iconDao.selectById(id);
|
}
|
|
@Override
|
public void delete(String id) {
|
iconDao.deleteById(id);
|
}
|
|
}
|