StorageSettings.cs 1014 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. using System.Collections.Generic;
  2. using System;
  3. namespace WingServerCommon.Config
  4. {
  5. public class StorageSettings
  6. {
  7. /// <summary>
  8. /// 默认云存储服务
  9. /// </summary>
  10. public StorageServerEnum DefaultStorageServer { get; set; }
  11. /// <summary>
  12. /// 云存储服务分配的 用户id
  13. /// </summary>
  14. public string AppId { get; set; }=string.Empty;
  15. /// <summary>
  16. /// 秘钥
  17. /// </summary>
  18. public string Sercret { get; set; }=string.Empty;
  19. /// <summary>
  20. /// 存储服务
  21. /// </summary>
  22. public string CFSServerUrl { get; set; }=string.Empty;
  23. /// <summary>
  24. /// cdn服务
  25. /// </summary>
  26. public string CDNServerUrl { get; set; }=string.Empty;
  27. }
  28. /// <summary>
  29. /// Storage 服务类型
  30. /// </summary>
  31. public enum StorageServerEnum
  32. {
  33. //自建云服务
  34. Vinno,
  35. //腾讯云服务
  36. Tencent
  37. }
  38. }