12
This commit is contained in:
parent
f67262967c
commit
0d369e426f
@ -47,6 +47,9 @@ namespace asg_form.Controllers
|
||||
game.referee = req.referee;
|
||||
game.belong = req.belong;
|
||||
game.tag=req.tag;
|
||||
game.judge = req.judge;
|
||||
game.commentary = req.commentary;
|
||||
game.person_type = req.personType;
|
||||
await testDb.SaveChangesAsync();
|
||||
return Ok(new { code = 200, message = "加入成功" });
|
||||
}
|
||||
@ -96,7 +99,10 @@ namespace asg_form.Controllers
|
||||
commentary = req.commentary,
|
||||
referee = req.referee,
|
||||
belong = req.belong,
|
||||
tag = req.tag
|
||||
tag = req.tag,
|
||||
judge = req.judge,
|
||||
com_limit = req.comLimit,
|
||||
person_type = req.personType,
|
||||
});
|
||||
await testDb.SaveChangesAsync();
|
||||
return Ok(new { code = 200, message = "加入成功" });
|
||||
@ -149,7 +155,7 @@ namespace asg_form.Controllers
|
||||
}
|
||||
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 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 Uri? bilibiliuri { get; set;}
|
||||
public string tag { get; set; }
|
||||
|
||||
public string? judge { get; set; }
|
||||
public int comLimit { get; set; }
|
||||
public string? personType { get; set; }
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user