Files
GX.O3.WMS/GuangFu.StringTracing/.svn/pristine/98/9813d03c6195dc641afae44da66782ef46cdf765.svn-base
T

55 lines
1.5 KiB
Plaintext
Executable File

using System;
using System.Collections.Generic;
namespace GuangFu.StringTracing.Models
{
/// <summary>
/// 钉钉部门响应模型
/// </summary>
public class DingDingDepartmentResponse
{
public int errcode { get; set; }
public string errmsg { get; set; }
public List<DepartmentInfo> result { get; set; }
public string request_id { get; set; }
}
/// <summary>
/// 钉钉部门信息
/// </summary>
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; }
}
/// <summary>
/// 钉钉部门请求模型(获取子部门列表)
/// </summary>
public class DingDingDepartmentRequest
{
public string language { get; set; } = "zh_CN";
public long dept_id { get; set; }
}
/// <summary>
/// 同步结果响应模型
/// </summary>
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<string> Errors { get; set; }
public SyncResult()
{
Errors = new List<string>();
}
}
}