59 lines
1.7 KiB
C#
59 lines
1.7 KiB
C#
using SqlSugar;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using Yi.Framework.Model.RABC.Entitys;
|
|
|
|
namespace Yi.Framework.Model.RABC.SeedData
|
|
{
|
|
public class UserSeed : AbstractSeed<UserEntity>
|
|
{
|
|
public override List<UserEntity> GetSeed()
|
|
{
|
|
UserEntity user1 = new UserEntity()
|
|
{
|
|
Id = SnowFlakeSingle.Instance.NextId(),
|
|
Name = "大橙子",
|
|
UserName = "cc",
|
|
Nick = "橙子",
|
|
Password = "123456",
|
|
Email = "454313500@qq.com",
|
|
Phone = "13800000000",
|
|
Sex = 0,
|
|
Address = "深圳",
|
|
Age = 20,
|
|
Introduction = "还有谁?",
|
|
OrderNum = 999,
|
|
Remark = "描述是什么呢?",
|
|
IsDeleted = false
|
|
};
|
|
user1.BuildPassword();
|
|
Entitys.Add(user1);
|
|
|
|
UserEntity user2 = new UserEntity()
|
|
{
|
|
Id = SnowFlakeSingle.Instance.NextId(),
|
|
Name = "大测试",
|
|
UserName = "test",
|
|
Nick = "测试",
|
|
Password = "123456",
|
|
Email = "454313500@qq.com",
|
|
Phone = "15900000000",
|
|
Sex = 0,
|
|
Address = "深圳",
|
|
Age = 18,
|
|
Introduction = "还有我!",
|
|
OrderNum = 1,
|
|
Remark = "我没有描述!",
|
|
IsDeleted = false
|
|
};
|
|
user2.BuildPassword();
|
|
Entitys.Add(user2);
|
|
|
|
return Entitys;
|
|
}
|
|
}
|
|
}
|