小程序点歌 新增获取正在演唱歌曲接口

This commit is contained in:
2024-07-12 15:46:47 +08:00
parent 41c264d325
commit a25e86fcc0
4 changed files with 26 additions and 3 deletions

View File

@@ -60,6 +60,11 @@ public class ShopSongController {
return Result.successWithData(shopSongService.getRecord(openId, page, size, state, isDesc));
}
/**
* 获取正在播放的歌曲
* @param openId 用户id
* @return 歌曲信息
*/
@GetMapping("/singing")
public Result getSinging(
@RequestHeader("openId") String openId
@@ -68,6 +73,12 @@ public class ShopSongController {
}
/**
* 创建订单
* @param openId 用户信息
* @param songOrderDTO 订单信息
* @return result
*/
@PostMapping
public Result createOrder(
@RequestHeader("openId") String openId,