package com.ym.mec.web.controller;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.ym.mec.biz.dal.entity.MusicGroupOrganizationCourseSettingsDetail;
import com.ym.mec.biz.service.MusicGroupOrganizationCourseSettingsDetailService;
import com.ym.mec.common.controller.BaseController;
import com.ym.mec.common.entity.HttpResponseResult;

@RequestMapping("musicGroupOrganizationCourseSettingsDetail")
@Api(tags = "收费方式对应的课程明细")
@RestController
public class MusicGroupOrganizationCourseSettingsDetailController extends BaseController {
    @Autowired
    private MusicGroupOrganizationCourseSettingsDetailService musicGroupOrganizationCourseSettingsDetailService;

    @ApiOperation(value = "获取收费设置详情")
    @GetMapping("/queryByMusicGroupOrganizationCourseSettingsId")
    @PreAuthorize("@pcs.hasPermissions('musicGroupOrganizationCourseSettingsDetail/queryByMusicGroupOrganizationCourseSettingsId')")
    public HttpResponseResult<List<MusicGroupOrganizationCourseSettingsDetail>> queryByMusicGroupOrganizationCourseSettingsId(Integer id) {
        return succeed(musicGroupOrganizationCourseSettingsDetailService.queryByMusicGroupOrganizationCourseSettingsId(id));
    }
}
