|
@@ -8,6 +8,7 @@ import com.yonge.cooleshow.common.controller.BaseController;
|
|
import io.swagger.annotations.Api;
|
|
import io.swagger.annotations.Api;
|
|
import io.swagger.annotations.ApiOperation;
|
|
import io.swagger.annotations.ApiOperation;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
+import org.springframework.web.bind.annotation.PostMapping;
|
|
import org.springframework.web.bind.annotation.RequestBody;
|
|
import org.springframework.web.bind.annotation.RequestBody;
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
@@ -23,7 +24,7 @@ public class MusicSheetController extends BaseController {
|
|
private MusicSheetService musicSheetService;
|
|
private MusicSheetService musicSheetService;
|
|
|
|
|
|
@ApiOperation(value = "新增曲谱")
|
|
@ApiOperation(value = "新增曲谱")
|
|
- @RequestMapping("/sheet/create")
|
|
|
|
|
|
+ @PostMapping("/create")
|
|
public Object create(@RequestBody MusicSheet musicSheet) {
|
|
public Object create(@RequestBody MusicSheet musicSheet) {
|
|
SysUser sysUser = sysUserFeignService.queryUserInfo();
|
|
SysUser sysUser = sysUserFeignService.queryUserInfo();
|
|
if (sysUser == null) {
|
|
if (sysUser == null) {
|