修改t4
This commit is contained in:
@@ -168,5 +168,11 @@
|
||||
<param name="idsListDto"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:Yi.Framework.ApiMicroservice.Controllers.UserController.GetRolesByUser">
|
||||
<summary>
|
||||
根据http上下文的用户得到该用户有哪些角色
|
||||
</summary>
|
||||
<returns></returns>
|
||||
</member>
|
||||
</members>
|
||||
</doc>
|
||||
|
||||
Binary file not shown.
@@ -6,8 +6,9 @@
|
||||
<#@ import namespace="System.Collections.Generic" #>
|
||||
<#@ output extension=".cs" #>
|
||||
<#
|
||||
|
||||
DirectoryInfo dir = new DirectoryInfo(@"D:\YiFramework\Yi\Yi.Framework\Yi.Framework.Model\Models\");
|
||||
string solutionsPath = Host.ResolveAssemblyReference("$(SolutionDir)");//获取解决方案路径
|
||||
string dirPath= Path.Combine(solutionsPath,@"Yi.Framework.Model\Models\");
|
||||
DirectoryInfo dir = new DirectoryInfo(dirPath);
|
||||
FileInfo[] finfo = dir.GetFiles();
|
||||
string filenames = string.Empty;
|
||||
List<string> filenameList = new List<string>();
|
||||
|
||||
@@ -6,8 +6,9 @@
|
||||
<#@ import namespace="System.Collections.Generic" #>
|
||||
<#@ output extension=".cs" #>
|
||||
<#
|
||||
|
||||
DirectoryInfo dir = new DirectoryInfo(@"D:\YiFramework\Yi\Yi.Framework\Yi.Framework.Model\Models\");
|
||||
string solutionsPath = Host.ResolveAssemblyReference("$(SolutionDir)");//获取解决方案路径
|
||||
string dirPath= Path.Combine(solutionsPath,@"Yi.Framework.Model\Models\");
|
||||
DirectoryInfo dir = new DirectoryInfo(dirPath);
|
||||
FileInfo[] finfo = dir.GetFiles();
|
||||
string filenames = string.Empty;
|
||||
List<string> filenameList = new List<string>();
|
||||
|
||||
@@ -11,9 +11,6 @@ namespace Yi.Framework.Service
|
||||
{
|
||||
public partial class MenuService:BaseService<menu>, IMenuService
|
||||
{
|
||||
public MenuService(DbContext Db) : base(Db) { }
|
||||
|
||||
|
||||
public async Task<menu> AddChildrenMenu(menu _menu, menu _children)
|
||||
{
|
||||
var menu_data = await _Db.Set<menu>().Include(u => u.children).Where(u => u.id == _menu.id).FirstOrDefaultAsync();
|
||||
|
||||
@@ -11,8 +11,6 @@ namespace Yi.Framework.Service
|
||||
{
|
||||
public partial class MouldService:BaseService<mould>, IMouldService
|
||||
{
|
||||
public MouldService(DbContext Db) : base(Db) { }
|
||||
|
||||
public async Task<bool> DelListByUpdateAsync(List<int> _ids)
|
||||
{
|
||||
var mouldList =await GetEntitiesAsync(u => _ids.Contains(u.id));
|
||||
|
||||
@@ -11,10 +11,6 @@ namespace Yi.Framework.Service
|
||||
{
|
||||
public partial class RoleService:BaseService<role>, IRoleService
|
||||
{
|
||||
public RoleService(DbContext Db):base(Db)
|
||||
{
|
||||
}
|
||||
|
||||
public async Task<bool> DelListByUpdateAsync(List<int> _ids)
|
||||
{
|
||||
var userList = await GetEntitiesAsync(u=>_ids.Contains(u.id));
|
||||
|
||||
@@ -12,21 +12,21 @@ namespace Yi.Framework.Service
|
||||
|
||||
public partial class MenuService:BaseService<menu>,IMenuService
|
||||
{
|
||||
//public MenuService(DbContext Db):base(Db){ }
|
||||
public MenuService(DbContext Db):base(Db){ }
|
||||
}
|
||||
|
||||
public partial class MouldService:BaseService<mould>,IMouldService
|
||||
{
|
||||
//public MouldService(DbContext Db):base(Db){ }
|
||||
public MouldService(DbContext Db):base(Db){ }
|
||||
}
|
||||
|
||||
public partial class RoleService:BaseService<role>,IRoleService
|
||||
{
|
||||
//public RoleService(DbContext Db):base(Db){ }
|
||||
public RoleService(DbContext Db):base(Db){ }
|
||||
}
|
||||
|
||||
public partial class UserService:BaseService<user>,IUserService
|
||||
{
|
||||
//public UserService(DbContext Db):base(Db){ }
|
||||
public UserService(DbContext Db):base(Db){ }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,8 +6,9 @@
|
||||
<#@ import namespace="System.Collections.Generic" #>
|
||||
<#@ output extension=".cs" #>
|
||||
<#
|
||||
|
||||
DirectoryInfo dir = new DirectoryInfo(@"D:\YiFramework\Yi\Yi.Framework\Yi.Framework.Model\Models\");
|
||||
string solutionsPath = Host.ResolveAssemblyReference("$(SolutionDir)");//获取解决方案路径
|
||||
string dirPath= Path.Combine(solutionsPath,@"Yi.Framework.Model\Models\");
|
||||
DirectoryInfo dir = new DirectoryInfo(dirPath);
|
||||
FileInfo[] finfo = dir.GetFiles();
|
||||
string filenames = string.Empty;
|
||||
List<string> filenameList = new List<string>();
|
||||
@@ -37,7 +38,7 @@ namespace Yi.Framework.Service
|
||||
|
||||
public partial class <#= fn #>Service:BaseService<<#= k #>>,I<#= fn #>Service
|
||||
{
|
||||
//public <#= fn #>Service(DbContext Db):base(Db){ }
|
||||
public <#= fn #>Service(DbContext Db):base(Db){ }
|
||||
}
|
||||
<# } #>
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user