OpenApiSection - 复制.cs 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. //using System;
  2. //using System.Collections.Generic;
  3. //using System.Configuration;
  4. //using System.Linq;
  5. //using System.Text;
  6. //using System.Threading.Tasks;
  7. //namespace cuidian.Common
  8. //{
  9. // public class OpenApiSection : ConfigurationSection
  10. // {
  11. // [ConfigurationProperty("AppKey", DefaultValue = "", IsRequired = true, IsKey = false)]
  12. // public string AppKey
  13. // {
  14. // get { return (string)this["AppKey"]; }
  15. // set { this["AppKey"] = value; }
  16. // }
  17. // [ConfigurationProperty("FromAccount", DefaultValue = "", IsRequired = true, IsKey = false)]
  18. // public string FromAccount
  19. // {
  20. // get { return (string)this["FromAccount"]; }
  21. // set { this["FromAccount"] = value; }
  22. // }
  23. // [ConfigurationProperty("ToAccount", DefaultValue = "", IsRequired = true, IsKey = false)]
  24. // public string ToAccount
  25. // {
  26. // get { return (string)this["ToAccount"]; }
  27. // set { this["ToAccount"] = value; }
  28. // }
  29. // [ConfigurationProperty("AppSecret", DefaultValue = "", IsRequired = true, IsKey = false)]
  30. // public string AppSecret
  31. // {
  32. // get { return (string)this["AppSecret"]; }
  33. // set { this["AppSecret"] = value; }
  34. // }
  35. // [ConfigurationProperty("BaseUrl", DefaultValue = "https://api.yonyouup.com", IsRequired = true, IsKey = false)]
  36. // public string BaseUrl
  37. // {
  38. // get { return (string)this["BaseUrl"]; }
  39. // set { this["BaseUrl"] = value; }
  40. // }
  41. // }
  42. //}