using System; using System.Collections.Generic; namespace GuangFu.StringTracing.Models { /// /// 钉钉部门响应模型 /// public class DingDingDepartmentResponse { public int errcode { get; set; } public string errmsg { get; set; } public List result { get; set; } public string request_id { get; set; } } /// /// 钉钉部门信息 /// public class DepartmentInfo { public bool auto_add_user { get; set; } public bool create_dept_group { get; set; } public long dept_id { get; set; } public string name { get; set; } public long parent_id { get; set; } } /// /// 钉钉部门请求模型(获取子部门列表) /// public class DingDingDepartmentRequest { public string language { get; set; } = "zh_CN"; public long dept_id { get; set; } } /// /// 同步结果响应模型 /// public class SyncResult { public bool Success { get; set; } public string Message { get; set; } public int TotalDepartments { get; set; } public int UpdatedCount { get; set; } public int InsertedCount { get; set; } public List Errors { get; set; } public SyncResult() { Errors = new List(); } } }