package com.slodon.b2b2c.model.video;

import com.slodon.b2b2c.dao.read.video.VideoSettingReadMapper;
import com.slodon.b2b2c.dao.write.video.VideoSettingWriteMapper;
import com.slodon.b2b2c.video.example.VideoSettingExample;
import com.slodon.b2b2c.video.pojo.VideoSetting;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;
import java.util.List;

@Component
@Slf4j
public class AdminVideoSettingModel {

    @Resource
    private VideoSettingWriteMapper videoSettingWriteMapper;
    @Resource
    private VideoSettingReadMapper videoSettingReadMapper;

    public List<VideoSetting> getLiveSettingList() {
        List<VideoSetting> videoSettings = videoSettingReadMapper.listByExample(new VideoSettingExample());
        return videoSettings;
    }

}
