123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- namespace LYFZ.WanYuKeFuData.Model
- {
- public class FRPConfig
- {
- public FRPConfig()
- {
- }
- public static FRPConfig JsonDeserializeObject(string jsonData)
- {
- return (FRPConfig)Newtonsoft.Json.JsonConvert.DeserializeObject(jsonData, typeof(FRPConfig));
- }
- string _server_addr="";
- /// <summary>
- /// 服务器(域名)地址
- /// </summary>
- public string Server_addr
- {
- get { return _server_addr; }
- set { _server_addr = value; }
- }
- int _server_port = 0;
- /// <summary>
- /// 服务器端口
- /// </summary>
- public int Server_port
- {
- get { return _server_port; }
- set { _server_port = value; }
- }
- int _vhost_http_port = 0;
- /// <summary>
- /// Http访问端口
- /// </summary>
- public int Vhost_http_port
- {
- get { return _vhost_http_port; }
- set { _vhost_http_port = value; }
- }
- int _dashboard_port = 0;
- /// <summary>
- /// 后台端口
- /// </summary>
- public int Dashboard_port
- {
- get { return _dashboard_port; }
- set { _dashboard_port = value; }
- }
- string _privilege_token = "";
- /// <summary>
- /// 授权Token
- /// </summary>
- public string Privilege_token
- {
- get { return _privilege_token; }
- set { _privilege_token = value; }
- }
- string _dashboard_user = "admin";
- /// <summary>
- /// 后台登录帐号
- /// </summary>
- public string Dashboard_user
- {
- get { return _dashboard_user; }
- set { _dashboard_user = value; }
- }
- string _dashboard_pwd = "admin";
- /// <summary>
- /// 后台登录密码
- /// </summary>
- public string Dashboard_pwd
- {
- get { return _dashboard_pwd; }
- set { _dashboard_pwd = value; }
- }
- int _IISWebPort = 0;
- /// <summary>
- /// IIS Web访问端口
- /// </summary>
- public int IISWebPort
- {
- get { return _IISWebPort; }
- set { _IISWebPort = value; }
- }
- public override string ToString()
- {
- return Newtonsoft.Json.JsonConvert.SerializeObject(this);
- }
- }
- }
- /*
- {
- "server_addr":"bjb.lyfz.net",
- "server_port":7000,
- "privilege_token":"lyfzbjtoken2",
- "vhost_http_port":800,
- "dashboard_portr":7500,
- "dashboard_user":"admin",
- "dashboard_pwd":"admin"
- }
- */
|