public async Task <IActionResult> DeleteClassById([FromRoute] long classId)
        {
            try
            {
                var userlogin = await _userService.GetUserByUserIdAsync(User.Id());

                if (userlogin.Type == Type.Teacher)
                {
                    await _classService.DeleteClassByClassIdAsync(classId);

                    return(NoContent());
                }

                return(StatusCode(403, new { msg = "权限不足" }));
            }
            catch (ClassNotFoundException)
            {
                return(StatusCode(404, new { msg = "班级不存在" }));
            }
            catch (ArgumentException)
            {
                return(StatusCode(400, new { msg = "班级ID输入格式有误" }));
            }
        }