后端:
完善注册页面
This commit is contained in:
@@ -96,5 +96,14 @@ namespace IM_API.Controllers
|
||||
var group = await _groupService.GetGroupInfoAsync(groupId);
|
||||
return Ok(new BaseResponse<GroupInfoVo>(group));
|
||||
}
|
||||
|
||||
[HttpGet]
|
||||
[ProducesResponseType(typeof(BaseResponse<List<GroupNotificationVo>>), StatusCodes.Status200OK)]
|
||||
public async Task<IActionResult> GetGroupNotification([FromQuery]int groupId)
|
||||
{
|
||||
string userIdStr = User.FindFirstValue(ClaimTypes.NameIdentifier)!;
|
||||
var data = await _groupService.GetGroupNotificationAsync(int.Parse(userIdStr));
|
||||
return Ok(new BaseResponse<List<GroupNotificationVo>>(data));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user