package shop.alien.store.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import shop.alien.entity.store.LifeCoupon;
import shop.alien.entity.store.vo.LifeCouponVo;
import shop.alien.entity.store.vo.LifeGroupBuyMainVo;

import java.io.IOException;

public interface PlatformStoreCouponService {

    IPage<LifeCouponVo> getCouponList(Integer page, Integer size, String storeName, String status, String createdTime, String phone, String type);

    IPage<LifeGroupBuyMainVo> getLifeGroupBuyMainList(Integer page, Integer size, String storeName, String status, String createdTime, String phone, String expiredState);

    IPage<LifeCouponVo> getCouponStatusList(Integer page, Integer size, String status, String expiredState);

    LifeCouponVo getCouponById(Integer id);

    int approvalCoupon(Integer id, Integer status, String comment, String type);

    String couponStatusExport(String status, String expiredState) throws IOException;

    String lifeGroupBuyMainStatusExport(String status, String expiredState) throws IOException;

    int deleteCouponStatus(Integer id);

    LifeGroupBuyMainVo getLifeGroupBuyMainByDetail(Integer id);
}
