package com.iformall.service;

import com.github.pagehelper.PageInfo;
import com.iformall.common.ResultData;
import com.iformall.domain.po.WxCampaign;

import javax.servlet.http.HttpServletResponse;

public interface WxCampaignService {

    /**
     * 根据实体查询分页列表
     *
     * @param record
     * @param pageIndex
     * @param pageSize
     * @return
     */
    PageInfo<WxCampaign> listAsPage(WxCampaign record, Integer pageIndex, Integer pageSize);

    /**
     * 根据实体查询分页列表
     *
     * @param record
     * @param pageIndex
     * @param pageSize
     * @return
     */
    PageInfo<WxCampaign> clistAsPage(WxCampaign record, Integer pageIndex, Integer pageSize);

    /**
     * 根据Id获得实体
     *
     * @param id
     * @return
     */
    WxCampaign getById(Long id);

    /**
     * 保存或更新实体
     *
     * @param record
     */
    ResultData saveOrUpdate(WxCampaign record);

    /**
     * 基于小程序路径发布
     * @param wxCampaign
     * @return
     */
    ResultData addForPath(WxCampaign wxCampaign);

    /**
     * 根据Id删除实体
     *
     * @param id
     */
    void deleteById(Long id);

    int getMaxSortNum(String tenantId);


    ResultData updateStatus(WxCampaign wxCampaign);

    void printHtmlById(Long id, HttpServletResponse response);

}
