package com.starry.admin.modules.media.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.starry.admin.modules.media.entity.PlayMediaEntity;
import java.util.Collection;
import java.util.List;

public interface IPlayMediaService extends IService<PlayMediaEntity> {

    List<PlayMediaEntity> listByOwner(String ownerType, String ownerId);

    List<PlayMediaEntity> listByOwner(String ownerType, String ownerId, Collection<String> statuses);

    List<PlayMediaEntity> listApprovedByOwner(String ownerType, String ownerId);

    PlayMediaEntity normalizeAndSave(PlayMediaEntity entity);

    void updateOrder(String ownerType, String ownerId, List<String> orderedIds);

    void softDelete(String ownerType, String ownerId, String mediaId);
}
