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

41 lines
2.1 KiB
C#

using HttpClientStudy.Model;
namespace HttpClientStudy.Service
{
/// <summary>
/// 账号 服务类
/// </summary>
public class AccountService
{
public List<Account> GetAllAccounts()
{
List<Account> accounts = new List<Account>()
{
new Account() { Id=1, Name="管理员01", Password="123456", Role="Admin"},
new Account() { Id=2, Name="管理员02", Password="123456", Role="Admin"},
new Account() { Id=3, Name="管理员03", Password="123456", Role="Admin"},
new Account() { Id=4, Name="管理员04", Password="123456", Role="Admin"},
new Account() { Id=5, Name="管理员05", Password="123456", Role="Admin"},
new Account() { Id=6, Name="管理员06", Password="123456", Role="Admin"},
new Account() { Id=7, Name="管理员07", Password="123456", Role="Admin"},
new Account() { Id=8, Name="管理员08", Password="123456", Role="Admin"},
new Account() { Id=9, Name="管理员09", Password="123456", Role="Admin"},
new Account() { Id=10, Name="管理员10", Password="123456", Role="Admin"},
new Account() { Id=11, Name="开发01", Password="123456", Role="Dev"},
new Account() { Id=12, Name="开发01", Password="123456", Role="Dev"},
new Account() { Id=13, Name="开发03", Password="123456", Role="Dev"},
new Account() { Id=14, Name="开发04", Password="123456", Role="Dev"},
new Account() { Id=15, Name="开发05", Password="123456", Role="Dev"},
new Account() { Id=16, Name="开发06", Password="123456", Role="Dev"},
new Account() { Id=17, Name="开发07", Password="123456", Role="Dev"},
new Account() { Id=18, Name="开发08", Password="123456", Role="Dev"},
new Account() { Id=19, Name="开发09", Password="123456", Role="Dev"},
new Account() { Id=20, Name="开发10", Password="123456", Role="Dev"},
};
return accounts;
}
}
}