mirror of
https://github.com/leion8310/SpringBoot-Shiro-Vue.git
synced 2026-10-20 22:23:45 +00:00
45 lines
743 B
Java
45 lines
743 B
Java
package com.heeexy.example.dao;
|
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
|
import java.util.List;
|
|
|
|
/**
|
|
* @author: hxy
|
|
* @description: 文章Dao层
|
|
* @date: 2017/10/24 16:06
|
|
*/
|
|
public interface ArticleDao {
|
|
/**
|
|
* 新增文章
|
|
*
|
|
* @param jsonObject
|
|
* @return
|
|
*/
|
|
int addArticle(JSONObject jsonObject);
|
|
|
|
/**
|
|
* 统计文章总数
|
|
*
|
|
* @param jsonObject
|
|
* @return
|
|
*/
|
|
int countArticle(JSONObject jsonObject);
|
|
|
|
/**
|
|
* 文章列表
|
|
*
|
|
* @param jsonObject
|
|
* @return
|
|
*/
|
|
List<JSONObject> listArticle(JSONObject jsonObject);
|
|
|
|
/**
|
|
* 更新文章
|
|
*
|
|
* @param jsonObject
|
|
* @return
|
|
*/
|
|
int updateArticle(JSONObject jsonObject);
|
|
}
|