文章模块,方便举例说明

This commit is contained in:
Heeexy
2017-11-18 13:49:06 +08:00
parent 4e8a8845fb
commit 9af5fb8deb
19 changed files with 297 additions and 356 deletions
@@ -0,0 +1,44 @@
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);
}