[HttpPost] public string Post([FromBody]LoginModel model) { if (model.Account == "longdb" && model.Pw == "123") { return "测试成功"; } return "1222kk"; }
Postman 填写对应参数。代码中LoginModel为类。
2023-12-23 19:41:03
[HttpPost] public string Post([FromBody]LoginModel model) { if (model.Account == "longdb" && model.Pw == "123") { return "测试成功"; } return "1222kk"; }
Postman 填写对应参数。代码中LoginModel为类。