GetDingTalkToken.cs 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. // 大名科技(天津)有限公司 版权所有
  2. //
  3. // 此源代码遵循位于源代码树根目录中的 LICENSE 文件的许可证
  4. //
  5. // 不得利用本项目从事危害国家安全、扰乱社会秩序、侵犯他人合法权益等法律法规禁止的活动
  6. //
  7. // 任何基于本项目二次开发而产生的一切法律纠纷和责任,均与作者无关
  8. namespace Admin.NET.Core.Integrations;
  9. public class GetDingTalkTokenInput
  10. {
  11. /// <summary>
  12. /// 应用的唯一标识key
  13. /// </summary>
  14. [JsonPropertyName("appkey")]
  15. public string AppKey { get; set; }
  16. /// <summary>
  17. /// 应用的密钥。AppKey和AppSecret可在钉钉开发者后台的应用详情页面获取。
  18. /// </summary>
  19. [JsonPropertyName("appsecret")]
  20. public string AppSecret { get; set; }
  21. }
  22. public class GetDingTalkTokenOutput
  23. {
  24. /// <summary>
  25. /// 生成的access_token
  26. /// </summary>
  27. [JsonPropertyName("access_token")]
  28. public string AccessToken { get; set; }
  29. /// <summary>
  30. /// access_token的过期时间,单位秒
  31. /// </summary>
  32. [JsonPropertyName("expires_in")]
  33. public int ExpiresIn { get; set; }
  34. /// <summary>
  35. /// 返回码描述。
  36. /// </summary>
  37. [JsonPropertyName("errmsg")]
  38. public string ErrMsg { get; set; }
  39. /// <summary>
  40. /// 返回码。
  41. /// </summary>
  42. [JsonPropertyName("errcode")]
  43. public int ErrCode { get; set; }
  44. }