You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
569 B
14 lines
569 B
using GDZZ.Core;
|
|
using GDZZ.Core.Entity;
|
|
|
|
namespace GDZZ.CodeFirst;
|
|
|
|
public class SysUserRoleSeedData : ISeedData , ISqlSugarEntitySeedData<SysUserRole>
|
|
{ public IEnumerable<SysUserRole> HasData()
|
|
{ string json = @"[{""SysUserId"":175624015269957,""SysRoleId"":175624015192133},{""SysUserId"":177325484421189,""SysRoleId"":175633246363717},{""SysUserId"":182314279026757,""SysRoleId"":175633246363717},{""SysUserId"":278024843153477,""SysRoleId"":278024843124805}]
|
|
";
|
|
List<SysUserRole> list = JsonUtil.ToObject<List<SysUserRole>>(json);
|
|
|
|
return list;
|
|
}}
|