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.
|
|
|
|
using DB.Dto;
|
|
|
|
|
using DB.Service;
|
|
|
|
|
|
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
using Microsoft.VisualBasic.ApplicationServices;
|
|
|
|
|
|
|
|
|
|
namespace RfidWeb
|
|
|
|
|
{
|
|
|
|
|
public class TestFactory
|
|
|
|
|
{
|
|
|
|
|
public static UserDto dto;
|
|
|
|
|
public static UserDto TestUser()
|
|
|
|
|
{
|
|
|
|
|
if (dto != null)
|
|
|
|
|
{
|
|
|
|
|
return dto;
|
|
|
|
|
}
|
|
|
|
|
long id = 7254397083167133696;
|
|
|
|
|
var userInfo = new UserService().Query(id);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
UserDto user = new UserDto
|
|
|
|
|
{
|
|
|
|
|
Id = userInfo.ID,
|
|
|
|
|
UserName = userInfo.UserName,
|
|
|
|
|
RoleId = userInfo.RoleId,
|
|
|
|
|
RoleName ="管理员",
|
|
|
|
|
RoleLevel =1
|
|
|
|
|
};
|
|
|
|
|
dto = user;
|
|
|
|
|
return user;
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|