package com.lesingle.modules.biz.contest.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.lesingle.modules.biz.contest.dto.CreateTeamDto;
import com.lesingle.modules.biz.contest.entity.BizContestTeam;

import java.util.List;
import java.util.Map;

public interface IContestTeamService extends IService<BizContestTeam> {

    Map<String, Object> createTeam(CreateTeamDto dto, Long tenantId, Long creatorId);

    List<Map<String, Object>> findByContest(Long contestId, Long tenantId);

    Map<String, Object> findDetail(Long id);

    BizContestTeam updateTeam(Long id, CreateTeamDto dto);

    void addMember(Long teamId, Long userId, String role, Long tenantId);

    void removeMember(Long teamId, Long userId);

    void removeTeam(Long id);
}
