FRPConfig.cs 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. namespace LYFZ.WanYuKeFuData.Model
  6. {
  7. public class FRPConfig
  8. {
  9. public FRPConfig()
  10. {
  11. }
  12. public static FRPConfig JsonDeserializeObject(string jsonData)
  13. {
  14. return (FRPConfig)Newtonsoft.Json.JsonConvert.DeserializeObject(jsonData, typeof(FRPConfig));
  15. }
  16. string _server_addr="";
  17. /// <summary>
  18. /// 服务器(域名)地址
  19. /// </summary>
  20. public string Server_addr
  21. {
  22. get { return _server_addr; }
  23. set { _server_addr = value; }
  24. }
  25. int _server_port = 0;
  26. /// <summary>
  27. /// 服务器端口
  28. /// </summary>
  29. public int Server_port
  30. {
  31. get { return _server_port; }
  32. set { _server_port = value; }
  33. }
  34. int _vhost_http_port = 0;
  35. /// <summary>
  36. /// Http访问端口
  37. /// </summary>
  38. public int Vhost_http_port
  39. {
  40. get { return _vhost_http_port; }
  41. set { _vhost_http_port = value; }
  42. }
  43. int _dashboard_port = 0;
  44. /// <summary>
  45. /// 后台端口
  46. /// </summary>
  47. public int Dashboard_port
  48. {
  49. get { return _dashboard_port; }
  50. set { _dashboard_port = value; }
  51. }
  52. string _privilege_token = "";
  53. /// <summary>
  54. /// 授权Token
  55. /// </summary>
  56. public string Privilege_token
  57. {
  58. get { return _privilege_token; }
  59. set { _privilege_token = value; }
  60. }
  61. string _dashboard_user = "admin";
  62. /// <summary>
  63. /// 后台登录帐号
  64. /// </summary>
  65. public string Dashboard_user
  66. {
  67. get { return _dashboard_user; }
  68. set { _dashboard_user = value; }
  69. }
  70. string _dashboard_pwd = "admin";
  71. /// <summary>
  72. /// 后台登录密码
  73. /// </summary>
  74. public string Dashboard_pwd
  75. {
  76. get { return _dashboard_pwd; }
  77. set { _dashboard_pwd = value; }
  78. }
  79. int _IISWebPort = 0;
  80. /// <summary>
  81. /// IIS Web访问端口
  82. /// </summary>
  83. public int IISWebPort
  84. {
  85. get { return _IISWebPort; }
  86. set { _IISWebPort = value; }
  87. }
  88. public override string ToString()
  89. {
  90. return Newtonsoft.Json.JsonConvert.SerializeObject(this);
  91. }
  92. }
  93. }
  94. /*
  95. {
  96. "server_addr":"bjb.lyfz.net",
  97. "server_port":7000,
  98. "privilege_token":"lyfzbjtoken2",
  99. "vhost_http_port":800,
  100. "dashboard_portr":7500,
  101. "dashboard_user":"admin",
  102. "dashboard_pwd":"admin"
  103. }
  104. */