36 lines
1.2 KiB
C#
36 lines
1.2 KiB
C#
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";
|
|
public string Password { get; set; } = "12345678a";
|
|
public int Delay { get; set; } = 1000;
|
|
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 LoginUrl => $"{ApiGateway}{LoginApi}";
|
|
|
|
//案件接口
|
|
public string GetTaskUrl => $"{ApiGateway}{GetTaskApi}";
|
|
|
|
|
|
|
|
//获取用户接口
|
|
|
|
public string GetUserUrl => $"{ApiGateway}{GetUserApi}";
|
|
public string DiposeOrderUrl => $"{ApiGateway}{DiposeOrder}";
|
|
|
|
public string CloseFileUrl => $"{ApiGateway}{CloseFileApi}";
|
|
|
|
|
|
} |