package com.fs.course.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.fs.course.domain.FsCoursePlaySourceConfig;
import com.fs.course.vo.FsCoursePlaySourceConfigVO;

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

public interface IFsCoursePlaySourceConfigService extends IService<FsCoursePlaySourceConfig> {

    /**
     * 查询点播配置列表
     */
    List<FsCoursePlaySourceConfigVO> selectCoursePlaySourceConfigVOListByMap(Map<String, Object> params);

    List<FsCoursePlaySourceConfig> selectByAppIds(List<String> miniAppList);

    /**
     * 根据appId查询
     * @param appId
     * @return
     */
    FsCoursePlaySourceConfig selectCoursePlaySourceConfigByAppId(String appId);

    /**
     * 更新点播播放源配置，company_ids 不做非空判断，允许置为 NULL
     */
    int updateCoursePlaySourceConfig(FsCoursePlaySourceConfig config);
}
