2025-08-15 16:34:31 +08:00
|
|
|
|
|
2025-09-04 18:28:02 +08:00
|
|
|
|
using SWS.Commons;
|
|
|
|
|
using SWS.Model;
|
2025-08-15 16:34:31 +08:00
|
|
|
|
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
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|