标签:net ati ram data core loading form表单 type test
[HttpGet] public string TestGet(string name) { return name; }
[HttpGet] public string TestGet([FromQuery] Test test) { return test.name; }
[HttpPost] public string TestPost([FromBody] Test test) { return test.name; }
postman调用
[HttpPost] public string TestPost([FromForm] Test test) { /*业务逻辑*/ return test.name; } public class Test { public string name { get; set; } public IFormFile file { get; set; }//图片 }
postman调用:
标签:net ati ram data core loading form表单 type test
原文地址:https://www.cnblogs.com/MuZiLily/p/14577830.html