zhangshiyu_branch
ZSY 1 year ago
parent 369ebcb26c
commit bac6e2d3d0

@ -0,0 +1,105 @@
package com.liuyanzhao.ssm.blog.service;
import com.github.pagehelper.PageInfo;
import com.liuyanzhao.ssm.blog.entity.Comment;
import org.springframework.stereotype.Service;
import java.util.HashMap;
import java.util.List;
/**
* @author
* @date 2017/9/10
*/
@Service
public interface CommentService {
/**
*
*
* @param comment
*/
void insertComment(Comment comment);
/**
* id
*
* @param articleId ID
* @return
*/
List<Comment> listCommentByArticleId(Integer articleId);
/**
* id
*
* @param id
* @return
*/
Comment getCommentById(Integer id);
/**
*
*
* @param pageIndex
* @param pageSize
* @return
*/
PageInfo<Comment> listCommentByPage(
Integer pageIndex,
Integer pageSize,
HashMap<String, Object> criteria);
/**
*
*
* @param pageIndex
* @param pageSize
* @return
*/
PageInfo<Comment> listReceiveCommentByPage(
Integer pageIndex,
Integer pageSize,
Integer userId);
/**
*
*
* @param id ID
*/
void deleteComment(Integer id);
/**
*
*
* @param comment
*/
void updateComment(Comment comment);
/**
*
*
* @return
*/
Integer countComment();
/**
*
*
* @param limit
* @return
*/
List<Comment> listRecentComment(Integer userId, Integer limit);
/**
*
*
* @param id ID
* @return
*/
List<Comment> listChildComment(Integer id);
}

@ -0,0 +1,60 @@
package com.liuyanzhao.ssm.blog.service;
import com.liuyanzhao.ssm.blog.entity.Link;
import java.util.List;
/**
*
* @author
* @date 2017/9/4
*/
public interface LinkService {
/**
*
*
* @param status
* @return
*/
Integer countLink(Integer status);
/**
*
*
* @param status
* @return
*/
List<Link> listLink(Integer status);
/**
*
*
* @param link
*/
void insertLink(Link link);
/**
*
*
* @param id ID
*/
void deleteLink(Integer id);
/**
*
*
* @param link
*/
void updateLink(Link link);
/**
* id
*
* @param id ID
* @return
*/
Link getLinkById(Integer id);
}

@ -0,0 +1,46 @@
package com.liuyanzhao.ssm.blog.service;
import com.liuyanzhao.ssm.blog.entity.Menu;
import java.util.List;
/**
* @author liuyanzhao
*/
public interface MenuService {
/**
*
*
* @return
*/
List<Menu> listMenu() ;
/**
*
*
* @param menu
*/
Menu insertMenu(Menu menu) ;
/**
*
*
* @param id ID
*/
void deleteMenu(Integer id) ;
/**
*
*
* @param menu
*/
void updateMenu(Menu menu) ;
/**
* id
*
* @param id ID
* @return
*/
Menu getMenuById(Integer id) ;
}

@ -0,0 +1,50 @@
package com.liuyanzhao.ssm.blog.service;
import com.liuyanzhao.ssm.blog.entity.Notice;
import java.util.List;
/**
* @author liuyanzhao
*/
public interface NoticeService {
/**
*
*
* @param status
* @return
*/
List<Notice> listNotice(Integer status);
/**
*
*
* @param notice
*/
void insertNotice(Notice notice);
/**
*
*
* @param id
*/
void deleteNotice(Integer id);
/**
*
*
* @param notice
*/
void updateNotice(Notice notice);
/**
* id
*
* @param id ID
* @return
*/
Notice getNoticeById(Integer id);
}

@ -0,0 +1,32 @@
package com.liuyanzhao.ssm.blog.service;
import com.liuyanzhao.ssm.blog.entity.Options;
/**
*
* @author
* @date 2017/9/7
*/
public interface OptionsService {
/**
*
*
* @return
*/
Options getOptions();
/**
*
*
* @param options
*/
void insertOptions(Options options);
/**
*
*
* @param options
*/
void updateOptions(Options options);
}

@ -0,0 +1,58 @@
package com.liuyanzhao.ssm.blog.service;
import com.liuyanzhao.ssm.blog.entity.Page;
import java.util.List;
/**
*
* @author
* @date 2017/9/7
*/
public interface PageService {
/**
*
*
* @param status
* @return
*/
List<Page> listPage(Integer status);
/**
* key
*
* @param status
* @param key
* @return
*/
Page getPageByKey(Integer status, String key);
/**
* id
*
* @param id ID
* @return
*/
Page getPageById(Integer id);
/**
*
*
* @param page
*/
void insertPage(Page page);
/**
*
*
* @param id ID
*/
void deletePage(Integer id);
/**
*
*
* @param page
*/
void updatePage(Page page);
}

@ -0,0 +1,82 @@
package com.liuyanzhao.ssm.blog.service;
import com.liuyanzhao.ssm.blog.entity.Tag;
import java.util.List;
/**
*
* @author
* @date 2017/9/2
*/
public interface TagService {
/**
*
*
* @return
*/
Integer countTag() ;
/**
*
*
* @return
*/
List<Tag> listTag() ;
/**
*
*
* @return
*/
List<Tag> listTagWithCount() ;
/**
* id
*
* @param id ID
* @return
*/
Tag getTagById(Integer id) ;
/**
*
*
* @param tag
* @return
*/
Tag insertTag(Tag tag) ;
/**
*
*
* @param tag
*/
void updateTag(Tag tag) ;
/**
*
*
* @param id iD
*/
void deleteTag(Integer id) ;
/**
*
*
* @param name
* @return
*/
Tag getTagByName(String name) ;
/**
* ID
*
* @param articleId ID
* @return
*/
List<Tag> listTagByArticleId(Integer articleId);
}

@ -0,0 +1,73 @@
package com.liuyanzhao.ssm.blog.service;
import com.liuyanzhao.ssm.blog.entity.User;
import java.util.List;
/**
* @author
* @date 2017/8/24
*/
public interface UserService {
/**
*
*
* @return
*/
List<User> listUser();
/**
* id
*
* @param id ID
* @return
*/
User getUserById(Integer id);
/**
*
*
* @param user
*/
void updateUser(User user);
/**
*
*
* @param id ID
*/
void deleteUser(Integer id);
/**
*
*
* @param user
* @return
*/
User insertUser(User user);
/**
*
*
* @param str Email
* @return
*/
User getUserByNameOrEmail(String str);
/**
*
*
* @param name
* @return
*/
User getUserByName(String name);
/**
*
*
* @param email Email
* @return
*/
User getUserByEmail(String email);
}
Loading…
Cancel
Save