提交.Net6版本
This commit is contained in:
23
Yi.Framework.Net6/Yi.Framework.Model/Models/menu.cs
Normal file
23
Yi.Framework.Net6/Yi.Framework.Model/Models/menu.cs
Normal file
@@ -0,0 +1,23 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Yi.Framework.Model.Models
|
||||
{
|
||||
public class menu :loopModel
|
||||
{
|
||||
public string icon { get; set; }
|
||||
public string router { get; set; }
|
||||
public string menu_name { get; set; }
|
||||
|
||||
|
||||
|
||||
public List<menu> children { get; set; }
|
||||
|
||||
public List<role> roles { get; set; }
|
||||
|
||||
public mould mould { get; set; }
|
||||
}
|
||||
}
|
||||
14
Yi.Framework.Net6/Yi.Framework.Model/Models/mould.cs
Normal file
14
Yi.Framework.Net6/Yi.Framework.Model/Models/mould.cs
Normal file
@@ -0,0 +1,14 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Yi.Framework.Model.Models
|
||||
{
|
||||
public class mould:baseModel<int>
|
||||
{
|
||||
public string mould_name { get; set; }
|
||||
public string url { get; set; }
|
||||
}
|
||||
}
|
||||
18
Yi.Framework.Net6/Yi.Framework.Model/Models/role.cs
Normal file
18
Yi.Framework.Net6/Yi.Framework.Model/Models/role.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Yi.Framework.Model.Models
|
||||
{
|
||||
public class role:baseModel<int>
|
||||
{
|
||||
public string role_name { get; set; }
|
||||
public string introduce { get; set; }
|
||||
|
||||
|
||||
public List<menu> menus { get; set; }
|
||||
public List<user> users { get; set; }
|
||||
}
|
||||
}
|
||||
27
Yi.Framework.Net6/Yi.Framework.Model/Models/user.cs
Normal file
27
Yi.Framework.Net6/Yi.Framework.Model/Models/user.cs
Normal file
@@ -0,0 +1,27 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Yi.Framework.Model.Models
|
||||
{
|
||||
public class user:baseModel<int>
|
||||
{
|
||||
public string username { get; set; }
|
||||
public string password { get; set; }
|
||||
public string icon { get; set; }
|
||||
public string nick { get; set; }
|
||||
public string email { get; set; }
|
||||
public string ip { get; set; }
|
||||
public int? age { get; set; }
|
||||
public string introduction { get; set; }
|
||||
public string address { get; set; }
|
||||
public string phone { get; set; }
|
||||
|
||||
|
||||
public List<role> roles { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
14
Yi.Framework.Net6/Yi.Framework.Model/Models/visit.cs
Normal file
14
Yi.Framework.Net6/Yi.Framework.Model/Models/visit.cs
Normal file
@@ -0,0 +1,14 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Yi.Framework.Model.Models
|
||||
{
|
||||
public class visit:baseModel<int>
|
||||
{
|
||||
public DateTime time { get; set; }
|
||||
public int num { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user