You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

52 lines
1.2 KiB

2 years ago
using BBWYB.Client.Models;
2 years ago
using CommunityToolkit.Mvvm.ComponentModel;
using Newtonsoft.Json;
2 years ago
using System.Collections.Generic;
2 years ago
using System.Runtime.InteropServices;
2 years ago
namespace BBWYB.Client
{
2 years ago
[ClassInterface(ClassInterfaceType.AutoDual)]
[ComVisible(true)]
2 years ago
public class GlobalContext : ObservableObject
2 years ago
{
public GlobalContext()
{
2 years ago
BBWYBApiVersion = "10020";
2 years ago
}
private User user;
2 years ago
public User User { get => user; set { SetProperty(ref user, value); } }
2 years ago
public string UserToken { get; set; }
public IList<LogisticsResponse> LogisticsResponseList { get; set; }
/// <summary>
/// JD客户端
/// </summary>
//public IJdClient JdClient { get; set; }
#region APIHost
2 years ago
public string BBWYApiHost { get; set; }
2 years ago
public string MDSApiHost { get; set; }
2 years ago
public string BBWYCApiHost { get; set; }
public string QKApiHost { get; set; }
public string BBWYBApiVersion { get; set; }
public string GetUserString()
{
return JsonConvert.SerializeObject(User);
}
public string GetBBWYBApiVersion()
{
return BBWYBApiVersion;
}
2 years ago
#endregion
}
}