mirror of
https://github.com/Hello-hao/Tbed.git
synced 2024-04-21 12:32:10 +00:00
46 lines
1.2 KiB
Java
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);
|
|
}
|
|
}
|