Start implementing card

This commit is contained in:
asesidaa
2023-02-09 17:25:42 +08:00
parent f7761f200f
commit 9c759c3b1a
28 changed files with 872 additions and 89 deletions
@@ -20,5 +20,20 @@ namespace MainServer.Controllers.API
{
return context.MusicUnlocks.First();
}
[HttpPost]
public ActionResult<string> TestXmlInputOutput([FromForm(Name = "my_model")]TestModel model,
[FromForm(Name = "my_type")]int type)
{
return Ok($"{model.Name}\n{model.Age}\n{type}");
}
}
public class TestModel
{
public string Name { get; set; } = string.Empty;
public int Age { get; set; }
}
}