Untitled conversation
- User
{ "id":10, "createTime":"2021-02-26 14:15:38", "updateTime":"2021-02-26 14:15:38", "userId":"1", "name":"系统管理员", "label":"admin-sys", "remark":null, "relevance":1, "firmId":"" } 根据这个json数据生成对应的类,C# 代码
- Assistant
public class User { public int id { get; set; } public DateTime createTime { get; set; } public DateTime updateTime { get; set; } public string userId { get; set; } public string name { get; set; } public string label { get; set; } public string remark { get; set; } public int relevance { get; set; } public string firmId { get; set; } }
- User
{ "id":6, "createTime":"2023-03-21 17:26:47.965009", "updateTime":"2023-04-13 15:53:36.637000", "typeId":1, "name":"贵州诚合律师事务所", "orderNum":1, "remark":null, "parentId":null, "roleIdList":"57" } 根据这个json数据,生成对应的类,用C# 代码
- Assistant
public class LawFirm { public int id { get; set; } public DateTime createTime { get; set; } public DateTime updateTime { get; set; } public int typeId { get; set; } public string name { get; set; } public int orderNum { get; set; } public string remark { get; set; } public int? parentId { get; set; } public string roleIdList { get; set; } }