commit
449ac7c20f
@ -0,0 +1,15 @@
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using OL.FrameCore.Application.Article.Dto;
|
||||
using OL.FrameCore.Domain.Entity;
|
||||
using OL.FrameCore.Infrastructure.UnitOfWork;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
using System.Linq;
|
||||
using OL.FrameCore.Infrastructure.Utility;
|
||||
|
||||
namespace OL.FrameCore.Application.Article
|
||||
{
|
||||
public class ArticleService: IArticleService
|
||||
{
|
||||
IUnitOfWork _unitOfwork;
|
@ -0,0 +1,15 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace OL.FrameCore.Application.Article.Dto
|
||||
{
|
||||
public class AddArticleRequest
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public string Title { get; set; }
|
||||
public string Content { get; set; }
|
||||
public string Tags { get; set; }
|
||||
public string Summary { get; set; }
|
||||
public int ArticleType { get; set; }
|
||||
public int CreateId { get; set; }
|
@ -0,0 +1,15 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace OL.FrameCore.Application.Article.Dto
|
||||
{
|
||||
public class GetArticleListRequest : GetListRequestBase
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public string Title { get; set; }
|
||||
public string Tag { get; set; }
|
||||
public int Status { get; set; }
|
||||
|
||||
public DateTime BeginTime { get; set; }
|
||||
public DateTime EndTime { get; set; }
|
@ -0,0 +1,15 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace OL.FrameCore.Application.Article.Dto
|
||||
{
|
||||
public class GetArticleListResponse
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public string Title { get; set; }
|
||||
public string Tags { get; set; }
|
||||
public DateTime ReleaseTime { get; set; }
|
||||
public int Status { get; set; }
|
||||
public string StatusText
|
||||
{
|
@ -0,0 +1,15 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace OL.FrameCore.Application.Article.Dto
|
||||
{
|
||||
public class GetArticleResponse
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public string Title { get; set; }
|
||||
public string Content { get; set; }
|
||||
public string Tags { get; set; }
|
||||
public string Summary { get; set; }
|
||||
public int Type { get; set; }
|
||||
public DateTime CreateTime { get; set; }
|
@ -0,0 +1,10 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace OL.FrameCore.Application.Article.Dto
|
||||
{
|
||||
public class GetArticleViewListRequest
|
||||
{
|
||||
}
|
||||
}
|
@ -0,0 +1,15 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace OL.FrameCore.Application.Article.Dto
|
||||
{
|
||||
public class GetArticleViewListResponse
|
||||
{
|
||||
public long Id { get; set; }
|
||||
public string Title { get; set; }
|
||||
public int Type { get; set; }
|
||||
public string TypeText
|
||||
{
|
||||
get
|
||||
{
|
@ -0,0 +1,15 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace OL.FrameCore.Application.Article.Dto
|
||||
{
|
||||
public class UpdateArticleRequest
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public string Title { get; set; }
|
||||
public string Content { get; set; }
|
||||
public string Tags { get; set; }
|
||||
public string Summary { get; set; }
|
||||
public int ArticleType { get; set; }
|
||||
public int UpdateId { get; set; }
|
@ -0,0 +1,15 @@
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using OL.FrameCore.Application.Article.Dto;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace OL.FrameCore.Application.Article
|
||||
{
|
||||
public interface IArticleService
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取文章列表
|
||||
/// </summary>
|
||||
/// <param name="request"></param>
|
||||
/// <returns></returns>
|
@ -0,0 +1,15 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace OL.FrameCore.Application
|
||||
{
|
||||
public class CacheKey
|
||||
{
|
||||
const string CacheHead = "Cache";
|
||||
public static string Menu(int userId) => $"{CacheHead}.{nameof(Menu)}:User{userId}";
|
||||
public static string Permission(int userId) => $"{CacheHead}.{nameof(Permission)}:User{userId}";
|
||||
public static string LoginStatistics(int userId) => $"{CacheHead}.{nameof(LoginStatistics)}:User{userId}";
|
||||
|
||||
|
||||
public static string ImportUser(string tag) => $"{CacheHead}.{nameof(ImportUser)}:{tag}";
|
@ -0,0 +1,15 @@
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using OL.FrameCore.Application.CacheManage.Dto;
|
||||
using OL.FrameCore.Infrastructure.Cache;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
namespace OL.FrameCore.Application.CacheManage
|
||||
{
|
||||
public class CacheManageService : ICacheManageService
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取缓存列表
|
||||
/// </summary>
|
@ -0,0 +1,12 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace OL.FrameCore.Application.CacheManage.Dto
|
||||
{
|
||||
public class GetCacheContentResponse
|
||||
{
|
||||
public string Key { get; set; }
|
||||
public string Content { get; set; }
|
||||
}
|
||||
}
|
@ -0,0 +1,11 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace OL.FrameCore.Application.CacheManage.Dto
|
||||
{
|
||||
public class GetCacheListRequest : GetListRequestBase
|
||||
{
|
||||
public string Key { get; set; }
|
||||
}
|
||||
}
|
@ -0,0 +1,13 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace OL.FrameCore.Application.CacheManage.Dto
|
||||
{
|
||||
public class GetCacheListResponse
|
||||
{
|
||||
public string CacheKey { get; set; }
|
||||
public DateTime CreateTime { get; set; }
|
||||
public DateTime ExpireTime { get; set; }
|
||||
}
|
||||
}
|
@ -0,0 +1,15 @@
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using OL.FrameCore.Application.CacheManage.Dto;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace OL.FrameCore.Application.CacheManage
|
||||
{
|
||||
public interface ICacheManageService
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取缓存列表
|
||||
/// </summary>
|
||||
/// <param name="request"></param>
|
||||
/// <returns></returns>
|
@ -0,0 +1,15 @@
|
||||
using OL.FrameCore.Application.CommonData.Dto;
|
||||
using OL.FrameCore.Application.Dept;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
using System.Linq;
|
||||
using OL.FrameCore.Application.Module;
|
||||
|
||||
namespace OL.FrameCore.Application.CommonData
|
||||
{
|
||||
public class CommonDataService: ICommonDataService
|
||||
{
|
||||
IDeptService _deptService;
|
||||
IModuleService _moduleService;
|
||||
public CommonDataService(IDeptService deptService, IModuleService moduleService)
|
@ -0,0 +1,14 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace OL.FrameCore.Application.CommonData.Dto
|
||||
{
|
||||
public class DropDownModel
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public string Name { get; set; }
|
||||
public int ParentId { get; set; }
|
||||
public int Level { get; set; }
|
||||
}
|
||||
}
|
@ -0,0 +1,14 @@
|
||||
using OL.FrameCore.Application.CommonData.Dto;
|
||||
using OL.FrameCore.Infrastructure.Code;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace OL.FrameCore.Application.CommonData
|
||||
{
|
||||
public interface ICommonDataService : IAutoInject
|
||||
{
|
||||
IList<DropDownModel> GetDeptDropDownList();
|
||||
IList<DropDownModel> GetModuleDropDownList();
|
||||
}
|
||||
}
|
@ -0,0 +1,15 @@
|
||||
using OL.FrameCore.Application.Dept.Dto;
|
||||
using OL.FrameCore.Domain.Entity;
|
||||
using OL.FrameCore.Infrastructure.UnitOfWork;
|
||||
//using OL.FrameCore.Domain.IRepository;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
using System.Linq;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using OL.FrameCore.Repository.EF;
|
||||
|
||||
namespace OL.FrameCore.Application.Dept
|
||||
{
|
||||
public class DeptService : IDeptService
|
||||
{
|
@ -0,0 +1,15 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace OL.FrameCore.Application.Dept.Dto
|
||||
{
|
||||
public class AddDeptRequest
|
||||
{
|
||||
public string DeptName { get; set; }
|
||||
public string DeptCode { get; set; }
|
||||
public int ParentId { get; set; }
|
||||
public int DeptLevel { get; set; }
|
||||
public int SortIndex { get; set; }
|
||||
public string Remark { get; set; }
|
||||
public int OpeatorId { get; set; }
|
@ -0,0 +1,15 @@
|
||||
using System;
|
||||
|
||||
namespace OL.FrameCore.Application.Dept.Dto
|
||||
{
|
||||
public class GetDeptListModel
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public string DeptName { get; set; }
|
||||
public string DeptCode { get; set; }
|
||||
public int ParentId { get; set; }
|
||||
public string ParentName { get; set; }
|
||||
public int DeptLevel { get; set; }
|
||||
public int SortIndex { get; set; }
|
||||
public DateTime CreateTime { get; set; }
|
||||
}
|
@ -0,0 +1,10 @@
|
||||
namespace OL.FrameCore.Application.Dept.Dto
|
||||
{
|
||||
public class GetDeptListRequest: GetListRequestBase
|
||||
{
|
||||
public int? DeptId { get; set; }
|
||||
public string DeptName { get; set; }
|
||||
public string DeptCode { get; set; }
|
||||
public int? ParentId { get; set; }
|
||||
}
|
||||
}
|
@ -0,0 +1,15 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace OL.FrameCore.Application.Dept.Dto
|
||||
{
|
||||
public class GetDeptResponse
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public string DeptName { get; set; }
|
||||
public string DeptCode { get; set; }
|
||||
public int ParentId { get; set; }
|
||||
//public int DeptLevel { get; set; }
|
||||
public int SortIndex { get; set; }
|
||||
//public DateTime CreateTime { get; set; }
|
@ -0,0 +1,15 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace OL.FrameCore.Application.Dept.Dto
|
||||
{
|
||||
public class UpdateDeptRequest
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public string DeptName { get; set; }
|
||||
public string DeptCode { get; set; }
|
||||
public int ParentId { get; set; }
|
||||
//public int DeptLevel { get; set; }
|
||||
public int SortIndex { get; set; }
|
||||
public string Remark { get; set; }
|
@ -0,0 +1,15 @@
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using OL.FrameCore.Application.Dept.Dto;
|
||||
using OL.FrameCore.Infrastructure.Code;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace OL.FrameCore.Application.Dept
|
||||
{
|
||||
public interface IDeptService : IAutoInject
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取所有部门列表
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
@ -0,0 +1,15 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace OL.FrameCore.Application
|
||||
{
|
||||
public class GetListRequestBase
|
||||
{
|
||||
/// <summary>
|
||||
/// 从0开始
|
||||
/// </summary>
|
||||
public int PageIndex { get; set; } = 0;
|
||||
public int PageSize { get; set; } = 10;
|
||||
}
|
||||
}
|
@ -0,0 +1,13 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace OL.FrameCore.Application.Home.Dto
|
||||
{
|
||||
public class GetCurrentDataResponse
|
||||
{
|
||||
public int NewNum { get; set; }
|
||||
public int NoticeNum { get; set; }
|
||||
public int UserNum { get; set; }
|
||||
}
|
||||
}
|
@ -0,0 +1,12 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace OL.FrameCore.Application.Home.Dto
|
||||
{
|
||||
public class GetLoginStatisticsModel
|
||||
{
|
||||
public string Date { get; set; }
|
||||
public int LoginNum { get; set; }
|
||||
}
|
||||
}
|
@ -0,0 +1,15 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace OL.FrameCore.Application.Home.Dto
|
||||
{
|
||||
public class GetMyLoginDataResponse
|
||||
{
|
||||
|
||||
public int UseId { get; set; }
|
||||
public string UserName { get; set; }
|
||||
public int LoginTime { get; set; }
|
||||
public List<string> LoginList { get; set; }
|
||||
}
|
||||
}
|
@ -0,0 +1,12 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace OL.FrameCore.Application.Home.Dto
|
||||
{
|
||||
public class GetUserDistributionResponse
|
||||
{
|
||||
public int ManNum { get; set; }
|
||||
public int WomanNum { get; set; }
|
||||
}
|
||||
}
|
@ -0,0 +1,15 @@
|
||||
using OL.FrameCore.Application.Home.Dto;
|
||||
using OL.FrameCore.Domain.Entity;
|
||||
using OL.FrameCore.Infrastructure.UnitOfWork;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
using System.Linq;
|
||||
|
||||
namespace OL.FrameCore.Application.Home
|
||||
{
|
||||
public class HomeService: IHomeService
|
||||
{
|
||||
IUnitOfWork _unitOfwork;
|
||||
public HomeService(IUnitOfWork unitOfwork)
|
||||
{
|
@ -0,0 +1,15 @@
|
||||
using OL.FrameCore.Application.Home.Dto;
|
||||
using OL.FrameCore.Infrastructure.Code;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace OL.FrameCore.Application.Home
|
||||
{
|
||||
public interface IHomeService : IAutoInject
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取当前数据
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
GetCurrentDataResponse GetCurrentData();
|
@ -0,0 +1,15 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace OL.FrameCore.Application
|
||||
{
|
||||
public interface IServiceBase<Dto> where Dto :class
|
||||
{
|
||||
List<Dto> GetList();
|
||||
|
||||
Dto GetModel(long id);
|
||||
|
||||
bool Insert(Dto dto);
|
||||
|
||||
bool Update(Dto dto);
|
@ -0,0 +1,15 @@
|
||||
namespace OL.FrameCore.Application.Module.Dto
|
||||
{
|
||||
public class AddModuleRequest
|
||||
{
|
||||
public string ModuleName { get; set; }
|
||||
public string ModuleCode { get; set; }
|
||||
public int ParentId { get; set; }
|
||||
public bool IsMenu { get; set; }
|
||||
public string MenuPath { get; set; }
|
||||
public string Icon { get; set; }
|
||||
public int SortIndex { get; set; }
|
||||
public string Remark { get; set; }
|
||||
public int OpeatorId { get; set; }
|
||||
}
|
||||
}
|
@ -0,0 +1,15 @@
|
||||
using System;
|
||||
|
||||
namespace OL.FrameCore.Application.Module.Dto
|
||||
{
|
||||
public class GetModuleListModel
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public string ModuleName { get; set; }
|
||||
public string ModuleCode { get; set; }
|
||||
public int ParentId { get; set; }
|
||||
public string ParentName { get; set; }
|
||||
public bool IsMenu { get; set; }
|
||||
public string MenuPath { get; set; }
|
||||
public string Icon { get; set; }
|
||||
//public int DeptLevel { get; set; }
|
@ -0,0 +1,9 @@
|
||||
namespace OL.FrameCore.Application.Module.Dto
|
||||
{
|
||||
public class GetModuleListRequest : GetListRequestBase
|
||||
{
|
||||
public int? Id { get; set; }
|
||||
public string ModuleName { get; set; }
|
||||
public string ModuleCode { get; set; }
|
||||
}
|
||||
}
|
@ -0,0 +1,15 @@
|
||||
using System;
|
||||
|
||||
namespace OL.FrameCore.Application.Module.Dto
|
||||
{
|
||||
public class GetModuleResponse
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public string ModuleName { get; set; }
|
||||
public string ModuleCode { get; set; }
|
||||
public int ParentId { get; set; }
|
||||
public bool IsMenu { get; set; } = true;
|
||||
public string MenuPath { get; set; }
|
||||
public string Icon { get; set; }
|
||||
//public int DeptLevel { get; set; }
|
||||
public int SortIndex { get; set; }
|
@ -0,0 +1,15 @@
|
||||
namespace OL.FrameCore.Application.Module.Dto
|
||||
{
|
||||
public class UpdateModuleRequest
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public string ModuleName { get; set; }
|
||||
public string ModuleCode { get; set; }
|
||||
public int ParentId { get; set; }
|
||||
public bool IsMenu { get; set; }
|
||||
public string MenuPath { get; set; }
|
||||
public string Icon { get; set; }
|
||||
public int SortIndex { get; set; }
|
||||
public string Remark { get; set; }
|
||||
public int OpeatorId { get; set; }
|
||||
}
|
@ -0,0 +1,12 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace OL.FrameCore.Application.Module.Enum
|
||||
{
|
||||
public enum ModuleStatusEnum
|
||||
{
|
||||
Enable = 0,
|
||||
Disable = 1
|
||||
}
|
||||
}
|
@ -0,0 +1,15 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using OL.FrameCore.Application.Module.Dto;
|
||||
using OL.FrameCore.Application.Module.Enum;
|
||||
using OL.FrameCore.Infrastructure.Code;
|
||||
|
||||
namespace OL.FrameCore.Application.Module
|
||||
{
|
||||
public interface IModuleService : IAutoInject
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取所有模块列表
|
||||
/// </summary>
|
@ -0,0 +1,15 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
using OL.FrameCore.Application.Module.Dto;
|
||||
using OL.FrameCore.Domain.Entity;
|
||||
//using OL.FrameCore.Domain.IRepository;
|
||||
using OL.FrameCore.Infrastructure.UnitOfWork;
|
||||
using System.Linq;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using OL.FrameCore.Application.Module.Enum;
|
||||
|
||||
namespace OL.FrameCore.Application.Module
|
||||
{
|
||||
public class ModuleService : IModuleService
|
||||
{
|
@ -0,0 +1,15 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>netcoreapp3.1</TargetFramework>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="2.1.1" />
|
||||
<PackageReference Include="Newtonsoft.Json" Version="13.0.1" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\OL.FrameCore.Domain\OL.FrameCore.Domain.csproj" />
|
||||
<ProjectReference Include="..\OL.FrameCore.Infrastructure\OL.FrameCore.Infrastructure.csproj" />
|
||||
<ProjectReference Include="..\OL.FrameCore.Repository.EF\OL.FrameCore.Repository.EF.csproj" />
|
@ -0,0 +1,11 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace OL.FrameCore.Application.Person.Dto
|
||||
{
|
||||
public class GetLoginRecordListRequest : GetListRequestBase
|
||||
{
|
||||
public int UserId { get; set; }
|
||||
}
|
||||
}
|
@ -0,0 +1,15 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace OL.FrameCore.Application.Person.Dto
|
||||
{
|
||||
public class GetLoginRecordListResponse
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public string UserName { get; set; }
|
||||
public int UserId { get; set; }
|
||||
public string IP { get; set; }
|
||||
public string UserAgent { get; set; }
|
||||
public DateTime LoginTime { get; set; }
|
||||
//public string LoginTimeText { get { return LoginTime.ToString("yyyy-MM-dd HH:mm:ss"); } }
|
@ -0,0 +1,14 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace OL.FrameCore.Application.Person.Dto
|
||||
{
|
||||
public class UpdatePasswordRequest
|
||||
{
|
||||
public int UserId { get; set; }
|
||||
public string OldPassword { get; set; }
|
||||
public string NewPassword { get; set; }
|
||||
public string RepeatPassword { get; set; }
|
||||
}
|
||||
}
|
@ -0,0 +1,15 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace OL.FrameCore.Application.Person.Dto
|
||||
{
|
||||
public class UpdatePersonInfoRequest
|
||||
{
|
||||
public int UserId { get; set; }
|
||||
//public string UserName { get; set; }
|
||||
public string TrueName { get; set; }
|
||||
public int Sex { get; set; }
|
||||
public string Phone { get; set; }
|
||||
public string Email { get; set; }
|
||||
//public int DeptId { get; set; }
|
@ -0,0 +1,15 @@
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using OL.FrameCore.Application.Person.Dto;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace OL.FrameCore.Application.Person
|
||||
{
|
||||
public interface IPersonService
|
||||
{
|
||||
/// <summary>
|
||||
/// 更新用户资料
|
||||
/// </summary>
|
||||
/// <param name="request"></param>
|
||||
/// <returns></returns>
|
@ -0,0 +1,15 @@
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using OL.FrameCore.Application.Person.Dto;
|
||||
using OL.FrameCore.Domain.Entity;
|
||||
using OL.FrameCore.Infrastructure.UnitOfWork;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
using System.Linq;
|
||||
using OL.FrameCore.Infrastructure.Security;
|
||||
|
||||
namespace OL.FrameCore.Application.Person
|
||||
{
|
||||
public class PersonService: IPersonService
|
||||
{
|
||||
IUnitOfWork _unitOfwork;
|
@ -0,0 +1,15 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace OL.FrameCore.Application
|
||||
{
|
||||
public class Result<T>
|
||||
{
|
||||
/// <summary>
|
||||
/// 结果状态 1操作正常 0操作失败 -1异常
|
||||
/// </summary>
|
||||
public int State { get; set; }
|
||||
/// <summary>
|
||||
/// 结果信息
|
||||
/// </summary>
|
@ -0,0 +1,14 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace OL.FrameCore.Application.Role.Dto
|
||||
{
|
||||
public class AddRoleRequest
|
||||
{
|
||||
public string RoleName { get; set; }
|
||||
public string Remark { get; set; }
|
||||
public int[] AssignModules { get; set; }
|
||||
public int OpeatorId { get; set; }
|
||||
}
|
||||
}
|
@ -0,0 +1,14 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace OL.FrameCore.Application.Role.Dto
|
||||
{
|
||||
public class GeRoleListResponse
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public string RoleName { get; set; }
|
||||
public string Remark { get; set; }
|
||||
public DateTime CreateTime { get; set; }
|
||||
}
|
||||
}
|
@ -0,0 +1,14 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace OL.FrameCore.Application.Role.Dto
|
||||
{
|
||||
public class GetRoleListRequest
|
||||
{
|
||||
public int? RoleId { get; set; }
|
||||
public string RoleName { get; set; }
|
||||
public int PageIndex { get; set; }
|
||||
public int PageSize { get; set; }
|
||||
}
|
||||
}
|
@ -0,0 +1,15 @@
|
||||
using Newtonsoft.Json;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace OL.FrameCore.Application.Role.Dto
|
||||
{
|
||||
public class GetRoleResponse
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public string RoleName { get; set; }
|
||||
public string Remark { get; set; }
|
||||
public List<RoleModuleModel> RoleModules { get; set; }
|
||||
public string RoleModulesJsonText
|
||||
{
|
@ -0,0 +1,15 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace OL.FrameCore.Application.Role.Dto
|
||||
{
|
||||
public class RoleModuleModel
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public string ModuleName { get; set; }
|
||||
public string ModuleCode { get; set; }
|
||||
public int ParentId { get; set; }
|
||||
public int SortIndex { get; set; }
|
||||
/// <summary>
|
||||
/// 是否分配
|
@ -0,0 +1,15 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace OL.FrameCore.Application.Role.Dto
|
||||
{
|
||||
public class UpdateRoleRequest
|
||||
{
|
||||
|
||||
public int Id { get; set; }
|
||||
public string RoleName { get; set; }
|
||||
public string Remark { get; set; }
|
||||
public int[] AssignModules { get; set; }
|
||||
public int OpeatorId { get; set; }
|
||||
}
|
@ -0,0 +1,15 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using OL.FrameCore.Application.Role.Dto;
|
||||
using OL.FrameCore.Infrastructure.Code;
|
||||
|
||||
namespace OL.FrameCore.Application.Role
|
||||
{
|
||||
public interface IRoleService : IAutoInject
|
||||
{
|
||||
//List<RoleDto> GetRoleList(int roleId, string roleName);
|
||||
PageData<GeRoleListResponse> GetRoleList(GetRoleListRequest request);
|
||||
GetRoleResponse GetEmptyRole();
|
||||
GetRoleResponse GetRole(int id);
|
@ -0,0 +1,15 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Linq.Expressions;
|
||||
using System.Text;
|
||||
using System.Transactions;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using OL.FrameCore.Application.Module;
|
||||
using OL.FrameCore.Application.Module.Enum;
|
||||
using OL.FrameCore.Application.Role.Dto;
|
||||
using OL.FrameCore.Domain.Entity;
|
||||
//using OL.FrameCore.Domain.IRepository;
|
||||
using OL.FrameCore.Infrastructure.UnitOfWork;
|
||||
using OL.FrameCore.Infrastructure.Utility;
|
||||
using OL.FrameCore.Repository.EF;
|
@ -0,0 +1,15 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq.Expressions;
|
||||
using System.Text;
|
||||
//using OL.FrameCore.Domain.IRepository;
|
||||
using OL.FrameCore.Infrastructure.Utility;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace OL.FrameCore.Application
|
||||
{
|
||||
public class ServiceBase<TDto, TEntity> : IServiceBase<TDto> where TDto : class where TEntity : class
|
||||
{
|
||||
IRepositoryBase<TEntity> _repository;
|
||||
public ServiceBase(IRepositoryBase<TEntity> repository)
|
||||
{
|
@ -0,0 +1,15 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace OL.FrameCore.Application.SysLog.Dto
|
||||
{
|
||||
public class GetErrorLogListRequest: GetListRequestBase
|
||||
{
|
||||
public string ErrorInfo { get; set; }
|
||||
public string IP { get; set; }
|
||||
public string UserId { get; set; }
|
||||
public DateTime BeginTime { get; set; }
|
||||
public DateTime EndTime { get; set; }
|
||||
}
|
||||
}
|
@ -0,0 +1,15 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace OL.FrameCore.Application.SysLog.Dto
|
||||
{
|
||||
public class GetErrorLogListResponse
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public string IP { get; set; }
|
||||
public string ErrorInfo { get; set; }
|
||||
public string UserId { get; set; }
|
||||
public DateTime CreateTime { get; set; }
|
||||
}
|
||||
}
|
@ -0,0 +1,15 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace OL.FrameCore.Application.SysLog.Dto
|
||||
{
|
||||
public class GetUserLoginLogListRequest : GetListRequestBase
|
||||
{
|
||||
public string UserName { get; set; }
|
||||
public int? UserId { get; set; }
|
||||
public int? LoginStatus { get; set; }
|
||||
public string IP { get; set; }
|
||||
public DateTime BeginTime { get; set; }
|
||||
public DateTime EndTime { get; set; }
|
||||
}
|
@ -0,0 +1,15 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace OL.FrameCore.Application.SysLog.Dto
|
||||
{
|
||||
public class GetUserLoginLogListResponse
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public string UserName { get; set; }
|
||||
public int UserId { get; set; }
|
||||
public string IP { get; set; }
|
||||
public string UserAgent { get; set; }
|
||||
public DateTime LoginTime { get; set; }
|
||||
//public string LoginTimeText { get { return LoginTime.ToString("yyyy-MM-dd HH:mm:ss"); } }
|
@ -0,0 +1,15 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace OL.FrameCore.Application.SysLog.Dto
|
||||
{
|
||||
public class GetUserOperateLogListRequest: GetListRequestBase
|
||||
{
|
||||
public int? OperateId { get; set; }
|
||||
public int? OperateType { get; set; }
|
||||
public int? UserId { get; set; }
|
||||
public DateTime BeginTime { get; set; }
|
||||
public DateTime EndTime { get; set; }
|
||||
}
|
||||
}
|
@ -0,0 +1,15 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace OL.FrameCore.Application.SysLog.Dto
|
||||
{
|
||||
public class GetUserOperateLogListResponse
|
||||
{
|
||||
public int Id { get; set; }
|
||||
/// <summary>
|
||||
/// 0新增 1修改 2删除 3启用 4禁用 5重置密码
|
||||
/// </summary>
|
||||
public int OperateType { get; set; }
|
||||
public string OperateTypeText
|
||||
{
|
@ -0,0 +1,14 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace OL.FrameCore.Application.SysLog.Dto
|
||||
{
|
||||
public class LogErrorRequest
|
||||
{
|
||||
public string ErrorInfo { get; set; }
|
||||
public string IP { get; set; }
|
||||
public string UserId { get; set; }
|
||||
public DateTime CreateTime { get; set; }
|
||||
}
|
||||
}
|
@ -0,0 +1,15 @@
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using OL.FrameCore.Application.SysLog.Dto;
|
||||
using OL.FrameCore.Infrastructure.Code;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace OL.FrameCore.Application.SysLog
|
||||
{
|
||||
public interface ISysLogService : IAutoInject
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取用户操作日志列表
|
||||
/// </summary>
|
||||
/// <param name="request"></param>
|
@ -0,0 +1,15 @@
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using OL.FrameCore.Application.SysLog.Dto;
|
||||
using OL.FrameCore.Domain.Entity;
|
||||
using OL.FrameCore.Infrastructure.UnitOfWork;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Linq.Expressions;
|
||||
using System.Text;
|
||||
|
||||
namespace OL.FrameCore.Application.SysLog
|
||||
{
|
||||
public class SysLogService: ISysLogService
|
||||
{
|
||||
IUnitOfWork _unitOfwork;
|
@ -0,0 +1,15 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace OL.FrameCore.Application.User.Dto
|
||||
{
|
||||
public class AddUserRequest
|
||||
{
|
||||
public string UserName { get; set; }
|
||||
public string Password { get; set; }
|
||||
public string TrueName { get; set; }
|
||||
public int Sex { get; set; }
|
||||
public string Phone { get; set; }
|
||||
public string Email { get; set; }
|
||||
public int DeptId { get; set; }
|
@ -0,0 +1,13 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace OL.FrameCore.Application.User.Dto
|
||||
{
|
||||
public class AssignUserModuleRequest
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public int[] AssignModules { get; set; }
|
||||
public int OpeatorId { get; set; }
|
||||
}
|
||||
}
|
@ -0,0 +1,13 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace OL.FrameCore.Application.User.Dto
|
||||
{
|
||||
public class AssignUserRoleRequest
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public int[] AssignRoles { get; set; }
|
||||
public int OpeatorId { get; set; }
|
||||
}
|
||||
}
|
@ -0,0 +1,12 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace OL.FrameCore.Application.User.Dto
|
||||
{
|
||||
public class CheckImportUserResponse: ImportUserRequest
|
||||
{
|
||||
public bool IsPass { get; set; }
|
||||
public string ErrorInfo { get; set; }
|
||||
}
|
||||
}
|
@ -0,0 +1,15 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Runtime.Serialization;
|
||||
using System.Text;
|
||||
|
||||
namespace OL.FrameCore.Application.User.Dto
|
||||
{
|
||||
public class ExportUserResponse
|
||||
{
|
||||
public int Id { get; set; }
|
||||
|
||||
[DisplayName("用户名")]
|
||||
public string UserName { get; set; }
|
||||
[DisplayName("姓名")]
|
@ -0,0 +1,14 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace OL.FrameCore.Application.User.Dto
|
||||
{
|
||||
public class GetLoginUserInfoResponse
|
||||
{
|
||||
public int UserId { get; set; }
|
||||
public string UserName { get; set; }
|
||||
public string TrueName { get; set; }
|
||||
public string Role { get; set; }
|
||||
}
|
||||
}
|
@ -0,0 +1,15 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace OL.FrameCore.Application.User.Dto
|
||||
{
|
||||
public class GetUserListRequest: GetListRequestBase
|
||||
{
|
||||
public int UserId { get; set; }
|
||||
public string UserName { get; set; }
|
||||
public string TrueName { get; set; }
|
||||
public int? DeptId { get; set; }
|
||||
public int? Status { get; set; }
|
||||
}
|
||||
}
|
@ -0,0 +1,15 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace OL.FrameCore.Application.User.Dto
|
||||
{
|
||||
public class GetUserListResponse
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public string UserName { get; set; }
|
||||
public string TrueName { get; set; }
|
||||
public string DeptName { get; set; }
|
||||
public string Phone { get; set; }
|
||||
public string Email { get; set; }
|
||||
public int Status { get; set; }
|
@ -0,0 +1,15 @@
|
||||
using Newtonsoft.Json;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace OL.FrameCore.Application.User.Dto
|
||||
{
|
||||
public class GetUserModuleResponse
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public List<UserModuleModel> UserModules { get; set; }
|
||||
public string UserModulesJsonText
|
||||
{
|
||||
get
|
||||
{
|
@ -0,0 +1,14 @@
|
||||
namespace OL.FrameCore.Application.User.Dto
|
||||
{
|
||||
public class GetUserResponse
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public string UserName { get; set; }
|
||||
public string TrueName { get; set; }
|
||||
public int Sex { get; set; }
|
||||
public int? DeptId { get; set; }
|
||||
public string DeptName { get; set; }
|
||||
public string Phone { get; set; }
|
||||
public string Email { get; set; }
|
||||
}
|
||||
}
|
@ -0,0 +1,15 @@
|
||||
using Newtonsoft.Json;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace OL.FrameCore.Application.User.Dto
|
||||
{
|
||||
public class GetUserRoleResponse
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public List<UserRoleModel> UserRoles { get; set; }
|
||||
public string UserRolesJsonText
|
||||
{
|
||||
get
|
||||
{
|
@ -0,0 +1,15 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace OL.FrameCore.Application.User.Dto
|
||||
{
|
||||
public class ImportUserRequest
|
||||
{
|
||||
public string UserName { get; set; }
|
||||
public string TrueName { get; set; }
|
||||
public string DeptName { get; set; }
|
||||
public string Phone { get; set; }
|
||||
public string Email { get; set; }
|
||||
}
|
||||
}
|
@ -0,0 +1,15 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace OL.FrameCore.Application.User.Dto
|
||||
{
|
||||
public class LogLoginRequest
|
||||
{
|
||||
public string UserName { get; set; }
|
||||
public int UserId { get; set; } = 0;
|
||||
public string IP { get; set; }
|
||||
public string UserAgent { get; set; }
|
||||
/// <summary>
|
||||
/// 1登录成功 2登录失败
|
||||
/// </summary>
|
@ -0,0 +1,12 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace OL.FrameCore.Application.User.Dto
|
||||
{
|
||||
public class LoginRequest
|
||||
{
|
||||
public string UserName { get; set; }
|
||||
public string Password { get; set; }
|
||||
}
|
||||
}
|
@ -0,0 +1,15 @@
|
||||
using OL.FrameCore.Domain.Enum;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace OL.FrameCore.Application.User.Dto
|
||||
{
|
||||
public class LoginResponse
|
||||
{
|
||||
/// <summary>
|
||||
/// 0密码错误 1登录成功 -1登录异常 2没有账号
|
||||
/// </summary>
|
||||
public LoginEnum Code { get; set; }
|
||||
public int UserId { get; set; }
|
||||
}
|
@ -0,0 +1,13 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace OL.FrameCore.Application.User.Dto
|
||||
{
|
||||
public class RetsetPasswordRequest
|
||||
{
|
||||
public int UserId { get; set; }
|
||||
public string Password { get; set; }
|
||||
public int OpeatorId { get; set; }
|
||||
}
|
||||
}
|
@ -0,0 +1,15 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace OL.FrameCore.Application.User.Dto
|
||||
{
|
||||
public class UpdateUserRequest
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public string UserName { get; set; }
|
||||
public string TrueName { get; set; }
|
||||
public int Sex { get; set; }
|
||||
public string Phone { get; set; }
|
||||
public string Email { get; set; }
|
||||
public int DeptId { get; set; }
|
@ -0,0 +1,15 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace OL.FrameCore.Application.User.Dto
|
||||
{
|
||||
public class UserModuleModel
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public string ModuleName { get; set; }
|
||||
public string ModuleCode { get; set; }
|
||||
public int ParentId { get; set; }
|
||||
public int SortIndex { get; set; }
|
||||
/// <summary>
|
||||
/// 是否分配
|
@ -0,0 +1,15 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
using OL.FrameCore.Application.User.Dto;
|
||||
using OL.FrameCore.Infrastructure.Code;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using OL.FrameCore.Application.Module.Dto;
|
||||
|
||||
namespace OL.FrameCore.Application.User
|
||||
{
|
||||
public interface IUserService : IAutoInject
|
||||
{
|
||||
/// <summary>
|
||||
/// 登录
|
||||
/// </summary>
|
@ -0,0 +1,15 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
using OL.FrameCore.Application.User.Dto;
|
||||
using OL.FrameCore.Infrastructure.Utility;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using OL.FrameCore.Infrastructure.UnitOfWork;
|
||||
using OL.FrameCore.Domain.Entity;
|
||||
using System.Linq;
|
||||
using OL.FrameCore.Domain.Enum;
|
||||
using System.Linq.Expressions;
|
||||
using System.Transactions;
|
||||
using OL.FrameCore.Application.Module.Dto;
|
||||
using System.Security.Cryptography;
|
||||
using OL.FrameCore.Application.Module;
|
@ -0,0 +1,15 @@
|
||||
{
|
||||
"runtimeTarget": {
|
||||
"name": ".NETCoreApp,Version=v3.1",
|
||||
"signature": ""
|
||||
},
|
||||
"compilationOptions": {},
|
||||
"targets": {
|
||||
".NETCoreApp,Version=v3.1": {
|
||||
"OL.FrameCore.Application/1.0.0": {
|
||||
"dependencies": {
|
||||
"Microsoft.Extensions.DependencyInjection.Abstractions": "2.1.1",
|
||||
"Newtonsoft.Json": "13.0.1",
|
||||
"OL.FrameCore.Domain": "1.0.0",
|
||||
"OL.FrameCore.Infrastructure": "1.0.0",
|
||||
"OL.FrameCore.Repository.EF": "1.0.0"
|
@ -0,0 +1,4 @@
|
||||
// <autogenerated />
|
||||
using System;
|
||||
using System.Reflection;
|
||||
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v3.1", FrameworkDisplayName = ".NET Core 3.1")]
|
@ -0,0 +1,15 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Runtime Version:4.0.30319.42000
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
using System;
|
||||
using System.Reflection;
|
||||
|
||||
[assembly: System.Reflection.AssemblyCompanyAttribute("OL.FrameCore.Application")]
|
||||
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
|
@ -0,0 +1,15 @@
|
||||
C:\Users\coder\Desktop\2024Code\6\20240604\submit\1\OL.FrameCore-master\OL.FrameCore-master\src\OL.FrameCore.Application\bin\Debug\netcoreapp3.1\OL.FrameCore.Application.deps.json
|
||||
C:\Users\coder\Desktop\2024Code\6\20240604\submit\1\OL.FrameCore-master\OL.FrameCore-master\src\OL.FrameCore.Application\bin\Debug\netcoreapp3.1\OL.FrameCore.Application.dll
|
||||
C:\Users\coder\Desktop\2024Code\6\20240604\submit\1\OL.FrameCore-master\OL.FrameCore-master\src\OL.FrameCore.Application\bin\Debug\netcoreapp3.1\OL.FrameCore.Application.pdb
|
||||
C:\Users\coder\Desktop\2024Code\6\20240604\submit\1\OL.FrameCore-master\OL.FrameCore-master\src\OL.FrameCore.Application\bin\Debug\netcoreapp3.1\OL.FrameCore.Domain.dll
|
||||
C:\Users\coder\Desktop\2024Code\6\20240604\submit\1\OL.FrameCore-master\OL.FrameCore-master\src\OL.FrameCore.Application\bin\Debug\netcoreapp3.1\OL.FrameCore.Infrastructure.dll
|
||||
C:\Users\coder\Desktop\2024Code\6\20240604\submit\1\OL.FrameCore-master\OL.FrameCore-master\src\OL.FrameCore.Application\bin\Debug\netcoreapp3.1\OL.FrameCore.Repository.EF.dll
|
||||
C:\Users\coder\Desktop\2024Code\6\20240604\submit\1\OL.FrameCore-master\OL.FrameCore-master\src\OL.FrameCore.Application\bin\Debug\netcoreapp3.1\OL.FrameCore.Domain.pdb
|
||||
C:\Users\coder\Desktop\2024Code\6\20240604\submit\1\OL.FrameCore-master\OL.FrameCore-master\src\OL.FrameCore.Application\bin\Debug\netcoreapp3.1\OL.FrameCore.Infrastructure.pdb
|
||||
C:\Users\coder\Desktop\2024Code\6\20240604\submit\1\OL.FrameCore-master\OL.FrameCore-master\src\OL.FrameCore.Application\bin\Debug\netcoreapp3.1\OL.FrameCore.Repository.EF.pdb
|
||||
C:\Users\coder\Desktop\2024Code\6\20240604\submit\1\OL.FrameCore-master\OL.FrameCore-master\src\OL.FrameCore.Application\obj\Debug\netcoreapp3.1\OL.FrameCore.Application.csproj.AssemblyReference.cache
|
||||
C:\Users\coder\Desktop\2024Code\6\20240604\submit\1\OL.FrameCore-master\OL.FrameCore-master\src\OL.FrameCore.Application\obj\Debug\netcoreapp3.1\OL.FrameCore.Application.GeneratedMSBuildEditorConfig.editorconfig
|
||||
C:\Users\coder\Desktop\2024Code\6\20240604\submit\1\OL.FrameCore-master\OL.FrameCore-master\src\OL.FrameCore.Application\obj\Debug\netcoreapp3.1\OL.FrameCore.Application.AssemblyInfoInputs.cache
|
||||
C:\Users\coder\Desktop\2024Code\6\20240604\submit\1\OL.FrameCore-master\OL.FrameCore-master\src\OL.FrameCore.Application\obj\Debug\netcoreapp3.1\OL.FrameCore.Application.AssemblyInfo.cs
|
||||
C:\Users\coder\Desktop\2024Code\6\20240604\submit\1\OL.FrameCore-master\OL.FrameCore-master\src\OL.FrameCore.Application\obj\Debug\netcoreapp3.1\OL.FrameCore.Application.csproj.CoreCompileInputs.cache
|
||||
C:\Users\coder\Desktop\2024Code\6\20240604\submit\1\OL.FrameCore-master\OL.FrameCore-master\src\OL.FrameCore.Application\obj\Debug\netcoreapp3.1\OL.FrameCore.Application.csproj.CopyComplete
|
@ -0,0 +1,15 @@
|
||||
{
|
||||
"format": 1,
|
||||
"restore": {
|
||||
"C:\\Users\\coder\\Desktop\\2024Code\\6\\20240604\\submit\\1\\OL.FrameCore-master\\OL.FrameCore-master\\src\\OL.FrameCore.Application\\OL.FrameCore.Application.csproj": {}
|
||||
},
|
||||
"projects": {
|
||||
"C:\\Users\\coder\\Desktop\\2024Code\\6\\20240604\\submit\\1\\OL.FrameCore-master\\OL.FrameCore-master\\src\\OL.FrameCore.Application\\OL.FrameCore.Application.csproj": {
|
||||
"version": "1.0.0",
|
||||
"restore": {
|
||||
"projectUniqueName": "C:\\Users\\coder\\Desktop\\2024Code\\6\\20240604\\submit\\1\\OL.FrameCore-master\\OL.FrameCore-master\\src\\OL.FrameCore.Application\\OL.FrameCore.Application.csproj",
|
||||
"projectName": "OL.FrameCore.Application",
|
||||
"projectPath": "C:\\Users\\coder\\Desktop\\2024Code\\6\\20240604\\submit\\1\\OL.FrameCore-master\\OL.FrameCore-master\\src\\OL.FrameCore.Application\\OL.FrameCore.Application.csproj",
|
||||
"packagesPath": "C:\\Users\\coder\\.nuget\\packages\\",
|
||||
"outputPath": "C:\\Users\\coder\\Desktop\\2024Code\\6\\20240604\\submit\\1\\OL.FrameCore-master\\OL.FrameCore-master\\src\\OL.FrameCore.Application\\obj\\",
|
||||
"projectStyle": "PackageReference",
|
@ -0,0 +1,15 @@
|
||||
{
|
||||
"version": 3,
|
||||
"targets": {
|
||||
".NETCoreApp,Version=v3.1": {
|
||||
"AutoMapper/10.0.0": {
|
||||
"type": "package",
|
||||
"dependencies": {
|
||||
"Microsoft.CSharp": "4.7.0",
|
||||
"System.Reflection.Emit": "4.7.0"
|
||||
},
|
||||
"compile": {
|
||||
"lib/netstandard2.0/AutoMapper.dll": {
|
||||
"related": ".xml"
|
||||
}
|
||||
},
|
@ -0,0 +1,15 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using System.Text;
|
||||
|
||||
namespace OL.FrameCore.Domain.Entity
|
||||
{
|
||||
[Table("App_Article")]
|
||||
public class AppArticle
|
||||
{
|
||||
[Key]
|
||||
public int Id { get; set; }
|
||||
public string Title { get; set; }
|
||||
public string Content { get; set; }
|
@ -0,0 +1,15 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
//namespace OL.FrameCore.Domain.Entity
|
||||
//{
|
||||
// /// <summary>
|
||||
// /// 实体对象基类,表中必须包含下列字段
|
||||
// /// </summary>
|
||||
// public class IEntity
|
||||
// {
|
||||
// public int Id { get; set; }
|
||||
|
||||
// public int CreateId { get; set; }
|
||||
// public DateTime CreateTime { get; set; }
|
@ -0,0 +1,15 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.Text;
|
||||
|
||||
namespace OL.FrameCore.Domain.Entity
|
||||
{
|
||||
/// <summary>
|
||||
/// 公告/新闻/文章
|
||||
/// </summary>
|
||||
public class Info
|
||||
{
|
||||
[Key]
|
||||
public int Id { get; set; }
|
||||
|
@ -0,0 +1,13 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.Text;
|
||||
|
||||
namespace OL.FrameCore.Domain.Entity
|
||||
{
|
||||
class InfoFile
|
||||
{
|
||||
[Key]
|
||||
public int Id { get; set; }
|
||||
}
|
||||
}
|
@ -0,0 +1,13 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.Text;
|
||||
|
||||
namespace OL.FrameCore.Domain.Entity
|
||||
{
|
||||
class InfoType
|
||||
{
|
||||
[Key]
|
||||
public int Id { get; set; }
|
||||
}
|
||||
}
|
@ -0,0 +1,15 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using System.Text;
|
||||
|
||||
namespace OL.FrameCore.Domain.Entity
|
||||
{
|
||||
[Table("Sys_Dept")]
|
||||
public class SysDept
|
||||
{
|
||||
[Key]
|
||||
public int Id { get; set; }
|
||||
public string DeptName { get; set; }
|
||||
public string DeptCode { get; set; }
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue