Laservall_manager_system/VOL.DingTalk/Models/DingTalkConfig.cs

43 lines
1.4 KiB
C#
Raw Normal View History

2025-09-26 13:35:45 +08:00
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace VOL.DingTalk.Models
{
/*
"dingtalk": {
"corp_id": "dingec656045526ce9c0ee0f45d8e4f7c288",
"app_key": "dingtl9hb00ktdkguzrh",
"app_secret": "NkWagc8VEhdZyjEPkK0oYbi_ZzqVMHLelmFWdGswBjh2zGgSt0UWLj1W58xNHwfv",
"agent_id": 3973173455
},
*/
public class DingTalkConfig
{
#if DEBUG
2025-09-26 13:35:45 +08:00
public string CorpId = "dingec656045526ce9c0ee0f45d8e4f7c288";
public string AppKey = "dingtl9hb00ktdkguzrh";
public string AppSecret = "NkWagc8VEhdZyjEPkK0oYbi_ZzqVMHLelmFWdGswBjh2zGgSt0UWLj1W58xNHwfv";
public long AgentId = 3973173455;
#else
// 钉钉测试企业
public string CorpId = "ding994fa2867db3cb44ee0f45d8e4f7c288";
public string AppKey = "dingokdmazowevvpxolh";
public string AppSecret = "sYCVrttZZC-K_sIrPw1m20j41Pcbbxt2fC5joFQGOh7xjUxD8DT2I_KKZ4S2zje8";
public long AgentId = 4018728780;
#endif
2025-09-26 13:35:45 +08:00
public List<string> fields = [
"sys00-name", // 姓名
"sys00-email", // 邮箱
"sys00-mobile", // 手机号
"sys02-certNo", // 证件号码
"sys02-birthTime", // 出生日期
"sys02-sexType", // 性别
"sys00-dept", // 部门
"sys00-jobNumber" // 工号
];
}
}