35 lines
681 B
C#
35 lines
681 B
C#
|
|
using EasyEncryption;
|
|
using Newtonsoft.Json;
|
|
using Newtonsoft.Json.Linq;
|
|
using SWS.CAD.Models;
|
|
using SWS.CAD.Models.NoEntity;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Net.Http;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace SWS.CAD.Services
|
|
{
|
|
public class UserService : HttpService
|
|
{
|
|
public UserService() : base()
|
|
{
|
|
|
|
}
|
|
public async Task GetList()
|
|
{
|
|
|
|
var res = await this.GetAsync<List<User>>($"UserApi/GetList");
|
|
if (res.code == 200)
|
|
{
|
|
GlobalObject.Users = res.data;
|
|
}
|
|
else
|
|
{
|
|
}
|
|
}
|
|
}
|
|
}
|