package com.cftech.workshop.activ.service;

import com.cftech.core.sql.Conds;
import com.cftech.core.sql.Sort;
import com.cftech.workshop.activ.model.Activ;
import com.cftech.core.generic.GenericService;
import com.cftech.workshop.activ.model.SelectActivity;

import java.util.List;

/**
* Service
*
* @author byj
* @date: 2018-06-29 15:13
*/
public interface ActivService extends GenericService<Activ> {

    /**
     * 选择活动
     * @param conds
     * @param sort
     * @param page
     * @param pageSize
     * @return
     */
    List<SelectActivity> searchActivity(Conds conds, Sort sort, int page, int pageSize);

    /**
     * 活动个数
     * @param conds
     * @return
     */
    int countActivity(Conds conds);


}
