package com.backendsys.modules.ai.media.service.impl;

import com.backendsys.modules.ai.media.dao.MediaTtvTimbreDao;
import com.backendsys.modules.ai.media.entity.MediaTtvTimbre;
import com.backendsys.modules.ai.media.service.MediaTtvTimbreService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class MediaTtvTimbreServiceImpl implements MediaTtvTimbreService {

    @Autowired
    private MediaTtvTimbreDao mediaTtvTimbreDao;

    // 获取音色列表
    @Override
    @Cacheable(value = "catch::media-ttv-timbre", unless = "#result == null")
    public List<MediaTtvTimbre> selectMediaTtvTimbre() {
        return mediaTtvTimbreDao.selectList(null);
    }

}
