package com.ruoyi.web.controller.client;


import com.ruoyi.common.core.domain.entity.CategoryInfo;
import com.ruoyi.system.service.IMusicInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RequestMapping("/client/music")
@RestController
public class MusicController {

    @Autowired
    private IMusicInfoService musicService;

    // 根据分类获取音乐
    @RequestMapping("/cate/music")
    public void getMusicByCate(@RequestBody CategoryInfo categoryInfo){
        musicService.findMusicByCate(categoryInfo);
    }

}
