Skip to content

Commit 7300b80

Browse files
author
v-anzha
committed
jwt 3.0 perfect authorize
1 parent 2d51ba6 commit 7300b80

25 files changed

Lines changed: 351 additions & 128 deletions

Blog.Core.FrameWork/Blog.Core.FrameWork.IRepository/Blog.Core.FrameWork.IRepository.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11

2-
32
//引入命名空间
43

54

@@ -12,7 +11,7 @@
1211

1312
//--------------------------------------------------------------------
1413
// 此代码由T4模板自动生成
15-
// 生成时间 2018-10-09 13:33:11
14+
// 生成时间 2018-12-17 13:02:18
1615
// 对此文件的更改可能会导致不正确的行为,并且如果重新生成代码,这些更改将会丢失。
1716
//--------------------------------------------------------------------
1817

Blog.Core.FrameWork/Blog.Core.FrameWork.IServices/Blog.Core.FrameWork.IServices.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11

2-
32
//引入命名空间
43

54

@@ -12,7 +11,7 @@
1211

1312
//--------------------------------------------------------------------
1413
// 此代码由T4模板自动生成
15-
// 生成时间 2018-10-09 13:33:13
14+
// 生成时间 2018-12-17 13:05:54
1615
// 对此文件的更改可能会导致不正确的行为,并且如果重新生成代码,这些更改将会丢失。
1716
//--------------------------------------------------------------------
1817

Blog.Core.FrameWork/Blog.Core.FrameWork.Repository/Blog.Core.FrameWork.Repository.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11

2-
32
//引入命名空间
43

54

@@ -12,7 +11,7 @@
1211

1312
//--------------------------------------------------------------------
1413
// 此代码由T4模板自动生成
15-
// 生成时间 2018-10-09 13:33:11
14+
// 生成时间 2018-12-17 13:07:29
1615
// 对此文件的更改可能会导致不正确的行为,并且如果重新生成代码,这些更改将会丢失。
1716
//--------------------------------------------------------------------
1817

Blog.Core.FrameWork/Blog.Core.FrameWork.Services/Blog.Core.FrameWork.Services.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11

2-
32
//引入命名空间
43

54

@@ -12,7 +11,7 @@
1211

1312
//--------------------------------------------------------------------
1413
// 此代码由T4模板自动生成
15-
// 生成时间 2018-10-09 13:33:12
14+
// 生成时间 2018-12-17 13:08:24
1615
// 对此文件的更改可能会导致不正确的行为,并且如果重新生成代码,这些更改将会丢失。
1716
//--------------------------------------------------------------------
1817

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
using Blog.Core.IRepository.Base;
2+
using Blog.Core.Model.Models;
3+
4+
namespace Blog.Core.IRepository
5+
{
6+
/// <summary>
7+
/// IModuleRepository
8+
/// </summary>
9+
public interface IModuleRepository : IBaseRepository<Module>//类名
10+
{
11+
12+
13+
}
14+
}
15+
16+
17+
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
using Blog.Core.IRepository.Base;
2+
using Blog.Core.Model.Models;
3+
4+
namespace Blog.Core.IRepository
5+
{
6+
/// <summary>
7+
/// IRoleModulePermissionRepository
8+
/// </summary>
9+
public interface IRoleModulePermissionRepository : IBaseRepository<RoleModulePermission>//类名
10+
{
11+
12+
13+
}
14+
}
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
using Blog.Core.IServices.BASE;
2+
using Blog.Core.Model.Models;
3+
4+
namespace Blog.Core.IServices
5+
{
6+
/// <summary>
7+
/// ModuleServices
8+
/// </summary>
9+
public interface IModuleServices :IBaseServices<Module>
10+
{
11+
12+
13+
}
14+
}
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
using Blog.Core.IServices.BASE;
2+
using Blog.Core.Model.Models;
3+
using System.Collections.Generic;
4+
using System.Threading.Tasks;
5+
6+
namespace Blog.Core.IServices
7+
{
8+
/// <summary>
9+
/// RoleModulePermissionServices
10+
/// </summary>
11+
public interface IRoleModulePermissionServices :IBaseServices<RoleModulePermission>
12+
{
13+
14+
Task<List<RoleModulePermission>> GeRoleModule();
15+
}
16+
}

Blog.Core.Model/Blog.Core.Model.csproj

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,8 @@
88
<DocumentationFile>..\Blog.Core\Blog.Core.Model.xml</DocumentationFile>
99
</PropertyGroup>
1010

11+
<ItemGroup>
12+
<PackageReference Include="sqlSugarCore" Version="4.9.7" />
13+
</ItemGroup>
14+
1115
</Project>

Blog.Core.Model/Models/Module.cs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@
77
namespace Blog.Core.Model.Models
88
{
99
/// <summary>
10-
/// 菜单表
10+
/// 接口API地址信息表
1111
/// </summary>
1212
public class Module
1313
{
1414
public Module()
1515
{
16-
this.ChildModule = new List<Module>();
17-
this.ModulePermission = new List<ModulePermission>();
18-
this.RoleModulePermission = new List<RoleModulePermission>();
16+
//this.ChildModule = new List<Module>();
17+
//this.ModulePermission = new List<ModulePermission>();
18+
//this.RoleModulePermission = new List<RoleModulePermission>();
1919
}
2020

2121
public int Id { get; set; }
@@ -97,9 +97,9 @@ public Module()
9797
/// </summary>
9898
public DateTime? ModifyTime { get; set; }
9999

100-
public virtual Module ParentModule { get; set; }
101-
public virtual ICollection<Module> ChildModule { get; set; }
102-
public virtual ICollection<ModulePermission> ModulePermission { get; set; }
103-
public virtual ICollection<RoleModulePermission> RoleModulePermission { get; set; }
100+
//public virtual Module ParentModule { get; set; }
101+
//public virtual ICollection<Module> ChildModule { get; set; }
102+
//public virtual ICollection<ModulePermission> ModulePermission { get; set; }
103+
//public virtual ICollection<RoleModulePermission> RoleModulePermission { get; set; }
104104
}
105105
}

0 commit comments

Comments
 (0)