package com.liquidnet.client.admin.zhengzai.goblin.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.liquidnet.service.goblin.entity.GoblinArtistAuthApply;

import java.time.LocalDateTime;
import java.util.List;
import java.util.Map;

/**
 * Admin 艺人授权审核
 */
public interface IGoblinArtistAuthAdminService extends IService<GoblinArtistAuthApply> {

    /**
     * 审核通过：更新申请表（status=1 + authExpireAt），同步写 MongoDB
     */
    boolean approve(String applyId, LocalDateTime expireAt, String remark, String reviewerId, String reviewerName);

    /**
     * 审核驳回：更新申请表（status=2 + rejectReason），同步写 MongoDB
     */
    boolean reject(String applyId, String reason, String reviewerId, String reviewerName);

    /**
     * 授权列表（MongoDB 查询，返回分页结果）
     */
    List<Map<String, Object>> authList(int pageNum, int pageSize);
}
