mirror of
https://github.com/201206030/novel-plus.git
synced 2025-07-04 08:26:37 +00:00
feat: 后台友情链接管理
This commit is contained in:
@ -0,0 +1,30 @@
|
||||
package com.java2nb.novel.service;
|
||||
|
||||
import com.java2nb.novel.domain.FriendLinkDO;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
*
|
||||
*
|
||||
* @author xiongxy
|
||||
* @email 1179705413@qq.com
|
||||
* @date 2023-04-14 15:12:25
|
||||
*/
|
||||
public interface FriendLinkService {
|
||||
|
||||
FriendLinkDO get(Integer id);
|
||||
|
||||
List<FriendLinkDO> list(Map<String, Object> map);
|
||||
|
||||
int count(Map<String, Object> map);
|
||||
|
||||
int save(FriendLinkDO friendLink);
|
||||
|
||||
int update(FriendLinkDO friendLink);
|
||||
|
||||
int remove(Integer id);
|
||||
|
||||
int batchRemove(Integer[] ids);
|
||||
}
|
@ -0,0 +1,55 @@
|
||||
package com.java2nb.novel.service.impl;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import com.java2nb.novel.dao.FriendLinkDao;
|
||||
import com.java2nb.novel.domain.FriendLinkDO;
|
||||
import com.java2nb.novel.service.FriendLinkService;
|
||||
|
||||
|
||||
|
||||
@Service
|
||||
public class FriendLinkServiceImpl implements FriendLinkService {
|
||||
@Autowired
|
||||
private FriendLinkDao friendLinkDao;
|
||||
|
||||
@Override
|
||||
public FriendLinkDO get(Integer id){
|
||||
return friendLinkDao.get(id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<FriendLinkDO> list(Map<String, Object> map){
|
||||
return friendLinkDao.list(map);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int count(Map<String, Object> map){
|
||||
return friendLinkDao.count(map);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int save(FriendLinkDO friendLink){
|
||||
return friendLinkDao.save(friendLink);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int update(FriendLinkDO friendLink){
|
||||
return friendLinkDao.update(friendLink);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int remove(Integer id){
|
||||
return friendLinkDao.remove(id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int batchRemove(Integer[] ids){
|
||||
return friendLinkDao.batchRemove(ids);
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user