using System.Text.Json.Serialization; namespace WorkerService1.Dto.Configuration; public class ClientOptions { public string ApiGateway { get; set; } = "http://121.4.75.240/"; [JsonPropertyName("username")] public string UserName { get; set; } = "ganquanjiedao"; [JsonPropertyName("password")] public string Password { get; set; } = "12345678a"; public int Delay { get; set; } = 1000; public bool DispatchingRunning { get; set; } = false; public bool CloseFileRunning { get; set; } = false; public string LoginApi { get; set; } = "api/auth/v5/users/login"; public string GetTaskApi { get; set; } = "api/megcity/v1/events/queryByWaterFall"; public string GetUserApi { get; set; } = "api/galaxy/v1/auth/users/query"; public string DiposeOrder { get; set; } = "api/megcity/v1/events/dispatch/{0}"; public string CloseFileApi { get; set; } = "api/megcity/v1/events/pass"; public string GetCamerasApi { get; set; } = "api/galaxy/v1/device/cameras:search"; //登录接口 public string LoginUrl => $"{ApiGateway}{LoginApi}"; //案件接口 public string GetTaskUrl => $"{ApiGateway}{GetTaskApi}"; //获取用户接口 public string GetUserUrl => $"{ApiGateway}{GetUserApi}"; public string DiposeOrderUrl => $"{ApiGateway}{DiposeOrder}"; public string CloseFileUrl => $"{ApiGateway}{CloseFileApi}"; public string GetCamerasUrl => $"{ApiGateway}{GetCamerasApi}"; }