/*
 * Copyright (c) 2018-2999 广州亚米信息科技有限公司 All rights reserved.
 *
 * https://www.gz-yami.com/
 *
 */

package com.yami.shop.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.yami.shop.bean.model.OfflineHandleEvent;
import com.yami.shop.bean.param.OfflineHandleEventAuditParam;

/**
 * 下线处理事件
 *
 * @author
 * @date 2019-09-20 10:44:58
 */
public interface OfflineHandleEventService extends IService<OfflineHandleEvent> {
    /**
     * 提交申请
     */
    void apply(Long eventId, String reapplyReason);

    /**
     * 通过事件类型和所属id获取正在处理的下线事件信息
     */
    OfflineHandleEvent getProcessingEventByHandleTypeAndHandleId(Integer eventType, Long handleId);

    /**
     * 更新下线时间为申请状态
     */
    void updateToApply(Long eventId, String reapplyReason);

    /**
     * 审核下线事件
     */
    void auditOfflineEvent(OfflineHandleEventAuditParam offlineHandleEventAuditParam, Long sysUserId);
}
