// using Microsoft.Extensions.Configuration; using MoYu.ConfigurableOptions; namespace SafeCampus.Core; public class AppInfoOptions : IConfigurableOptionsListener { /// /// 深象智能API_Host /// public string SXAPIURL { get; set; } /// /// AppKey /// public string AppKey { get; set; } /// /// AppSecret /// public string AppSecret { get; set; } /// /// 场所ID /// public string PoiId { get; set; } /// /// 租户ID /// public string TenantCode { get; set; } public void PostConfigure(AppInfoOptions options, IConfiguration configuration) { } public void OnListener(AppInfoOptions options, IConfiguration configuration) { SXAPIURL = options.SXAPIURL; AppKey = options.AppKey; AppSecret = options.AppSecret; PoiId = options.PoiId; TenantCode = options.TenantCode; } }