[HttpGet("Get")]
public IActionResult Get([FromQuery]Cabinet c, [FromQuery] PageUtil p)
{
int code = 0;
//page = page==null?0:page-1;
List<Cabinet> data = new CabinetServer().Get(0, 20, "", "c_No desc");
return Ok(new { data, code });
}
/// <summary>
/// 防爆柜编号
/// </summary>
public string? c_No { get;set; }
/// <summary>
/// 柜子IP
/// </summary>
public string? c_IP { get; set; }
- 本文标题: NETCore API之HttpGet方法如何传递对象
- 文章分类:【.NET/Web】
- 非特殊说明,本文版权归【胡同里的砖头】个人博客 所有,转载请注明出处.