package com.ssm.manage.service;

import com.ssm.core.service.BaseService;
import com.ssm.manage.entity.BaseStaff;
import com.ssm.manage.entity.BaseStore;
import com.ssm.manage.entity.SmsException;
import com.ssm.manage.query.MemberRequest;
import com.ssm.manage.query.StaffRequest;
import com.ssm.manage.query.StoreParamentquest;
import com.ssm.manage.response.StaffResponse;

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

public interface SsmStaffLoginService extends BaseService<BaseStaff> {
//    public StaffResponse accountLogin(StaffRequest staffRequest)throws SmsException;
    public StaffResponse phoneLogin(StaffRequest staffRequest) throws SmsException;
    public StaffResponse phoneLoginNew(StaffRequest staffRequest) throws SmsException;
    public boolean chekeMsg(MemberRequest memberRequest) throws SmsException;
    public StaffResponse phoneLoginNews(StaffRequest staffRequest) throws SmsException;

    public StaffResponse phonePassLogin(StaffRequest staffRequest) throws SmsException;
    public StaffResponse phonePassLoginNew(StaffRequest staffRequest) throws SmsException;
    public StaffResponse phonePassLoginNews(StaffRequest staffRequest) throws SmsException;

    public boolean DynamicphonePassLoginNews(StaffRequest staffRequest) throws SmsException;

    public StaffResponse phonePassLogindzz(StaffRequest staffRequest) throws SmsException;
    public StaffResponse phoneLoginNewzz(StaffRequest staffRequest) throws SmsException;
    public StaffResponse phonePassLoginzd(StaffRequest staffRequest) throws SmsException;

    public StaffResponse getSmsCode(StaffRequest staffRequest) throws SmsException, IOException;
    public StaffResponse getCode(StaffRequest staffRequest) throws SmsException, IOException;

    int getDynamicPsw(BaseStore baseStore) throws SmsException, IOException;

    public StaffResponse getSmsCodepassword(StaffRequest staffRequest) throws Exception;

    public int changePassword(StaffRequest staffRequest) throws SmsException;

    public int getPsw(StaffRequest staffRequest) throws SmsException;

    void logout(StaffRequest staffRequest, HttpSession session) throws SmsException;

    void uniLogout(StaffRequest staffRequest) throws SmsException;

    public StaffResponse uniPhoneLogin(StaffRequest staffRequest) throws SmsException;

    public StaffResponse uniPhonePassLogin(StaffRequest staffRequest) throws SmsException;

    public List<BaseStaff> list(StaffRequest staffRequest);
    public List<StaffRequest> listlogin(StaffRequest staffRequest);

    public StaffResponse unphonePassLoginNew(StaffRequest staffRequest) throws SmsException;
    public StaffResponse unphonePassLoginNews(StaffRequest staffRequest) throws SmsException;
    public StaffResponse unphonePassLogindzz(StaffRequest staffRequest) throws SmsException;
}
