平安校园
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

51 rivejä
1.0 KiB

  1. //
  2. using Microsoft.Extensions.Configuration;
  3. using MoYu.ConfigurableOptions;
  4. namespace SafeCampus.Core;
  5. public class AppInfoOptions : IConfigurableOptionsListener<AppInfoOptions>
  6. {
  7. /// <summary>
  8. /// 深象智能API_Host
  9. /// </summary>
  10. public string SXAPIURL { get; set; }
  11. /// <summary>
  12. /// AppKey
  13. /// </summary>
  14. public string AppKey { get; set; }
  15. /// <summary>
  16. /// AppSecret
  17. /// </summary>
  18. public string AppSecret { get; set; }
  19. /// <summary>
  20. /// 场所ID
  21. /// </summary>
  22. public string PoiId { get; set; }
  23. /// <summary>
  24. /// 租户ID
  25. /// </summary>
  26. public string TenantCode { get; set; }
  27. public void PostConfigure(AppInfoOptions options, IConfiguration configuration)
  28. {
  29. }
  30. public void OnListener(AppInfoOptions options, IConfiguration configuration)
  31. {
  32. SXAPIURL = options.SXAPIURL;
  33. AppKey = options.AppKey;
  34. AppSecret = options.AppSecret;
  35. PoiId = options.PoiId;
  36. TenantCode = options.TenantCode;
  37. }
  38. }