zoukankan      html  css  js  c++  java
  • com.jsj.service=====新闻发布系统(8)

    这个其实和dao层的一样的内容

    AdminService

    1 package com.jsj.service;
    2 
    3 import com.jsj.entity.Admin;
    4 
    5 public interface AdminService {
    6 
    7     //验证管理员输入的代码是否正确方法
    8     Admin login(String username,String password);
    9 }
    View Code

    NewCateService

     1 package com.jsj.service;
     2 
     3 import com.jsj.entity.NewsCateVo;
     4 import com.jsj.entity.NewsCate;
     5 
     6 import java.util.List;
     7 
     8 public interface NewsCateService {
     9 
    10     List<NewsCate> getAllCate();
    11 
    12     List<NewsCateVo> getAllNewsCateVo(Integer length);
    13 
    14     NewsCate getNewsCateById(Integer id);
    15 
    16     int insert(NewsCate newsCate);
    17 
    18     int update(NewsCate newsCate);
    19 
    20     int delete(Integer id);
    21 }
    View Code

    NewsService

     1 package com.jsj.service;
     2 
     3 import com.jsj.entity.News;
     4 import com.jsj.entity.NewsVo;
     5 import com.jsj.entity.Page;
     6 
     7 import java.util.List;
     8 
     9 public interface NewsService {
    10 
    11     Page<NewsVo> getNewsVoPage(Integer pageIndex, Integer pageSize);
    12 
    13     Page<News> getNewsPageByCate(Integer cateId,Integer pageIndex, Integer pageSize);
    14 
    15     List<NewsVo> getNewsVoList(Integer pageIndex,Integer length);
    16 
    17     List<News> getNewsListByCate(Integer cateId,Integer pageIndex,Integer length);
    18 
    19     News getNewsById(Integer id);
    20 
    21     int publish(News news);
    22 
    23     List<NewsVo> getAllNewsVo();
    24 
    25     int deleteNewsById(Integer id);
    26 }
    View Code

    UserService

     1 package com.jsj.service;
     2 
     3 import com.jsj.entity.User;
     4 
     5 public interface UserService{
     6 
     7     int register(User user);
     8 
     9     User login(String username,String password);
    10 }
    View Code
    会当凌绝顶,一览众山小
  • 相关阅读:
    docker部署mysql
    docker安装nginx
    Linux查看日志-grep
    linux系统常用命令
    python爬虫
    unittest中常用的assert语句
    Linux 监控tcp连接数及状态
    linux top命令查看内存及多核CPU的使用讲述
    jmeter的时间戳函数使用
    influxdb基本SQL操作2
  • 原文地址:https://www.cnblogs.com/quenvpengyou/p/12896354.html
Copyright © 2011-2022 走看看