This commit is contained in:
王炜翔 2024-10-18 19:54:00 +08:00
parent f67262967c
commit 0d369e426f

View File

@ -47,6 +47,9 @@ namespace asg_form.Controllers
game.referee = req.referee; game.referee = req.referee;
game.belong = req.belong; game.belong = req.belong;
game.tag=req.tag; game.tag=req.tag;
game.judge = req.judge;
game.commentary = req.commentary;
game.person_type = req.personType;
await testDb.SaveChangesAsync(); await testDb.SaveChangesAsync();
return Ok(new { code = 200, message = "加入成功" }); return Ok(new { code = 200, message = "加入成功" });
} }
@ -96,7 +99,10 @@ namespace asg_form.Controllers
commentary = req.commentary, commentary = req.commentary,
referee = req.referee, referee = req.referee,
belong = req.belong, belong = req.belong,
tag = req.tag tag = req.tag,
judge = req.judge,
com_limit = req.comLimit,
person_type = req.personType,
}); });
await testDb.SaveChangesAsync(); await testDb.SaveChangesAsync();
return Ok(new { code = 200, message = "加入成功" }); return Ok(new { code = 200, message = "加入成功" });
@ -149,7 +155,7 @@ namespace asg_form.Controllers
} }
else else
{ {
return BadRequest(new error_mb { code = 400, message = "无权访问" }); return Ok(new error_mb { code = 401, message = "无权访问" });
} }
@ -325,6 +331,10 @@ namespace asg_form.Controllers
public string? belong { get; set; } public string? belong { get; set; }
public List<schedule_log> logs { get; set; } = new List<schedule_log>(); public List<schedule_log> logs { get; set; } = new List<schedule_log>();
public string? judge { get; set; }
public int com_limit { get; set; } = 2;
public string? person_type { get; set; }
} }
@ -346,7 +356,9 @@ namespace asg_form.Controllers
public string? belong { get; set; } public string? belong { get; set; }
public Uri? bilibiliuri { get; set;} public Uri? bilibiliuri { get; set;}
public string tag { get; set; } public string tag { get; set; }
public string? judge { get; set; }
public int comLimit { get; set; }
public string? personType { get; set; }
} }