package com.cftech.questionnaire.core.papercategory.service;

import com.cftech.core.generic.GenericService;
import com.cftech.core.sql.Conds;
import com.cftech.core.sql.Sort;
import com.cftech.questionnaire.core.papercategory.model.Papercategory;

import java.util.List;

/**
* 问卷分类Service
*
* @author Neil
* @date: 2017-05-23 13:24
*/
public interface PapercategoryService extends GenericService<Papercategory> {

    List<Papercategory> fetchSearchByPage(Long parentId, Conds conds, Sort sort, int page, int pageSize);
    List<Papercategory> fetchTreeByPage(Conds conds, Sort sort, int page, int pageSize);

    int count(Long parentId, Conds conds);
}
