package com.ssm.manage.service;

import com.github.pagehelper.PageInfo;
import com.ssm.core.service.BaseService;
import com.ssm.manage.entity.SmsException;
import com.ssm.manage.entity.SmsFix;
import com.ssm.manage.entity.SmsRechargeList;
import com.ssm.manage.query.SmsRechargeListRequest;

import javax.servlet.http.HttpSession;
import java.util.List;

public interface SmsRechargeListService extends BaseService<SmsRechargeList> {
    int saveRechargeList(SmsRechargeListRequest smsRechargeListRequest,String phone) throws SmsException;

    int updateByRechargeList(SmsRechargeListRequest smsRechargeListRequest,String phone) throws SmsException;

    int deleteById(Long id);

    PageInfo<SmsRechargeList> selectByList(SmsRechargeListRequest smsRechargeListRequest);

    int sendAudit(SmsRechargeListRequest smsRechargeListRequest, HttpSession session) throws SmsException;

    int audit(SmsRechargeListRequest smsRechargeListRequest, HttpSession session )throws SmsException;
    int unAudit(SmsRechargeListRequest smsRechargeListRequest, HttpSession session )throws SmsException;

    int cancel(SmsRechargeListRequest smsRechargeListRequest, HttpSession session)throws SmsException;
}
