在开发中,给前端定义请求参数,有时某个字段,只在后端使用,前端不使用,可以用JsonIgnore特性性
/// <summary> /// 用户权限 /// </summary> [JsonIgnore] public bool userPower { get; set; } = true;