|
@@ -0,0 +1,30 @@
|
|
|
+package com.ym.mec.teacher.controller;
|
|
|
+
|
|
|
+import com.ym.mec.biz.service.MusicGroupService;
|
|
|
+import com.ym.mec.common.controller.BaseController;
|
|
|
+import com.ym.mec.common.entity.HttpResponseResult;
|
|
|
+import io.swagger.annotations.Api;
|
|
|
+import io.swagger.annotations.ApiImplicitParam;
|
|
|
+import io.swagger.annotations.ApiImplicitParams;
|
|
|
+import io.swagger.annotations.ApiOperation;
|
|
|
+import org.springframework.beans.factory.annotation.Autowired;
|
|
|
+import org.springframework.web.bind.annotation.PostMapping;
|
|
|
+import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
+import org.springframework.web.bind.annotation.RestController;
|
|
|
+
|
|
|
+@RequestMapping("musicGroup")
|
|
|
+@Api(tags = "乐团服务")
|
|
|
+@RestController
|
|
|
+public class MusicGroupController extends BaseController {
|
|
|
+
|
|
|
+ @Autowired
|
|
|
+ private MusicGroupService musicGroupService;
|
|
|
+
|
|
|
+ @ApiOperation(value = "申请退团")
|
|
|
+ @PostMapping("/quitMusicGroup")
|
|
|
+ @ApiImplicitParams({@ApiImplicitParam(name = "musicGroupId", value = "乐团id", required = true, dataType = "String"),
|
|
|
+ @ApiImplicitParam(name = "studentId", value = "学员编号", required = true, dataType = "Integer")})
|
|
|
+ public HttpResponseResult quitMusicGroup(String musicGroupId, Integer studentId){
|
|
|
+ return succeed(musicGroupService.applyQuitMusicGroup(musicGroupId,null,studentId));
|
|
|
+ }
|
|
|
+}
|