/*
 * Copyright (c) 2018-2999 广州亚米信息科技有限公司 All rights reserved.
 *
 * https://www.gz-yami.com/
 *
 * 未经允许，不可做商业用途！
 *
 * 版权所有，侵权必究！
 */

package com.yami.shop.distribution.comment.service;


import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.yami.shop.bean.param.OfflineHandleEventAuditParam;
import com.yami.shop.common.util.PageParam;
import com.yami.shop.distribution.comment.model.DistributionAuditing;
import com.yami.shop.distribution.comment.model.DistributionBasicSet;

/**
 * @author lgh on 2019/04/01.
 */
public interface DistributionBasicSetService extends IService<DistributionBasicSet> {
    DistributionBasicSet getByShopId();

    void removeCacheByShopId(Long shopId);

    /**
     * 分页获取所有店铺的基本设置
     */
    IPage<DistributionBasicSet> getDistributionBasicSetPage(PageParam<DistributionAuditing> page, DistributionBasicSet distributionBasicSet);

    /**
     * 下线活动
     */
    void offline(DistributionBasicSet distributionBasicSet, String offlineReason, Long sysUserId);

    /**
     * 申请审核
     */
    void auditApply(Long eventId, Long basicSetId, String reapplyReason);

    /**
     *  审核分销基本设置
     */
    void auditDistributionBasicSet(OfflineHandleEventAuditParam offlineHandleEventAuditParam, Long sysUserId);
}
