diff --git a/asg_form/Controllers/comform.cs b/asg_form/Controllers/comform.cs index 737a312..d7dfa2b 100644 --- a/asg_form/Controllers/comform.cs +++ b/asg_form/Controllers/comform.cs @@ -214,8 +214,22 @@ namespace asg_form.Controllers public string createTime { get; set; } } + + [Route("api/v1/admin/refuseCom")] + [HttpGet] + [Authorize] + public async Task> refuse_com(int userId) + { + if (this.User.FindAll(ClaimTypes.Role).Any(a => a.Value == "admin")) + { + using (TestDbContext testDb = new TestDbContext()) + { + + } + } + return Ok(new error_mb { code = 401, message = "没有管理员,无法设置" }); + } } - - } +}