feat: 用户表添加selected_audio_id字段,添加用户音频绑定接口
This commit is contained in:
1 parent
773b48471a
commit
387c277c28
5 files changed
+67
-3
No files matched your search
@@ -96,4 +96,11 @@ async def download_audio(audio_id:int, db: Session = Depends(get_db)):
|
||||
@router.delete('/users/audio/{audio_id}',response_model=AudioDeleteResponse)
|
||||
async def delete_audio(audio_id:int, db: Session = Depends(get_db)):
|
||||
response = await delete_audio_handler(audio_id, db)
|
||||
return response
|
||||
|
||||
|
||||
#用户绑定音频
|
||||
@router.post('/users/audio/bind',response_model=AudioBindResponse)
|
||||
async def bind_audio(bind_req:AudioBindRequest, db: Session = Depends(get_db)):
|
||||
response = await bind_audio_handler(bind_req, db)
|
||||
return response
|
||||
Reference in new issue
Block a user