Files
Tbed/src/main/java/cn/hellohao/service/impl/ImgAndAlbumServiceImpl.java
T
2021-10-28 18:54:05 +08:00

46 lines
1.2 KiB
Java

package cn.hellohao.service.impl;
import cn.hellohao.dao.ImgAndAlbumMapper;
import cn.hellohao.pojo.Images;
import cn.hellohao.pojo.ImgAndAlbum;
import cn.hellohao.service.ImgAndAlbumService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
/**
* @author Hellohao
* @version 1.0
* @date 2019/12/19 15:40
*/
@Service
public class ImgAndAlbumServiceImpl implements ImgAndAlbumService {
@Autowired
ImgAndAlbumMapper imgAndAlbumMapper;
@Override
public Integer addImgAndAlbum(ImgAndAlbum imgAndAlbum) {
return imgAndAlbumMapper.addImgAndAlbum(imgAndAlbum);
}
@Override
public List<ImgAndAlbum> getAlbumForImgname(String imgname) {
return imgAndAlbumMapper.getAlbumForImgname(imgname);
}
@Override
public Integer deleteImgAndAlbum(String imgname) {
return imgAndAlbumMapper.deleteImgAndAlbum(imgname);
}
@Override
public Integer deleteImgAndAlbumForKey(String albumkey) {
return imgAndAlbumMapper.deleteImgAndAlbumForKey(albumkey);
}
@Override
public List<Images> selectImgForAlbumkey(String albumkey) {
return imgAndAlbumMapper.selectImgForAlbumkey(albumkey);
}
}