新增招聘者求职者

development
温天培 2 years ago
parent d7eb906a72
commit cae21ff033

@ -0,0 +1,31 @@
using System;
using SqlSugar;
using System.ComponentModel;
using GDZZ.Core.Entity;
namespace GDZZ.Application.Entity
{
/// <summary>
/// 招聘公司
/// </summary>
[SugarTable("company")]
[Description("招聘公司")]
public class Company : DEntityBase
{
/// <summary>
/// 租户Id
/// </summary>
public long TenantId { get; set; }
/// <summary>
/// 地址
/// </summary>
public string Address { get; set; }
/// <summary>
/// 联系电话
/// </summary>
public string Phone { get; set; }
/// <summary>
/// 公司详情
/// </summary>
public string Profile { get; set; }
}
}

@ -0,0 +1,27 @@
using System;
using SqlSugar;
using System.ComponentModel;
using GDZZ.Core.Entity;
namespace GDZZ.Application.Entity
{
/// <summary>
/// 求职者
/// </summary>
[SugarTable("jobhunter")]
[Description("求职者")]
public class JobHunter : DEntityBase
{
/// <summary>
/// 租户Id
/// </summary>
public long TenantId { get; set; }
/// <summary>
/// 联系电话
/// </summary>
public string Phone { get; set; }
/// <summary>
/// 性别
/// </summary>
public Int16 Gender { get; set; }
}
}

@ -1,8 +1,8 @@
using System; using System;
using SqlSugar; using SqlSugar;
using System.ComponentModel; using System.ComponentModel;
using Magic.Core.Entity; using GDZZ.Core.Entity;
namespace Magic.Application.Entity namespace GDZZ.Application.Entity
{ {
/// <summary> /// <summary>
/// 求职信息 /// 求职信息

@ -0,0 +1,63 @@
using System;
using SqlSugar;
using System.ComponentModel;
using GDZZ.Core.Entity;
namespace GDZZ.Application.Entity
{
/// <summary>
/// 招聘消息
/// </summary>
[SugarTable("recruit_message")]
[Description("招聘消息")]
public class RecruitMessage : DEntityBase
{
/// <summary>
/// 租户Id
/// </summary>
public long TenantId { get; set; }
/// <summary>
/// 职位详情
/// </summary>
public string PositionInfo { get; set; }
/// <summary>
/// 标题
/// </summary>
public string Title { get; set; }
/// <summary>
/// 状态
/// </summary>
public int Status { get; set; }
/// <summary>
/// 省份
/// </summary>
public int ProvinceId { get; set; }
/// <summary>
/// 城市
/// </summary>
public int CityId { get; set; }
/// <summary>
/// 区
/// </summary>
public int AreaId { get; set; }
/// <summary>
/// 详细地址
/// </summary>
public int Address { get; set; }
/// <summary>
/// 联系电话
/// </summary>
public string Phone { get; set; }
/// <summary>
/// 标签
/// </summary>
public string Tag { get; set; }
/// <summary>
/// 学历
/// </summary>
public int Education { get; set; }
/// <summary>
/// 经验
/// </summary>
public int Experience { get; set; }
}
}

@ -0,0 +1,24 @@
using System;
using SqlSugar;
using System.ComponentModel;
using GDZZ.Core.Entity;
namespace GDZZ.Application.Entity
{
/// <summary>
/// 系统地区数据
/// </summary>
[SugarTable("sys_area")]
[Description("系统地区数据")]
public class SysArea : AutoIncrementEntity
{
/// <summary>
/// 父级ID
/// </summary>
public Int16 parent_id { get; set; }
/// <summary>
/// 地区名
/// </summary>
public string name { get; set; }
}
}

@ -3,23 +3,23 @@
<PropertyGroup> <PropertyGroup>
<TargetFramework>net7.0</TargetFramework> <TargetFramework>net7.0</TargetFramework>
<NoWarn>1701;1702;1591</NoWarn> <NoWarn>1701;1702;1591</NoWarn>
<DocumentationFile>Magic.Application.xml</DocumentationFile> <DocumentationFile>GDZZ.Application.xml</DocumentationFile>
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>
<None Remove="applicationsettings.json" /> <None Remove="applicationsettings.json" />
<None Remove="Magic.Application.xml" /> <None Remove="GDZZ.Application.xml" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<Content Include="applicationsettings.json"> <Content Include="applicationsettings.json">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content> </Content>
<Content Include="Magic.Application.xml" /> <Content Include="GDZZ.Application.xml" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<ProjectReference Include="..\Magic.Core\Magic.Core.csproj" /> <ProjectReference Include="..\GDZZ.Core\GDZZ.Core.csproj" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>

@ -0,0 +1,667 @@
<?xml version="1.0"?>
<doc>
<assembly>
<name>GDZZ.Application</name>
</assembly>
<members>
<member name="T:GDZZ.Application.Entity.Company">
<summary>
招聘公司
</summary>
</member>
<member name="P:GDZZ.Application.Entity.Company.TenantId">
<summary>
租户Id
</summary>
</member>
<member name="P:GDZZ.Application.Entity.Company.Address">
<summary>
地址
</summary>
</member>
<member name="P:GDZZ.Application.Entity.Company.Phone">
<summary>
联系电话
</summary>
</member>
<member name="P:GDZZ.Application.Entity.Company.Profile">
<summary>
公司详情
</summary>
</member>
<member name="T:GDZZ.Application.Entity.JobHunter">
<summary>
求职者
</summary>
</member>
<member name="P:GDZZ.Application.Entity.JobHunter.TenantId">
<summary>
租户Id
</summary>
</member>
<member name="P:GDZZ.Application.Entity.JobHunter.Phone">
<summary>
联系电话
</summary>
</member>
<member name="P:GDZZ.Application.Entity.JobHunter.Gender">
<summary>
性别
</summary>
</member>
<member name="T:GDZZ.Application.Entity.JobhuntMessage">
<summary>
求职信息
</summary>
</member>
<member name="P:GDZZ.Application.Entity.JobhuntMessage.TenantId">
<summary>
租户Id
</summary>
</member>
<member name="P:GDZZ.Application.Entity.JobhuntMessage.PositionInfo">
<summary>
求职详情
</summary>
</member>
<member name="P:GDZZ.Application.Entity.JobhuntMessage.Title">
<summary>
求职标题
</summary>
</member>
<member name="P:GDZZ.Application.Entity.JobhuntMessage.Status">
<summary>
求职状态
</summary>
</member>
<member name="P:GDZZ.Application.Entity.JobhuntMessage.Experience">
<summary>
经验
</summary>
</member>
<member name="P:GDZZ.Application.Entity.JobhuntMessage.Tag">
<summary>
标签
</summary>
</member>
<member name="P:GDZZ.Application.Entity.JobhuntMessage.ProvinceId">
<summary>
省份
</summary>
</member>
<member name="P:GDZZ.Application.Entity.JobhuntMessage.CityId">
<summary>
城市
</summary>
</member>
<member name="T:GDZZ.Application.Entity.RecruitMessage">
<summary>
招聘消息
</summary>
</member>
<member name="P:GDZZ.Application.Entity.RecruitMessage.TenantId">
<summary>
租户Id
</summary>
</member>
<member name="P:GDZZ.Application.Entity.RecruitMessage.PositionInfo">
<summary>
职位详情
</summary>
</member>
<member name="P:GDZZ.Application.Entity.RecruitMessage.Title">
<summary>
标题
</summary>
</member>
<member name="P:GDZZ.Application.Entity.RecruitMessage.Status">
<summary>
状态
</summary>
</member>
<member name="P:GDZZ.Application.Entity.RecruitMessage.ProvinceId">
<summary>
省份
</summary>
</member>
<member name="P:GDZZ.Application.Entity.RecruitMessage.CityId">
<summary>
城市
</summary>
</member>
<member name="P:GDZZ.Application.Entity.RecruitMessage.AreaId">
<summary>
</summary>
</member>
<member name="P:GDZZ.Application.Entity.RecruitMessage.Address">
<summary>
详细地址
</summary>
</member>
<member name="P:GDZZ.Application.Entity.RecruitMessage.Phone">
<summary>
联系电话
</summary>
</member>
<member name="P:GDZZ.Application.Entity.RecruitMessage.Tag">
<summary>
标签
</summary>
</member>
<member name="P:GDZZ.Application.Entity.RecruitMessage.Education">
<summary>
学历
</summary>
</member>
<member name="P:GDZZ.Application.Entity.RecruitMessage.Experience">
<summary>
经验
</summary>
</member>
<member name="T:GDZZ.Application.Entity.SysArea">
<summary>
系统地区数据
</summary>
</member>
<member name="P:GDZZ.Application.Entity.SysArea.parent_id">
<summary>
父级ID
</summary>
</member>
<member name="P:GDZZ.Application.Entity.SysArea.name">
<summary>
地区名
</summary>
</member>
<member name="T:GDZZ.Application.JobhuntMessageDto">
<summary>
求职信息输出参数
</summary>
</member>
<member name="P:GDZZ.Application.JobhuntMessageDto.Id">
<summary>
主键Id
</summary>
</member>
<member name="P:GDZZ.Application.JobhuntMessageDto.TenantId">
<summary>
租户Id
</summary>
</member>
<member name="P:GDZZ.Application.JobhuntMessageDto.PositionInfo">
<summary>
求职详情
</summary>
</member>
<member name="P:GDZZ.Application.JobhuntMessageDto.Title">
<summary>
求职标题
</summary>
</member>
<member name="P:GDZZ.Application.JobhuntMessageDto.Status">
<summary>
求职状态
</summary>
</member>
<member name="P:GDZZ.Application.JobhuntMessageDto.Experience">
<summary>
经验
</summary>
</member>
<member name="P:GDZZ.Application.JobhuntMessageDto.Tag">
<summary>
标签
</summary>
</member>
<member name="P:GDZZ.Application.JobhuntMessageDto.ProvinceId">
<summary>
省份
</summary>
</member>
<member name="P:GDZZ.Application.JobhuntMessageDto.CityId">
<summary>
城市
</summary>
</member>
<member name="T:GDZZ.Application.JobhuntMessageInput">
<summary>
求职信息输入参数
</summary>
</member>
<member name="P:GDZZ.Application.JobhuntMessageInput.TenantId">
<summary>
租户Id
</summary>
</member>
<member name="P:GDZZ.Application.JobhuntMessageInput.PositionInfo">
<summary>
求职详情
</summary>
</member>
<member name="P:GDZZ.Application.JobhuntMessageInput.Title">
<summary>
求职标题
</summary>
</member>
<member name="P:GDZZ.Application.JobhuntMessageInput.Status">
<summary>
求职状态
</summary>
</member>
<member name="P:GDZZ.Application.JobhuntMessageInput.Experience">
<summary>
经验
</summary>
</member>
<member name="P:GDZZ.Application.JobhuntMessageInput.Tag">
<summary>
标签
</summary>
</member>
<member name="P:GDZZ.Application.JobhuntMessageInput.ProvinceId">
<summary>
省份
</summary>
</member>
<member name="P:GDZZ.Application.JobhuntMessageInput.CityId">
<summary>
城市
</summary>
</member>
<member name="P:GDZZ.Application.AddJobhuntMessageInput.TenantId">
<summary>
租户Id
</summary>
</member>
<member name="P:GDZZ.Application.AddJobhuntMessageInput.PositionInfo">
<summary>
求职详情
</summary>
</member>
<member name="P:GDZZ.Application.AddJobhuntMessageInput.Title">
<summary>
求职标题
</summary>
</member>
<member name="P:GDZZ.Application.DeleteJobhuntMessageInput.Id">
<summary>
主键Id
</summary>
</member>
<member name="P:GDZZ.Application.UpdateJobhuntMessageInput.Id">
<summary>
主键Id
</summary>
</member>
<member name="T:GDZZ.Application.JobhuntMessageOutput">
<summary>
求职信息输出参数
</summary>
</member>
<member name="P:GDZZ.Application.JobhuntMessageOutput.Id">
<summary>
主键Id
</summary>
</member>
<member name="P:GDZZ.Application.JobhuntMessageOutput.TenantId">
<summary>
租户Id
</summary>
</member>
<member name="P:GDZZ.Application.JobhuntMessageOutput.PositionInfo">
<summary>
求职详情
</summary>
</member>
<member name="P:GDZZ.Application.JobhuntMessageOutput.Title">
<summary>
求职标题
</summary>
</member>
<member name="P:GDZZ.Application.JobhuntMessageOutput.Status">
<summary>
求职状态
</summary>
</member>
<member name="P:GDZZ.Application.JobhuntMessageOutput.Experience">
<summary>
经验
</summary>
</member>
<member name="P:GDZZ.Application.JobhuntMessageOutput.Tag">
<summary>
标签
</summary>
</member>
<member name="P:GDZZ.Application.JobhuntMessageOutput.ProvinceId">
<summary>
省份
</summary>
</member>
<member name="P:GDZZ.Application.JobhuntMessageOutput.CityId">
<summary>
城市
</summary>
</member>
<member name="T:GDZZ.Application.JobhuntMessageService">
<summary>
求职信息服务
</summary>
</member>
<member name="M:GDZZ.Application.JobhuntMessageService.Page(GDZZ.Application.JobhuntMessageInput)">
<summary>
分页查询求职信息
</summary>
<param name="input"></param>
<returns></returns>
</member>
<member name="M:GDZZ.Application.JobhuntMessageService.Add(GDZZ.Application.AddJobhuntMessageInput)">
<summary>
增加求职信息
</summary>
<param name="input"></param>
<returns></returns>
</member>
<member name="M:GDZZ.Application.JobhuntMessageService.Delete(GDZZ.Application.DeleteJobhuntMessageInput)">
<summary>
删除求职信息
</summary>
<param name="input"></param>
<returns></returns>
</member>
<member name="M:GDZZ.Application.JobhuntMessageService.Update(GDZZ.Application.UpdateJobhuntMessageInput)">
<summary>
更新求职信息
</summary>
<param name="input"></param>
<returns></returns>
</member>
<member name="M:GDZZ.Application.JobhuntMessageService.Get(GDZZ.Application.QueryeJobhuntMessageInput)">
<summary>
获取求职信息
</summary>
<param name="input"></param>
<returns></returns>
</member>
<member name="M:GDZZ.Application.JobhuntMessageService.List(GDZZ.Application.JobhuntMessageInput)">
<summary>
获取求职信息列表
</summary>
<param name="input"></param>
<returns></returns>
</member>
<member name="T:GDZZ.Application.RecruitMessageDto">
<summary>
招聘消息输出参数
</summary>
</member>
<member name="P:GDZZ.Application.RecruitMessageDto.Id">
<summary>
主键Id
</summary>
</member>
<member name="P:GDZZ.Application.RecruitMessageDto.TenantId">
<summary>
租户Id
</summary>
</member>
<member name="P:GDZZ.Application.RecruitMessageDto.PositionInfo">
<summary>
职位详情
</summary>
</member>
<member name="P:GDZZ.Application.RecruitMessageDto.Title">
<summary>
标题
</summary>
</member>
<member name="P:GDZZ.Application.RecruitMessageDto.Status">
<summary>
状态
</summary>
</member>
<member name="P:GDZZ.Application.RecruitMessageDto.ProvinceId">
<summary>
省份
</summary>
</member>
<member name="P:GDZZ.Application.RecruitMessageDto.CityId">
<summary>
城市
</summary>
</member>
<member name="P:GDZZ.Application.RecruitMessageDto.AreaId">
<summary>
</summary>
</member>
<member name="P:GDZZ.Application.RecruitMessageDto.Address">
<summary>
详细地址
</summary>
</member>
<member name="P:GDZZ.Application.RecruitMessageDto.Phone">
<summary>
联系电话
</summary>
</member>
<member name="P:GDZZ.Application.RecruitMessageDto.Tag">
<summary>
标签
</summary>
</member>
<member name="P:GDZZ.Application.RecruitMessageDto.Education">
<summary>
学历
</summary>
</member>
<member name="P:GDZZ.Application.RecruitMessageDto.Experience">
<summary>
经验
</summary>
</member>
<member name="T:GDZZ.Application.RecruitMessageInput">
<summary>
招聘消息输入参数
</summary>
</member>
<member name="P:GDZZ.Application.RecruitMessageInput.TenantId">
<summary>
租户Id
</summary>
</member>
<member name="P:GDZZ.Application.RecruitMessageInput.PositionInfo">
<summary>
职位详情
</summary>
</member>
<member name="P:GDZZ.Application.RecruitMessageInput.Title">
<summary>
标题
</summary>
</member>
<member name="P:GDZZ.Application.RecruitMessageInput.Status">
<summary>
状态
</summary>
</member>
<member name="P:GDZZ.Application.RecruitMessageInput.ProvinceId">
<summary>
省份
</summary>
</member>
<member name="P:GDZZ.Application.RecruitMessageInput.CityId">
<summary>
城市
</summary>
</member>
<member name="P:GDZZ.Application.RecruitMessageInput.AreaId">
<summary>
</summary>
</member>
<member name="P:GDZZ.Application.RecruitMessageInput.Address">
<summary>
详细地址
</summary>
</member>
<member name="P:GDZZ.Application.RecruitMessageInput.Phone">
<summary>
联系电话
</summary>
</member>
<member name="P:GDZZ.Application.RecruitMessageInput.Tag">
<summary>
标签
</summary>
</member>
<member name="P:GDZZ.Application.RecruitMessageInput.Education">
<summary>
学历
</summary>
</member>
<member name="P:GDZZ.Application.RecruitMessageInput.Experience">
<summary>
经验
</summary>
</member>
<member name="P:GDZZ.Application.AddRecruitMessageInput.PositionInfo">
<summary>
职位详情
</summary>
</member>
<member name="P:GDZZ.Application.AddRecruitMessageInput.Title">
<summary>
标题
</summary>
</member>
<member name="P:GDZZ.Application.DeleteRecruitMessageInput.Id">
<summary>
主键Id
</summary>
</member>
<member name="P:GDZZ.Application.UpdateRecruitMessageInput.Id">
<summary>
主键Id
</summary>
</member>
<member name="T:GDZZ.Application.RecruitMessageOutput">
<summary>
招聘消息输出参数
</summary>
</member>
<member name="P:GDZZ.Application.RecruitMessageOutput.Id">
<summary>
主键Id
</summary>
</member>
<member name="P:GDZZ.Application.RecruitMessageOutput.TenantId">
<summary>
租户Id
</summary>
</member>
<member name="P:GDZZ.Application.RecruitMessageOutput.PositionInfo">
<summary>
职位详情
</summary>
</member>
<member name="P:GDZZ.Application.RecruitMessageOutput.Title">
<summary>
标题
</summary>
</member>
<member name="P:GDZZ.Application.RecruitMessageOutput.Status">
<summary>
状态
</summary>
</member>
<member name="P:GDZZ.Application.RecruitMessageOutput.ProvinceId">
<summary>
省份
</summary>
</member>
<member name="P:GDZZ.Application.RecruitMessageOutput.CityId">
<summary>
城市
</summary>
</member>
<member name="P:GDZZ.Application.RecruitMessageOutput.AreaId">
<summary>
</summary>
</member>
<member name="P:GDZZ.Application.RecruitMessageOutput.Address">
<summary>
详细地址
</summary>
</member>
<member name="P:GDZZ.Application.RecruitMessageOutput.Phone">
<summary>
联系电话
</summary>
</member>
<member name="P:GDZZ.Application.RecruitMessageOutput.Tag">
<summary>
标签
</summary>
</member>
<member name="P:GDZZ.Application.RecruitMessageOutput.Education">
<summary>
学历
</summary>
</member>
<member name="P:GDZZ.Application.RecruitMessageOutput.Experience">
<summary>
经验
</summary>
</member>
<member name="T:GDZZ.Application.RecruitMessageService">
<summary>
招聘消息服务
</summary>
</member>
<member name="M:GDZZ.Application.RecruitMessageService.Page(GDZZ.Application.RecruitMessageInput)">
<summary>
分页查询招聘消息
</summary>
<param name="input"></param>
<returns></returns>
</member>
<member name="M:GDZZ.Application.RecruitMessageService.Add(GDZZ.Application.AddRecruitMessageInput)">
<summary>
增加招聘消息
</summary>
<param name="input"></param>
<returns></returns>
</member>
<member name="M:GDZZ.Application.RecruitMessageService.Delete(GDZZ.Application.DeleteRecruitMessageInput)">
<summary>
删除招聘消息
</summary>
<param name="input"></param>
<returns></returns>
</member>
<member name="M:GDZZ.Application.RecruitMessageService.Update(GDZZ.Application.UpdateRecruitMessageInput)">
<summary>
更新招聘消息
</summary>
<param name="input"></param>
<returns></returns>
</member>
<member name="M:GDZZ.Application.RecruitMessageService.Get(GDZZ.Application.QueryeRecruitMessageInput)">
<summary>
获取招聘消息
</summary>
<param name="input"></param>
<returns></returns>
</member>
<member name="M:GDZZ.Application.RecruitMessageService.List(GDZZ.Application.RecruitMessageInput)">
<summary>
获取招聘消息列表
</summary>
<param name="input"></param>
<returns></returns>
</member>
</members>
</doc>

@ -1,130 +1,130 @@
<?xml version="1.0"?> <?xml version="1.0"?>
<doc> <doc>
<assembly> <assembly>
<name>Magic.Application</name> <name>GDZZ.Application</name>
</assembly> </assembly>
<members> <members>
<member name="T:Magic.Application.Entity.JobhuntMessage"> <member name="T:GDZZ.Application.Entity.JobhuntMessage">
<summary> <summary>
求职信息 求职信息
</summary> </summary>
</member> </member>
<member name="P:Magic.Application.Entity.JobhuntMessage.TenantId"> <member name="P:GDZZ.Application.Entity.JobhuntMessage.TenantId">
<summary> <summary>
租户Id 租户Id
</summary> </summary>
</member> </member>
<member name="P:Magic.Application.Entity.JobhuntMessage.PositionInfo"> <member name="P:GDZZ.Application.Entity.JobhuntMessage.PositionInfo">
<summary> <summary>
求职详情 求职详情
</summary> </summary>
</member> </member>
<member name="P:Magic.Application.Entity.JobhuntMessage.Title"> <member name="P:GDZZ.Application.Entity.JobhuntMessage.Title">
<summary> <summary>
求职标题 求职标题
</summary> </summary>
</member> </member>
<member name="P:Magic.Application.Entity.JobhuntMessage.Status"> <member name="P:GDZZ.Application.Entity.JobhuntMessage.Status">
<summary> <summary>
求职状态 求职状态
</summary> </summary>
</member> </member>
<member name="P:Magic.Application.Entity.JobhuntMessage.Experience"> <member name="P:GDZZ.Application.Entity.JobhuntMessage.Experience">
<summary> <summary>
经验 经验
</summary> </summary>
</member> </member>
<member name="P:Magic.Application.Entity.JobhuntMessage.Tag"> <member name="P:GDZZ.Application.Entity.JobhuntMessage.Tag">
<summary> <summary>
标签 标签
</summary> </summary>
</member> </member>
<member name="P:Magic.Application.Entity.JobhuntMessage.ProvinceId"> <member name="P:GDZZ.Application.Entity.JobhuntMessage.ProvinceId">
<summary> <summary>
省份 省份
</summary> </summary>
</member> </member>
<member name="P:Magic.Application.Entity.JobhuntMessage.CityId"> <member name="P:GDZZ.Application.Entity.JobhuntMessage.CityId">
<summary> <summary>
城市 城市
</summary> </summary>
</member> </member>
<member name="T:Magic.Application.Entity.RecruitMessage"> <member name="T:GDZZ.Application.Entity.RecruitMessage">
<summary> <summary>
招聘消息 招聘消息
</summary> </summary>
</member> </member>
<member name="P:Magic.Application.Entity.RecruitMessage.TenantId"> <member name="P:GDZZ.Application.Entity.RecruitMessage.TenantId">
<summary> <summary>
租户Id 租户Id
</summary> </summary>
</member> </member>
<member name="P:Magic.Application.Entity.RecruitMessage.PositionInfo"> <member name="P:GDZZ.Application.Entity.RecruitMessage.PositionInfo">
<summary> <summary>
职位详情 职位详情
</summary> </summary>
</member> </member>
<member name="P:Magic.Application.Entity.RecruitMessage.Title"> <member name="P:GDZZ.Application.Entity.RecruitMessage.Title">
<summary> <summary>
标题 标题
</summary> </summary>
</member> </member>
<member name="P:Magic.Application.Entity.RecruitMessage.Status"> <member name="P:GDZZ.Application.Entity.RecruitMessage.Status">
<summary> <summary>
状态 状态
</summary> </summary>
</member> </member>
<member name="P:Magic.Application.Entity.RecruitMessage.ProvinceId"> <member name="P:GDZZ.Application.Entity.RecruitMessage.ProvinceId">
<summary> <summary>
省份 省份
</summary> </summary>
</member> </member>
<member name="P:Magic.Application.Entity.RecruitMessage.CityId"> <member name="P:GDZZ.Application.Entity.RecruitMessage.CityId">
<summary> <summary>
城市 城市
</summary> </summary>
</member> </member>
<member name="P:Magic.Application.Entity.RecruitMessage.AreaId"> <member name="P:GDZZ.Application.Entity.RecruitMessage.AreaId">
<summary> <summary>
</summary> </summary>
</member> </member>
<member name="P:Magic.Application.Entity.RecruitMessage.Address"> <member name="P:GDZZ.Application.Entity.RecruitMessage.Address">
<summary> <summary>
详细地址 详细地址
</summary> </summary>
</member> </member>
<member name="P:Magic.Application.Entity.RecruitMessage.Phone"> <member name="P:GDZZ.Application.Entity.RecruitMessage.Phone">
<summary> <summary>
联系电话 联系电话
</summary> </summary>
</member> </member>
<member name="P:Magic.Application.Entity.RecruitMessage.Tag"> <member name="P:GDZZ.Application.Entity.RecruitMessage.Tag">
<summary> <summary>
标签 标签
</summary> </summary>
</member> </member>
<member name="P:Magic.Application.Entity.RecruitMessage.Education"> <member name="P:GDZZ.Application.Entity.RecruitMessage.Education">
<summary> <summary>
学历 学历
</summary> </summary>
</member> </member>
<member name="P:Magic.Application.Entity.RecruitMessage.Experience"> <member name="P:GDZZ.Application.Entity.RecruitMessage.Experience">
<summary> <summary>
经验 经验
</summary> </summary>
</member> </member>
<member name="T:Magic.Application.Entity.SysArea"> <member name="T:GDZZ.Application.Entity.SysArea">
<summary> <summary>
系统地区数据 系统地区数据
</summary> </summary>
</member> </member>
<member name="P:Magic.Application.Entity.SysArea.parent_id"> <member name="P:GDZZ.Application.Entity.SysArea.parent_id">
<summary> <summary>
父级ID 父级ID
</summary> </summary>
</member> </member>
<member name="P:Magic.Application.Entity.SysArea.name"> <member name="P:GDZZ.Application.Entity.SysArea.name">
<summary> <summary>
地区名 地区名
</summary> </summary>

@ -0,0 +1,96 @@
using GDZZ.Core;
using Furion.DependencyInjection;
using Furion.DynamicApiController;
using Mapster;
using Microsoft.AspNetCore.Mvc;
using SqlSugar;
using System.Linq;
using System.Threading.Tasks;
using GDZZ.Application.Entity;
namespace GDZZ.Application
{
/// <summary>
/// 招聘公司服务
/// </summary>
[ApiDescriptionSettings("Application",Name = "Company", Order = 1)]
public class CompanyService : ICompanyService, IDynamicApiController, ITransient
{
private readonly SqlSugarRepository<Company> _rep;
public CompanyService(SqlSugarRepository<Company> rep)
{
_rep = rep;
}
/// <summary>
/// 分页查询招聘公司
/// </summary>
/// <param name="input"></param>
/// <returns></returns>
[HttpGet("/Company/page")]
public async Task<dynamic> Page([FromQuery] CompanyInput input)
{
var entities = await _rep.AsQueryable()
.ToPagedListAsync(input.PageNo, input.PageSize);
return entities.XnPagedResult();
}
/// <summary>
/// 增加招聘公司
/// </summary>
/// <param name="input"></param>
/// <returns></returns>
[HttpPost("/Company/add")]
public async Task Add(AddCompanyInput input)
{
var entity = input.Adapt<Company>();
await _rep.InsertAsync(entity);
}
/// <summary>
/// 删除招聘公司
/// </summary>
/// <param name="input"></param>
/// <returns></returns>
[HttpPost("/Company/delete")]
public async Task Delete(DeleteCompanyInput input)
{
var entity = await _rep.FirstOrDefaultAsync(u => u.Id == input.Id);
await _rep.DeleteAsync(entity);
}
/// <summary>
/// 更新招聘公司
/// </summary>
/// <param name="input"></param>
/// <returns></returns>
[HttpPost("/Company/edit")]
public async Task Update(UpdateCompanyInput input)
{
var entity = input.Adapt<Company>();
await _rep.AsUpdateable(entity).IgnoreColumns(ignoreAllNullColumns:true).ExecuteCommandAsync();
}
/// <summary>
/// 获取招聘公司
/// </summary>
/// <param name="input"></param>
/// <returns></returns>
[HttpGet("/Company/detail")]
public async Task<Company> Get([FromQuery] QueryeCompanyInput input)
{
return await _rep.FirstOrDefaultAsync(u => u.Id == input.Id);
}
/// <summary>
/// 获取招聘公司列表
/// </summary>
/// <param name="input"></param>
/// <returns></returns>
[HttpGet("/Company/list")]
public async Task<dynamic> List([FromQuery] CompanyInput input)
{
return await _rep.ToListAsync();
}
}
}

@ -0,0 +1,37 @@
using System;
using GDZZ.Core;
namespace GDZZ.Application
{
/// <summary>
/// 招聘公司输出参数
/// </summary>
public class CompanyDto
{
/// <summary>
/// 主键Id
/// </summary>
public long Id { get; set; }
/// <summary>
/// 租户Id
/// </summary>
public long TenantId { get; set; }
/// <summary>
/// 地址
/// </summary>
public string Address { get; set; }
/// <summary>
/// 联系电话
/// </summary>
public string Phone { get; set; }
/// <summary>
/// 公司详情
/// </summary>
public string Profile { get; set; }
}
}

@ -0,0 +1,62 @@
using GDZZ.Core;
using System;
using System.ComponentModel.DataAnnotations;
namespace GDZZ.Application
{
/// <summary>
/// 招聘公司输入参数
/// </summary>
public class CompanyInput : PageInputBase
{
/// <summary>
/// 租户Id
/// </summary>
public virtual long TenantId { get; set; }
/// <summary>
/// 地址
/// </summary>
public virtual string Address { get; set; }
/// <summary>
/// 联系电话
/// </summary>
public virtual string Phone { get; set; }
/// <summary>
/// 公司详情
/// </summary>
public virtual string Profile { get; set; }
}
public class AddCompanyInput : CompanyInput
{
}
public class DeleteCompanyInput
{
/// <summary>
/// 主键Id
/// </summary>
[Required(ErrorMessage = "主键Id不能为空")]
public long Id { get; set; }
}
public class UpdateCompanyInput : CompanyInput
{
/// <summary>
/// 主键Id
/// </summary>
[Required(ErrorMessage = "主键Id不能为空")]
public long Id { get; set; }
}
public class QueryeCompanyInput : DeleteCompanyInput
{
}
}

@ -0,0 +1,36 @@
using System;
namespace GDZZ.Application
{
/// <summary>
/// 招聘公司输出参数
/// </summary>
public class CompanyOutput
{
/// <summary>
/// 主键Id
/// </summary>
public long Id { get; set; }
/// <summary>
/// 租户Id
/// </summary>
public long TenantId { get; set; }
/// <summary>
/// 地址
/// </summary>
public string Address { get; set; }
/// <summary>
/// 联系电话
/// </summary>
public string Phone { get; set; }
/// <summary>
/// 公司详情
/// </summary>
public string Profile { get; set; }
}
}

@ -0,0 +1,16 @@
using GDZZ.Core;
using Microsoft.AspNetCore.Mvc;
using System.Threading.Tasks;
using GDZZ.Application.Entity;
namespace GDZZ.Application
{
public interface ICompanyService
{
Task Add(AddCompanyInput input);
Task Delete(DeleteCompanyInput input);
Task<Company> Get([FromQuery] QueryeCompanyInput input);
Task<dynamic> List([FromQuery] CompanyInput input);
Task<dynamic> Page([FromQuery] CompanyInput input);
Task Update(UpdateCompanyInput input);
}
}

@ -0,0 +1,32 @@
using System;
using GDZZ.Core;
namespace GDZZ.Application
{
/// <summary>
/// 求职者输出参数
/// </summary>
public class JobHunterDto
{
/// <summary>
/// 主键Id
/// </summary>
public long Id { get; set; }
/// <summary>
/// 租户Id
/// </summary>
public long TenantId { get; set; }
/// <summary>
/// 联系电话
/// </summary>
public string Phone { get; set; }
/// <summary>
/// 性别
/// </summary>
public Int16 Gender { get; set; }
}
}

@ -0,0 +1,57 @@
using GDZZ.Core;
using System;
using System.ComponentModel.DataAnnotations;
namespace GDZZ.Application
{
/// <summary>
/// 求职者输入参数
/// </summary>
public class JobHunterInput : PageInputBase
{
/// <summary>
/// 租户Id
/// </summary>
public virtual long TenantId { get; set; }
/// <summary>
/// 联系电话
/// </summary>
public virtual string Phone { get; set; }
/// <summary>
/// 性别
/// </summary>
public virtual Int16 Gender { get; set; }
}
public class AddJobHunterInput : JobHunterInput
{
}
public class DeleteJobHunterInput
{
/// <summary>
/// 主键Id
/// </summary>
[Required(ErrorMessage = "主键Id不能为空")]
public long Id { get; set; }
}
public class UpdateJobHunterInput : JobHunterInput
{
/// <summary>
/// 主键Id
/// </summary>
[Required(ErrorMessage = "主键Id不能为空")]
public long Id { get; set; }
}
public class QueryeJobHunterInput : DeleteJobHunterInput
{
}
}

@ -0,0 +1,31 @@
using System;
namespace GDZZ.Application
{
/// <summary>
/// 求职者输出参数
/// </summary>
public class JobHunterOutput
{
/// <summary>
/// 主键Id
/// </summary>
public long Id { get; set; }
/// <summary>
/// 租户Id
/// </summary>
public long TenantId { get; set; }
/// <summary>
/// 联系电话
/// </summary>
public string Phone { get; set; }
/// <summary>
/// 性别
/// </summary>
public Int16 Gender { get; set; }
}
}

@ -0,0 +1,16 @@
using GDZZ.Core;
using Microsoft.AspNetCore.Mvc;
using System.Threading.Tasks;
using GDZZ.Application.Entity;
namespace GDZZ.Application
{
public interface IJobHunterService
{
Task Add(AddJobHunterInput input);
Task Delete(DeleteJobHunterInput input);
Task<JobHunter> Get([FromQuery] QueryeJobHunterInput input);
Task<dynamic> List([FromQuery] JobHunterInput input);
Task<dynamic> Page([FromQuery] JobHunterInput input);
Task Update(UpdateJobHunterInput input);
}
}

@ -0,0 +1,96 @@
using GDZZ.Core;
using Furion.DependencyInjection;
using Furion.DynamicApiController;
using Mapster;
using Microsoft.AspNetCore.Mvc;
using SqlSugar;
using System.Linq;
using System.Threading.Tasks;
using GDZZ.Application.Entity;
namespace GDZZ.Application
{
/// <summary>
/// 求职者服务
/// </summary>
[ApiDescriptionSettings("Application",Name = "JobHunter", Order = 1)]
public class JobHunterService : IJobHunterService, IDynamicApiController, ITransient
{
private readonly SqlSugarRepository<JobHunter> _rep;
public JobHunterService(SqlSugarRepository<JobHunter> rep)
{
_rep = rep;
}
/// <summary>
/// 分页查询求职者
/// </summary>
/// <param name="input"></param>
/// <returns></returns>
[HttpGet("/JobHunter/page")]
public async Task<dynamic> Page([FromQuery] JobHunterInput input)
{
var entities = await _rep.AsQueryable()
.ToPagedListAsync(input.PageNo, input.PageSize);
return entities.XnPagedResult();
}
/// <summary>
/// 增加求职者
/// </summary>
/// <param name="input"></param>
/// <returns></returns>
[HttpPost("/JobHunter/add")]
public async Task Add(AddJobHunterInput input)
{
var entity = input.Adapt<JobHunter>();
await _rep.InsertAsync(entity);
}
/// <summary>
/// 删除求职者
/// </summary>
/// <param name="input"></param>
/// <returns></returns>
[HttpPost("/JobHunter/delete")]
public async Task Delete(DeleteJobHunterInput input)
{
var entity = await _rep.FirstOrDefaultAsync(u => u.Id == input.Id);
await _rep.DeleteAsync(entity);
}
/// <summary>
/// 更新求职者
/// </summary>
/// <param name="input"></param>
/// <returns></returns>
[HttpPost("/JobHunter/edit")]
public async Task Update(UpdateJobHunterInput input)
{
var entity = input.Adapt<JobHunter>();
await _rep.AsUpdateable(entity).IgnoreColumns(ignoreAllNullColumns:true).ExecuteCommandAsync();
}
/// <summary>
/// 获取求职者
/// </summary>
/// <param name="input"></param>
/// <returns></returns>
[HttpGet("/JobHunter/detail")]
public async Task<JobHunter> Get([FromQuery] QueryeJobHunterInput input)
{
return await _rep.FirstOrDefaultAsync(u => u.Id == input.Id);
}
/// <summary>
/// 获取求职者列表
/// </summary>
/// <param name="input"></param>
/// <returns></returns>
[HttpGet("/JobHunter/list")]
public async Task<dynamic> List([FromQuery] JobHunterInput input)
{
return await _rep.ToListAsync();
}
}
}

@ -0,0 +1,57 @@
using System;
using GDZZ.Core;
namespace GDZZ.Application
{
/// <summary>
/// 求职信息输出参数
/// </summary>
public class JobhuntMessageDto
{
/// <summary>
/// 主键Id
/// </summary>
public long Id { get; set; }
/// <summary>
/// 租户Id
/// </summary>
public long TenantId { get; set; }
/// <summary>
/// 求职详情
/// </summary>
public string PositionInfo { get; set; }
/// <summary>
/// 求职标题
/// </summary>
public string Title { get; set; }
/// <summary>
/// 求职状态
/// </summary>
public int Status { get; set; }
/// <summary>
/// 经验
/// </summary>
public int Experience { get; set; }
/// <summary>
/// 标签
/// </summary>
public string Tag { get; set; }
/// <summary>
/// 省份
/// </summary>
public int ProvinceId { get; set; }
/// <summary>
/// 城市
/// </summary>
public int CityId { get; set; }
}
}

@ -0,0 +1,100 @@
using GDZZ.Core;
using System;
using System.ComponentModel.DataAnnotations;
namespace GDZZ.Application
{
/// <summary>
/// 求职信息输入参数
/// </summary>
public class JobhuntMessageInput : PageInputBase
{
/// <summary>
/// 租户Id
/// </summary>
public virtual long TenantId { get; set; }
/// <summary>
/// 求职详情
/// </summary>
public virtual string PositionInfo { get; set; }
/// <summary>
/// 求职标题
/// </summary>
public virtual string Title { get; set; }
/// <summary>
/// 求职状态
/// </summary>
public virtual int Status { get; set; }
/// <summary>
/// 经验
/// </summary>
public virtual int Experience { get; set; }
/// <summary>
/// 标签
/// </summary>
public virtual string Tag { get; set; }
/// <summary>
/// 省份
/// </summary>
public virtual int ProvinceId { get; set; }
/// <summary>
/// 城市
/// </summary>
public virtual int CityId { get; set; }
}
public class AddJobhuntMessageInput : JobhuntMessageInput
{
/// <summary>
/// 租户Id
/// </summary>
[Required(ErrorMessage = "租户Id不能为空")]
public override long TenantId { get; set; }
/// <summary>
/// 求职详情
/// </summary>
[Required(ErrorMessage = "求职详情不能为空")]
public override string PositionInfo { get; set; }
/// <summary>
/// 求职标题
/// </summary>
[Required(ErrorMessage = "求职标题不能为空")]
public override string Title { get; set; }
}
public class DeleteJobhuntMessageInput
{
/// <summary>
/// 主键Id
/// </summary>
[Required(ErrorMessage = "主键Id不能为空")]
public long Id { get; set; }
}
public class UpdateJobhuntMessageInput : JobhuntMessageInput
{
/// <summary>
/// 主键Id
/// </summary>
[Required(ErrorMessage = "主键Id不能为空")]
public long Id { get; set; }
}
public class QueryeJobhuntMessageInput : DeleteJobhuntMessageInput
{
}
}

@ -0,0 +1,56 @@
using System;
namespace GDZZ.Application
{
/// <summary>
/// 求职信息输出参数
/// </summary>
public class JobhuntMessageOutput
{
/// <summary>
/// 主键Id
/// </summary>
public long Id { get; set; }
/// <summary>
/// 租户Id
/// </summary>
public long TenantId { get; set; }
/// <summary>
/// 求职详情
/// </summary>
public string PositionInfo { get; set; }
/// <summary>
/// 求职标题
/// </summary>
public string Title { get; set; }
/// <summary>
/// 求职状态
/// </summary>
public int Status { get; set; }
/// <summary>
/// 经验
/// </summary>
public int Experience { get; set; }
/// <summary>
/// 标签
/// </summary>
public string Tag { get; set; }
/// <summary>
/// 省份
/// </summary>
public int ProvinceId { get; set; }
/// <summary>
/// 城市
/// </summary>
public int CityId { get; set; }
}
}

@ -0,0 +1,16 @@
using GDZZ.Core;
using Microsoft.AspNetCore.Mvc;
using System.Threading.Tasks;
using GDZZ.Application.Entity;
namespace GDZZ.Application
{
public interface IJobhuntMessageService
{
Task Add(AddJobhuntMessageInput input);
Task Delete(DeleteJobhuntMessageInput input);
Task<JobhuntMessage> Get([FromQuery] QueryeJobhuntMessageInput input);
Task<dynamic> List([FromQuery] JobhuntMessageInput input);
Task<dynamic> Page([FromQuery] JobhuntMessageInput input);
Task Update(UpdateJobhuntMessageInput input);
}
}

@ -0,0 +1,99 @@
using GDZZ.Core;
using Furion.DependencyInjection;
using Furion.DynamicApiController;
using Mapster;
using Microsoft.AspNetCore.Mvc;
using SqlSugar;
using System.Linq;
using System.Threading.Tasks;
using GDZZ.Application.Entity;
namespace GDZZ.Application
{
/// <summary>
/// 求职信息服务
/// </summary>
[ApiDescriptionSettings("Application",Name = "JobhuntMessage", Order = 1)]
public class JobhuntMessageService : IJobhuntMessageService, IDynamicApiController, ITransient
{
private readonly SqlSugarRepository<JobhuntMessage> _rep;
public JobhuntMessageService(SqlSugarRepository<JobhuntMessage> rep)
{
_rep = rep;
}
/// <summary>
/// 分页查询求职信息
/// </summary>
/// <param name="input"></param>
/// <returns></returns>
[HttpGet("/JobhuntMessage/page")]
public async Task<dynamic> Page([FromQuery] JobhuntMessageInput input)
{
var entities = await _rep.AsQueryable()
.WhereIF(!string.IsNullOrWhiteSpace(input.PositionInfo), u => u.PositionInfo == input.PositionInfo)
.WhereIF(!string.IsNullOrWhiteSpace(input.Title), u => u.Title == input.Title)
.WhereIF(!string.IsNullOrWhiteSpace(input.Tag), u => u.Tag == input.Tag)
.ToPagedListAsync(input.PageNo, input.PageSize);
return entities.XnPagedResult();
}
/// <summary>
/// 增加求职信息
/// </summary>
/// <param name="input"></param>
/// <returns></returns>
[HttpPost("/JobhuntMessage/add")]
public async Task Add(AddJobhuntMessageInput input)
{
var entity = input.Adapt<JobhuntMessage>();
await _rep.InsertAsync(entity);
}
/// <summary>
/// 删除求职信息
/// </summary>
/// <param name="input"></param>
/// <returns></returns>
[HttpPost("/JobhuntMessage/delete")]
public async Task Delete(DeleteJobhuntMessageInput input)
{
var entity = await _rep.FirstOrDefaultAsync(u => u.Id == input.Id);
await _rep.DeleteAsync(entity);
}
/// <summary>
/// 更新求职信息
/// </summary>
/// <param name="input"></param>
/// <returns></returns>
[HttpPost("/JobhuntMessage/edit")]
public async Task Update(UpdateJobhuntMessageInput input)
{
var entity = input.Adapt<JobhuntMessage>();
await _rep.AsUpdateable(entity).IgnoreColumns(ignoreAllNullColumns:true).ExecuteCommandAsync();
}
/// <summary>
/// 获取求职信息
/// </summary>
/// <param name="input"></param>
/// <returns></returns>
[HttpGet("/JobhuntMessage/detail")]
public async Task<JobhuntMessage> Get([FromQuery] QueryeJobhuntMessageInput input)
{
return await _rep.FirstOrDefaultAsync(u => u.Id == input.Id);
}
/// <summary>
/// 获取求职信息列表
/// </summary>
/// <param name="input"></param>
/// <returns></returns>
[HttpGet("/JobhuntMessage/list")]
public async Task<dynamic> List([FromQuery] JobhuntMessageInput input)
{
return await _rep.ToListAsync();
}
}
}

@ -0,0 +1,77 @@
using System;
using GDZZ.Core;
namespace GDZZ.Application
{
/// <summary>
/// 招聘消息输出参数
/// </summary>
public class RecruitMessageDto
{
/// <summary>
/// 主键Id
/// </summary>
public long Id { get; set; }
/// <summary>
/// 租户Id
/// </summary>
public long TenantId { get; set; }
/// <summary>
/// 职位详情
/// </summary>
public string PositionInfo { get; set; }
/// <summary>
/// 标题
/// </summary>
public string Title { get; set; }
/// <summary>
/// 状态
/// </summary>
public int Status { get; set; }
/// <summary>
/// 省份
/// </summary>
public int ProvinceId { get; set; }
/// <summary>
/// 城市
/// </summary>
public int CityId { get; set; }
/// <summary>
/// 区
/// </summary>
public int AreaId { get; set; }
/// <summary>
/// 详细地址
/// </summary>
public int Address { get; set; }
/// <summary>
/// 联系电话
/// </summary>
public string Phone { get; set; }
/// <summary>
/// 标签
/// </summary>
public string Tag { get; set; }
/// <summary>
/// 学历
/// </summary>
public int Education { get; set; }
/// <summary>
/// 经验
/// </summary>
public int Experience { get; set; }
}
}

@ -0,0 +1,114 @@
using GDZZ.Core;
using System;
using System.ComponentModel.DataAnnotations;
namespace GDZZ.Application
{
/// <summary>
/// 招聘消息输入参数
/// </summary>
public class RecruitMessageInput : PageInputBase
{
/// <summary>
/// 租户Id
/// </summary>
public virtual long TenantId { get; set; }
/// <summary>
/// 职位详情
/// </summary>
public virtual string PositionInfo { get; set; }
/// <summary>
/// 标题
/// </summary>
public virtual string Title { get; set; }
/// <summary>
/// 状态
/// </summary>
public virtual int Status { get; set; }
/// <summary>
/// 省份
/// </summary>
public virtual int ProvinceId { get; set; }
/// <summary>
/// 城市
/// </summary>
public virtual int CityId { get; set; }
/// <summary>
/// 区
/// </summary>
public virtual int AreaId { get; set; }
/// <summary>
/// 详细地址
/// </summary>
public virtual int Address { get; set; }
/// <summary>
/// 联系电话
/// </summary>
public virtual string Phone { get; set; }
/// <summary>
/// 标签
/// </summary>
public virtual string Tag { get; set; }
/// <summary>
/// 学历
/// </summary>
public virtual int Education { get; set; }
/// <summary>
/// 经验
/// </summary>
public virtual int Experience { get; set; }
}
public class AddRecruitMessageInput : RecruitMessageInput
{
/// <summary>
/// 职位详情
/// </summary>
[Required(ErrorMessage = "职位详情不能为空")]
public override string PositionInfo { get; set; }
/// <summary>
/// 标题
/// </summary>
[Required(ErrorMessage = "标题不能为空")]
public override string Title { get; set; }
}
public class DeleteRecruitMessageInput
{
/// <summary>
/// 主键Id
/// </summary>
[Required(ErrorMessage = "主键Id不能为空")]
public long Id { get; set; }
}
public class UpdateRecruitMessageInput : RecruitMessageInput
{
/// <summary>
/// 主键Id
/// </summary>
[Required(ErrorMessage = "主键Id不能为空")]
public long Id { get; set; }
}
public class QueryeRecruitMessageInput : DeleteRecruitMessageInput
{
}
}

@ -0,0 +1,76 @@
using System;
namespace GDZZ.Application
{
/// <summary>
/// 招聘消息输出参数
/// </summary>
public class RecruitMessageOutput
{
/// <summary>
/// 主键Id
/// </summary>
public long Id { get; set; }
/// <summary>
/// 租户Id
/// </summary>
public long TenantId { get; set; }
/// <summary>
/// 职位详情
/// </summary>
public string PositionInfo { get; set; }
/// <summary>
/// 标题
/// </summary>
public string Title { get; set; }
/// <summary>
/// 状态
/// </summary>
public int Status { get; set; }
/// <summary>
/// 省份
/// </summary>
public int ProvinceId { get; set; }
/// <summary>
/// 城市
/// </summary>
public int CityId { get; set; }
/// <summary>
/// 区
/// </summary>
public int AreaId { get; set; }
/// <summary>
/// 详细地址
/// </summary>
public int Address { get; set; }
/// <summary>
/// 联系电话
/// </summary>
public string Phone { get; set; }
/// <summary>
/// 标签
/// </summary>
public string Tag { get; set; }
/// <summary>
/// 学历
/// </summary>
public int Education { get; set; }
/// <summary>
/// 经验
/// </summary>
public int Experience { get; set; }
}
}

@ -0,0 +1,16 @@
using GDZZ.Core;
using Microsoft.AspNetCore.Mvc;
using System.Threading.Tasks;
using GDZZ.Application.Entity;
namespace GDZZ.Application
{
public interface IRecruitMessageService
{
Task Add(AddRecruitMessageInput input);
Task Delete(DeleteRecruitMessageInput input);
Task<RecruitMessage> Get([FromQuery] QueryeRecruitMessageInput input);
Task<dynamic> List([FromQuery] RecruitMessageInput input);
Task<dynamic> Page([FromQuery] RecruitMessageInput input);
Task Update(UpdateRecruitMessageInput input);
}
}

@ -0,0 +1,100 @@
using GDZZ.Core;
using Furion.DependencyInjection;
using Furion.DynamicApiController;
using Mapster;
using Microsoft.AspNetCore.Mvc;
using SqlSugar;
using System.Linq;
using System.Threading.Tasks;
using GDZZ.Application.Entity;
namespace GDZZ.Application
{
/// <summary>
/// 招聘消息服务
/// </summary>
[ApiDescriptionSettings("Application",Name = "RecruitMessage", Order = 1)]
public class RecruitMessageService : IRecruitMessageService, IDynamicApiController, ITransient
{
private readonly SqlSugarRepository<RecruitMessage> _rep;
public RecruitMessageService(SqlSugarRepository<RecruitMessage> rep)
{
_rep = rep;
}
/// <summary>
/// 分页查询招聘消息
/// </summary>
/// <param name="input"></param>
/// <returns></returns>
[HttpGet("/RecruitMessage/page")]
public async Task<dynamic> Page([FromQuery] RecruitMessageInput input)
{
var entities = await _rep.AsQueryable()
.WhereIF(!string.IsNullOrWhiteSpace(input.PositionInfo), u => u.PositionInfo == input.PositionInfo)
.WhereIF(!string.IsNullOrWhiteSpace(input.Title), u => u.Title == input.Title)
.WhereIF(!string.IsNullOrWhiteSpace(input.Phone), u => u.Phone == input.Phone)
.WhereIF(!string.IsNullOrWhiteSpace(input.Tag), u => u.Tag == input.Tag)
.ToPagedListAsync(input.PageNo, input.PageSize);
return entities.XnPagedResult();
}
/// <summary>
/// 增加招聘消息
/// </summary>
/// <param name="input"></param>
/// <returns></returns>
[HttpPost("/RecruitMessage/add")]
public async Task Add(AddRecruitMessageInput input)
{
var entity = input.Adapt<RecruitMessage>();
await _rep.InsertAsync(entity);
}
/// <summary>
/// 删除招聘消息
/// </summary>
/// <param name="input"></param>
/// <returns></returns>
[HttpPost("/RecruitMessage/delete")]
public async Task Delete(DeleteRecruitMessageInput input)
{
var entity = await _rep.FirstOrDefaultAsync(u => u.Id == input.Id);
await _rep.DeleteAsync(entity);
}
/// <summary>
/// 更新招聘消息
/// </summary>
/// <param name="input"></param>
/// <returns></returns>
[HttpPost("/RecruitMessage/edit")]
public async Task Update(UpdateRecruitMessageInput input)
{
var entity = input.Adapt<RecruitMessage>();
await _rep.AsUpdateable(entity).IgnoreColumns(ignoreAllNullColumns:true).ExecuteCommandAsync();
}
/// <summary>
/// 获取招聘消息
/// </summary>
/// <param name="input"></param>
/// <returns></returns>
[HttpGet("/RecruitMessage/detail")]
public async Task<RecruitMessage> Get([FromQuery] QueryeRecruitMessageInput input)
{
return await _rep.FirstOrDefaultAsync(u => u.Id == input.Id);
}
/// <summary>
/// 获取招聘消息列表
/// </summary>
/// <param name="input"></param>
/// <returns></returns>
[HttpGet("/RecruitMessage/list")]
public async Task<dynamic> List([FromQuery] RecruitMessageInput input)
{
return await _rep.ToListAsync();
}
}
}

@ -4,7 +4,7 @@ using System.Linq;
using System.Text; using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
namespace Magic.Application.Service; namespace GDZZ.Application.Service;
public interface ITestService public interface ITestService
{ {

@ -3,15 +3,15 @@ using Furion.DynamicApiController;
using Furion.FriendlyException; using Furion.FriendlyException;
using Furion.JsonSerialization; using Furion.JsonSerialization;
using Furion.Logging.Extensions; using Furion.Logging.Extensions;
using Magic.Core; using GDZZ.Core;
using Magic.Core.Entity; using GDZZ.Core.Entity;
using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc;
using System; using System;
using System.Text.Json; using System.Text.Json;
using System.Threading.Tasks; using System.Threading.Tasks;
namespace Magic.Application.Service; namespace GDZZ.Application.Service;
[ApiDescriptionSettings("Application",Name = "Test", Order = 1)] [ApiDescriptionSettings("Application",Name = "Test", Order = 1)]
public class TestService : ITestService, IDynamicApiController, ITransient public class TestService : ITestService, IDynamicApiController, ITransient

@ -1,7 +1,7 @@
using Furion; using Furion;
using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.DependencyInjection;
namespace Magic.Application; namespace GDZZ.Application;
public class Startup : AppStartup public class Startup : AppStartup
{ {

@ -8,7 +8,7 @@
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>
<ProjectReference Include="..\Magic.Web.Core\Magic.Web.Core.csproj" /> <ProjectReference Include="..\GDZZ.Web.Core\GDZZ.Web.Core.csproj" />
</ItemGroup> </ItemGroup>
</Project> </Project>

@ -3,9 +3,9 @@
using Magic.CodeFirst; using GDZZ.CodeFirst;
using Magic.Core; using GDZZ.Core;
using Magic.Core.Entity; using GDZZ.Core.Entity;
using Microsoft.Extensions.Configuration; using Microsoft.Extensions.Configuration;
using SqlSugar; using SqlSugar;
using System.Collections; using System.Collections;
@ -16,7 +16,7 @@ using System.Text;
var assembles = new string[] { "Magic.FlowCenter.dll", "Magic.Core.dll" }; var assembles = new string[] { "GDZZ.FlowCenter.dll", "GDZZ.Core.dll" };
//首先创建数据库 //首先创建数据库
CreateDatabase(); CreateDatabase();
//初始化表结构 //初始化表结构
@ -102,7 +102,7 @@ static void CreateSeedData(string[] assembles)
MethodInfo curMethod = staticDoWorkMethod.MakeGenericMethod(curType); MethodInfo curMethod = staticDoWorkMethod.MakeGenericMethod(curType);
var list = curMethod.Invoke(null, null); var list = curMethod.Invoke(null, null);
if (list == null) continue; if (list == null) continue;
var path = Path.Combine(@"D:\Workspace\admin-net-sqlsugar\backend\Magic.CodeFirst\SeedData", $"{curType.Name}SeedData.cs"); var path = Path.Combine(@"D:\Workspace\admin-net-sqlsugar\backend\GDZZ.CodeFirst\SeedData", $"{curType.Name}SeedData.cs");
if (File.Exists(path)) if (File.Exists(path))
@ -110,10 +110,10 @@ static void CreateSeedData(string[] assembles)
FileStream fs = new FileStream(path, FileMode.CreateNew, FileAccess.ReadWrite); FileStream fs = new FileStream(path, FileMode.CreateNew, FileAccess.ReadWrite);
StreamWriter sw = new StreamWriter(fs); StreamWriter sw = new StreamWriter(fs);
StringBuilder sb = new StringBuilder($@"using Magic.Core; StringBuilder sb = new StringBuilder($@"using GDZZ.Core;
using Magic.Core.Entity; using GDZZ.Core.Entity;
namespace Magic.CodeFirst; namespace GDZZ.CodeFirst;
public class {curType.Name}SeedData : ISeedData , ISqlSugarEntitySeedData<{curType.Name}> public class {curType.Name}SeedData : ISeedData , ISqlSugarEntitySeedData<{curType.Name}>
{{ public IEnumerable<{curType.Name}> HasData() {{ public IEnumerable<{curType.Name}> HasData()
@ -144,7 +144,7 @@ static void InsertData()
{ {
var baseType = typeof(ISeedData); var baseType = typeof(ISeedData);
var path = AppDomain.CurrentDomain.RelativeSearchPath ?? AppDomain.CurrentDomain.BaseDirectory; var path = AppDomain.CurrentDomain.RelativeSearchPath ?? AppDomain.CurrentDomain.BaseDirectory;
var referencedAssemblies = System.IO.Directory.GetFiles(path, "Magic.CodeFirst.dll").Select(Assembly.LoadFrom).ToArray(); var referencedAssemblies = System.IO.Directory.GetFiles(path, "GDZZ.CodeFirst.dll").Select(Assembly.LoadFrom).ToArray();
var seedDataTypes = referencedAssemblies var seedDataTypes = referencedAssemblies
.SelectMany(a => a.DefinedTypes) .SelectMany(a => a.DefinedTypes)
.Select(type => type.AsType()) .Select(type => type.AsType())

@ -1,7 +1,7 @@
using Magic.Core; using GDZZ.Core;
using Magic.Core.Entity; using GDZZ.Core.Entity;
namespace Magic.CodeFirst; namespace GDZZ.CodeFirst;
public class DocumentationSeedData : ISeedData , ISqlSugarEntitySeedData<Documentation> public class DocumentationSeedData : ISeedData , ISqlSugarEntitySeedData<Documentation>
{ public IEnumerable<Documentation> HasData() { public IEnumerable<Documentation> HasData()

@ -1,4 +1,4 @@
namespace Magic.CodeFirst; namespace GDZZ.CodeFirst;
/// <summary> /// <summary>
/// 实体种子数据接口 /// 实体种子数据接口

@ -1,7 +1,7 @@
using Magic.Core; using GDZZ.Core;
using Magic.Core.Entity; using GDZZ.Core.Entity;
namespace Magic.CodeFirst; namespace GDZZ.CodeFirst;
public class SysAppSeedData : ISeedData , ISqlSugarEntitySeedData<SysApp> public class SysAppSeedData : ISeedData , ISqlSugarEntitySeedData<SysApp>
{ public IEnumerable<SysApp> HasData() { public IEnumerable<SysApp> HasData()

@ -1,7 +1,7 @@
using Magic.Core; using GDZZ.Core;
using Magic.Core.Entity; using GDZZ.Core.Entity;
namespace Magic.CodeFirst; namespace GDZZ.CodeFirst;
public class SysCodeGenConfigSeedData : ISeedData , ISqlSugarEntitySeedData<SysCodeGenConfig> public class SysCodeGenConfigSeedData : ISeedData , ISqlSugarEntitySeedData<SysCodeGenConfig>
{ public IEnumerable<SysCodeGenConfig> HasData() { public IEnumerable<SysCodeGenConfig> HasData()

@ -0,0 +1,13 @@
using GDZZ.Core;
using GDZZ.Core.Entity;
namespace GDZZ.CodeFirst;
public class SysCodeGenSeedData : ISeedData , ISqlSugarEntitySeedData<SysCodeGen>
{ public IEnumerable<SysCodeGen> HasData()
{ string json = @"[{""AuthorName"":""GDZZ"",""TablePrefix"":null,""GenerateType"":""2"",""TableName"":""Test"",""NameSpace"":""GDZZ.Application"",""BusName"":""测试"",""MenuApplication"":""busiapp"",""MenuPid"":0,""CreatedTime"":""2022-05-25T09:15:02.367"",""UpdatedTime"":null,""CreatedUserId"":142307070910551,""CreatedUserName"":""超级管理员"",""UpdatedUserId"":null,""UpdatedUserName"":null,""IsDeleted"":false,""Id"":291946907033669}]
";
List<SysCodeGen> list = JsonUtil.ToObject<List<SysCodeGen>>(json);
return list;
}}

@ -1,7 +1,7 @@
using Magic.Core; using GDZZ.Core;
using Magic.Core.Entity; using GDZZ.Core.Entity;
namespace Magic.CodeFirst; namespace GDZZ.CodeFirst;
public class SysConfigSeedData : ISeedData , ISqlSugarEntitySeedData<SysConfig> public class SysConfigSeedData : ISeedData , ISqlSugarEntitySeedData<SysConfig>
{ public IEnumerable<SysConfig> HasData() { public IEnumerable<SysConfig> HasData()

@ -1,7 +1,7 @@
using Magic.Core; using GDZZ.Core;
using Magic.Core.Entity; using GDZZ.Core.Entity;
namespace Magic.CodeFirst; namespace GDZZ.CodeFirst;
public class SysDictDataSeedData : ISeedData , ISqlSugarEntitySeedData<SysDictData> public class SysDictDataSeedData : ISeedData , ISqlSugarEntitySeedData<SysDictData>
{ public IEnumerable<SysDictData> HasData() { public IEnumerable<SysDictData> HasData()

@ -1,7 +1,7 @@
using Magic.Core; using GDZZ.Core;
using Magic.Core.Entity; using GDZZ.Core.Entity;
namespace Magic.CodeFirst; namespace GDZZ.CodeFirst;
public class SysDictTypeSeedData : ISeedData , ISqlSugarEntitySeedData<SysDictType> public class SysDictTypeSeedData : ISeedData , ISqlSugarEntitySeedData<SysDictType>
{ public IEnumerable<SysDictType> HasData() { public IEnumerable<SysDictType> HasData()

@ -1,7 +1,7 @@
using Magic.Core; using GDZZ.Core;
using Magic.Core.Entity; using GDZZ.Core.Entity;
namespace Magic.CodeFirst; namespace GDZZ.CodeFirst;
public class SysEmpPosSeedData : ISeedData , ISqlSugarEntitySeedData<SysEmpPos> public class SysEmpPosSeedData : ISeedData , ISqlSugarEntitySeedData<SysEmpPos>
{ public IEnumerable<SysEmpPos> HasData() { public IEnumerable<SysEmpPos> HasData()

@ -1,7 +1,7 @@
using Magic.Core; using GDZZ.Core;
using Magic.Core.Entity; using GDZZ.Core.Entity;
namespace Magic.CodeFirst; namespace GDZZ.CodeFirst;
public class SysEmpSeedData : ISeedData , ISqlSugarEntitySeedData<SysEmp> public class SysEmpSeedData : ISeedData , ISqlSugarEntitySeedData<SysEmp>
{ public IEnumerable<SysEmp> HasData() { public IEnumerable<SysEmp> HasData()

@ -1,7 +1,7 @@
using Magic.Core; using GDZZ.Core;
using Magic.Core.Entity; using GDZZ.Core.Entity;
namespace Magic.CodeFirst; namespace GDZZ.CodeFirst;
public class SysFileSeedData : ISeedData , ISqlSugarEntitySeedData<SysFile> public class SysFileSeedData : ISeedData , ISqlSugarEntitySeedData<SysFile>
{ public IEnumerable<SysFile> HasData() { public IEnumerable<SysFile> HasData()

@ -1,7 +1,7 @@
using Magic.Core; using GDZZ.Core;
using Magic.Core.Entity; using GDZZ.Core.Entity;
namespace Magic.CodeFirst; namespace GDZZ.CodeFirst;
public class SysMenuSeedData : ISeedData , ISqlSugarEntitySeedData<SysMenu> public class SysMenuSeedData : ISeedData , ISqlSugarEntitySeedData<SysMenu>
{ public IEnumerable<SysMenu> HasData() { public IEnumerable<SysMenu> HasData()

@ -1,7 +1,7 @@
using Magic.Core; using GDZZ.Core;
using Magic.Core.Entity; using GDZZ.Core.Entity;
namespace Magic.CodeFirst; namespace GDZZ.CodeFirst;
public class SysNoticeSeedData : ISeedData , ISqlSugarEntitySeedData<SysNotice> public class SysNoticeSeedData : ISeedData , ISqlSugarEntitySeedData<SysNotice>
{ public IEnumerable<SysNotice> HasData() { public IEnumerable<SysNotice> HasData()

@ -1,7 +1,7 @@
using Magic.Core; using GDZZ.Core;
using Magic.Core.Entity; using GDZZ.Core.Entity;
namespace Magic.CodeFirst; namespace GDZZ.CodeFirst;
public class SysNoticeUserSeedData : ISeedData , ISqlSugarEntitySeedData<SysNoticeUser> public class SysNoticeUserSeedData : ISeedData , ISqlSugarEntitySeedData<SysNoticeUser>
{ public IEnumerable<SysNoticeUser> HasData() { public IEnumerable<SysNoticeUser> HasData()

@ -1,7 +1,7 @@
using Magic.Core; using GDZZ.Core;
using Magic.Core.Entity; using GDZZ.Core.Entity;
namespace Magic.CodeFirst; namespace GDZZ.CodeFirst;
public class SysOrgSeedData : ISeedData , ISqlSugarEntitySeedData<SysOrg> public class SysOrgSeedData : ISeedData , ISqlSugarEntitySeedData<SysOrg>
{ public IEnumerable<SysOrg> HasData() { public IEnumerable<SysOrg> HasData()

@ -1,7 +1,7 @@
using Magic.Core; using GDZZ.Core;
using Magic.Core.Entity; using GDZZ.Core.Entity;
namespace Magic.CodeFirst; namespace GDZZ.CodeFirst;
public class SysPosSeedData : ISeedData , ISqlSugarEntitySeedData<SysPos> public class SysPosSeedData : ISeedData , ISqlSugarEntitySeedData<SysPos>
{ public IEnumerable<SysPos> HasData() { public IEnumerable<SysPos> HasData()

@ -1,7 +1,7 @@
using Magic.Core; using GDZZ.Core;
using Magic.Core.Entity; using GDZZ.Core.Entity;
namespace Magic.CodeFirst; namespace GDZZ.CodeFirst;
public class SysRoleDataScopeSeedData : ISeedData , ISqlSugarEntitySeedData<SysRoleDataScope> public class SysRoleDataScopeSeedData : ISeedData , ISqlSugarEntitySeedData<SysRoleDataScope>
{ public IEnumerable<SysRoleDataScope> HasData() { public IEnumerable<SysRoleDataScope> HasData()

@ -1,7 +1,7 @@
using Magic.Core; using GDZZ.Core;
using Magic.Core.Entity; using GDZZ.Core.Entity;
namespace Magic.CodeFirst; namespace GDZZ.CodeFirst;
public class SysRoleMenuSeedData : ISeedData , ISqlSugarEntitySeedData<SysRoleMenu> public class SysRoleMenuSeedData : ISeedData , ISqlSugarEntitySeedData<SysRoleMenu>
{ public IEnumerable<SysRoleMenu> HasData() { public IEnumerable<SysRoleMenu> HasData()

@ -1,7 +1,7 @@
using Magic.Core; using GDZZ.Core;
using Magic.Core.Entity; using GDZZ.Core.Entity;
namespace Magic.CodeFirst; namespace GDZZ.CodeFirst;
public class SysRoleSeedData : ISeedData , ISqlSugarEntitySeedData<SysRole> public class SysRoleSeedData : ISeedData , ISqlSugarEntitySeedData<SysRole>
{ public IEnumerable<SysRole> HasData() { public IEnumerable<SysRole> HasData()

@ -1,7 +1,7 @@
using Magic.Core; using GDZZ.Core;
using Magic.Core.Entity; using GDZZ.Core.Entity;
namespace Magic.CodeFirst; namespace GDZZ.CodeFirst;
public class SysTenantSeedData : ISeedData , ISqlSugarEntitySeedData<SysTenant> public class SysTenantSeedData : ISeedData , ISqlSugarEntitySeedData<SysTenant>
{ public IEnumerable<SysTenant> HasData() { public IEnumerable<SysTenant> HasData()

@ -1,7 +1,7 @@
using Magic.Core; using GDZZ.Core;
using Magic.Core.Entity; using GDZZ.Core.Entity;
namespace Magic.CodeFirst; namespace GDZZ.CodeFirst;
public class SysTestSeedData : ISeedData , ISqlSugarEntitySeedData<Test> public class SysTestSeedData : ISeedData , ISqlSugarEntitySeedData<Test>
{ public IEnumerable<Test> HasData() { public IEnumerable<Test> HasData()

@ -1,7 +1,7 @@
using Magic.Core; using GDZZ.Core;
using Magic.Core.Entity; using GDZZ.Core.Entity;
namespace Magic.CodeFirst; namespace GDZZ.CodeFirst;
public class SysTimerSeedData : ISeedData , ISqlSugarEntitySeedData<SysTimer> public class SysTimerSeedData : ISeedData , ISqlSugarEntitySeedData<SysTimer>
{ public IEnumerable<SysTimer> HasData() { public IEnumerable<SysTimer> HasData()

@ -1,7 +1,7 @@
using Magic.Core; using GDZZ.Core;
using Magic.Core.Entity; using GDZZ.Core.Entity;
namespace Magic.CodeFirst; namespace GDZZ.CodeFirst;
public class SysUserDataScopeSeedData : ISeedData , ISqlSugarEntitySeedData<SysUserDataScope> public class SysUserDataScopeSeedData : ISeedData , ISqlSugarEntitySeedData<SysUserDataScope>
{ public IEnumerable<SysUserDataScope> HasData() { public IEnumerable<SysUserDataScope> HasData()

@ -1,7 +1,7 @@
using Magic.Core; using GDZZ.Core;
using Magic.Core.Entity; using GDZZ.Core.Entity;
namespace Magic.CodeFirst; namespace GDZZ.CodeFirst;
public class SysUserRoleSeedData : ISeedData , ISqlSugarEntitySeedData<SysUserRole> public class SysUserRoleSeedData : ISeedData , ISqlSugarEntitySeedData<SysUserRole>
{ public IEnumerable<SysUserRole> HasData() { public IEnumerable<SysUserRole> HasData()

@ -1,7 +1,7 @@
using Magic.Core; using GDZZ.Core;
using Magic.Core.Entity; using GDZZ.Core.Entity;
namespace Magic.CodeFirst; namespace GDZZ.CodeFirst;
public class SysUserSeedData : ISeedData , ISqlSugarEntitySeedData<SysUser> public class SysUserSeedData : ISeedData , ISqlSugarEntitySeedData<SysUser>
{ public IEnumerable<SysUser> HasData() { public IEnumerable<SysUser> HasData()

@ -1,4 +1,4 @@
using Magic.Core; using GDZZ.Core;
using Microsoft.Extensions.Configuration; using Microsoft.Extensions.Configuration;
using SqlSugar; using SqlSugar;
using System; using System;
@ -7,14 +7,14 @@ using System.Linq;
using System.Text; using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
namespace Magic.CodeFirst; namespace GDZZ.CodeFirst;
public class SqlSugarHelper public class SqlSugarHelper
{ {
//用单例模式 //用单例模式
// public static SqlSugarScope Db = new SqlSugarScope(new ConnectionConfig() // public static SqlSugarScope Db = new SqlSugarScope(new ConnectionConfig()
// { // {
// ConnectionString = "Server=.;Database=MagicCodeFirst;User=sa;Password=123456;MultipleActiveResultSets=True;",//连接符字串 // ConnectionString = "Server=.;Database=GDZZCodeFirst;User=sa;Password=123456;MultipleActiveResultSets=True;",//连接符字串
// DbType = DbType.SqlServer,//数据库类型 // DbType = DbType.SqlServer,//数据库类型
// IsAutoCloseConnection = true //不设成true要手动close // IsAutoCloseConnection = true //不设成true要手动close
// }, // },

@ -1,6 +1,6 @@
using System; using System;
namespace Magic.Core; namespace GDZZ.Core;
/// <summary> /// <summary>
/// 启用用操作日志 /// 启用用操作日志

@ -1,7 +1,7 @@
using System; using System;
using System.Data; using System.Data;
namespace Magic.Core; namespace GDZZ.Core;
/// <summary> /// <summary>
/// SqlSugar 工作单元配置特性 /// SqlSugar 工作单元配置特性

@ -2,7 +2,7 @@
using System.Collections.Generic; using System.Collections.Generic;
using System.Threading.Tasks; using System.Threading.Tasks;
namespace Magic.Core; namespace GDZZ.Core;
/// <summary> /// <summary>
/// 缓存接口 /// 缓存接口

@ -7,7 +7,7 @@ using System.Linq;
using System.Reflection; using System.Reflection;
using System.Threading.Tasks; using System.Threading.Tasks;
namespace Magic.Core; namespace GDZZ.Core;
/// <summary> /// <summary>
/// 内存缓存 /// 内存缓存

@ -5,7 +5,7 @@ using System.Collections.Generic;
using System.Linq; using System.Linq;
using System.Threading.Tasks; using System.Threading.Tasks;
namespace Magic.Core; namespace GDZZ.Core;
/// <summary> /// <summary>
/// Redis缓存 /// Redis缓存

@ -4,7 +4,7 @@ using SqlSugar;
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
namespace Magic.Core; namespace GDZZ.Core;
public class SqlSugarCache : ICacheService public class SqlSugarCache : ICacheService
{ {

@ -10,7 +10,7 @@ using System.IO;
using System.Linq; using System.Linq;
using Yitter.IdGenerator; using Yitter.IdGenerator;
namespace Magic.Core; namespace GDZZ.Core;
/// <summary> /// <summary>
/// 点选验证码 /// 点选验证码

@ -1,7 +1,7 @@
using Furion.DependencyInjection; using Furion.DependencyInjection;
using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations;
namespace Magic.Core; namespace GDZZ.Core;
/// <summary> /// <summary>
/// 点击验证码输入参数 /// 点击验证码输入参数

@ -1,7 +1,7 @@
using Furion.DependencyInjection; using Furion.DependencyInjection;
using System.Collections.Generic; using System.Collections.Generic;
namespace Magic.Core; namespace GDZZ.Core;
/// <summary> /// <summary>
/// 验证码输出参数 /// 验证码输出参数

@ -1,4 +1,4 @@
namespace Magic.Core; namespace GDZZ.Core;
public interface IClickWordCaptcha public interface IClickWordCaptcha
{ {

@ -7,7 +7,7 @@ using System.Drawing.Imaging;
using System.IO; using System.IO;
using System.Text; using System.Text;
namespace Magic.Core; namespace GDZZ.Core;
/// <summary> /// <summary>
/// 常规验证码 /// 常规验证码

@ -1,7 +1,7 @@
using Furion.DependencyInjection; using Furion.DependencyInjection;
using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations;
namespace Magic.Core; namespace GDZZ.Core;
/// <summary> /// <summary>
/// 常规验证码输入 /// 常规验证码输入

@ -1,4 +1,4 @@
namespace Magic.Core; namespace GDZZ.Core;
public interface IGeneralCaptcha public interface IGeneralCaptcha
{ {

@ -1,7 +1,7 @@
using Furion.ConfigurableOptions; using Furion.ConfigurableOptions;
using System.Collections.Generic; using System.Collections.Generic;
namespace Magic.Core; namespace GDZZ.Core;
/// <summary> /// <summary>
/// 缓存配置 /// 缓存配置

@ -1,4 +1,4 @@
namespace Magic.Core; namespace GDZZ.Core;
public class ClaimConst public class ClaimConst
{ {

@ -1,4 +1,4 @@
namespace Magic.Core; namespace GDZZ.Core;
public class CommonConst public class CommonConst
{ {
@ -43,7 +43,7 @@ public class CommonConst
/// <summary> /// <summary>
/// 程序集 /// 程序集
/// </summary> /// </summary>
public static string[] ENTITY_ASSEMBLY_NAME = new string[] { "Magic.Core", "Magic.Application", "Magic.FlowCenter" }; public static string[] ENTITY_ASSEMBLY_NAME = new string[] { "GDZZ.Core", "GDZZ.Application", "GDZZ.FlowCenter" };
/// <summary> /// <summary>
/// 删除字段 /// 删除字段
/// </summary> /// </summary>

@ -1,7 +1,7 @@
 
using SqlSugar; using SqlSugar;
namespace Magic.Core.Entity; namespace GDZZ.Core.Entity;
/// <summary> /// <summary>
/// 自定义租户基类实体 /// 自定义租户基类实体

@ -2,7 +2,7 @@
using System; using System;
using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations;
namespace Magic.Core.Entity; namespace GDZZ.Core.Entity;
/// <summary> /// <summary>
/// 自定义实体基类 /// 自定义实体基类

@ -1,7 +1,7 @@
using SqlSugar; using SqlSugar;
using System.Collections.Generic; using System.Collections.Generic;
using System.ComponentModel; using System.ComponentModel;
namespace Magic.Core.Entity; namespace GDZZ.Core.Entity;
/// <summary> /// <summary>
/// 文档表 /// 文档表

@ -2,7 +2,7 @@
using System.ComponentModel; using System.ComponentModel;
using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations;
namespace Magic.Core.Entity; namespace GDZZ.Core.Entity;
/// <summary> /// <summary>
/// 系统应用表 /// 系统应用表

@ -2,7 +2,7 @@
using System.ComponentModel; using System.ComponentModel;
using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations;
namespace Magic.Core.Entity; namespace GDZZ.Core.Entity;
/// <summary> /// <summary>
/// 代码生成表 /// 代码生成表

@ -2,7 +2,7 @@
using System.ComponentModel; using System.ComponentModel;
using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations;
namespace Magic.Core.Entity; namespace GDZZ.Core.Entity;
/// <summary> /// <summary>
/// 代码生成字段配置表 /// 代码生成字段配置表

@ -2,7 +2,7 @@
using System.ComponentModel; using System.ComponentModel;
using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations;
namespace Magic.Core.Entity; namespace GDZZ.Core.Entity;
/// <summary> /// <summary>
/// 参数配置表 /// 参数配置表

@ -1,7 +1,7 @@
using SqlSugar; using SqlSugar;
using System.ComponentModel; using System.ComponentModel;
using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations;
namespace Magic.Core.Entity; namespace GDZZ.Core.Entity;
/// <summary> /// <summary>
/// 字典值表 /// 字典值表

@ -5,7 +5,7 @@ using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.ComponentModel; using System.ComponentModel;
using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations;
namespace Magic.Core.Entity; namespace GDZZ.Core.Entity;
/// <summary> /// <summary>
/// 字典类型表 /// 字典类型表

@ -1,7 +1,7 @@
using SqlSugar; using SqlSugar;
using System.ComponentModel; using System.ComponentModel;
using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations;
namespace Magic.Core.Entity; namespace GDZZ.Core.Entity;
/// <summary> /// <summary>
/// 员工表 /// 员工表

@ -1,6 +1,6 @@
using SqlSugar; using SqlSugar;
using System.ComponentModel; using System.ComponentModel;
namespace Magic.Core.Entity; namespace GDZZ.Core.Entity;
/// <summary> /// <summary>
/// 员工附属机构职位表 /// 员工附属机构职位表

@ -1,7 +1,7 @@
using SqlSugar; using SqlSugar;
using System.ComponentModel; using System.ComponentModel;
namespace Magic.Core.Entity; namespace GDZZ.Core.Entity;
/// <summary> /// <summary>
/// 员工职位表 /// 员工职位表

@ -1,7 +1,7 @@
using SqlSugar; using SqlSugar;
using System.ComponentModel; using System.ComponentModel;
using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations;
namespace Magic.Core.Entity; namespace GDZZ.Core.Entity;
/// <summary> /// <summary>
/// 文件信息表 /// 文件信息表

@ -3,7 +3,7 @@ using SqlSugar;
using System; using System;
using System.ComponentModel; using System.ComponentModel;
using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations;
namespace Magic.Core.Entity; namespace GDZZ.Core.Entity;
/// <summary> /// <summary>
/// 系统操作/审计日志表 /// 系统操作/审计日志表

@ -3,7 +3,7 @@ using SqlSugar;
using System; using System;
using System.ComponentModel; using System.ComponentModel;
using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations;
namespace Magic.Core.Entity; namespace GDZZ.Core.Entity;
/// <summary> /// <summary>
/// 异常日志 /// 异常日志

@ -2,7 +2,7 @@ using SqlSugar;
using System; using System;
using System.ComponentModel; using System.ComponentModel;
using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations;
namespace Magic.Core.Entity; namespace GDZZ.Core.Entity;
/// <summary> /// <summary>
/// 操作日志表 /// 操作日志表

@ -2,7 +2,7 @@
using System; using System;
using System.ComponentModel; using System.ComponentModel;
using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations;
namespace Magic.Core.Entity; namespace GDZZ.Core.Entity;
/// <summary> /// <summary>
/// 访问日志表 /// 访问日志表

@ -2,7 +2,7 @@
using System.Collections.Generic; using System.Collections.Generic;
using System.ComponentModel; using System.ComponentModel;
using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations;
namespace Magic.Core.Entity; namespace GDZZ.Core.Entity;
/// <summary> /// <summary>
/// 菜单表 /// 菜单表

@ -2,7 +2,7 @@
using System; using System;
using System.ComponentModel; using System.ComponentModel;
using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations;
namespace Magic.Core.Entity; namespace GDZZ.Core.Entity;
/// <summary> /// <summary>
/// 通知公告表 /// 通知公告表

@ -2,7 +2,7 @@
using System; using System;
using System.ComponentModel; using System.ComponentModel;
namespace Magic.Core.Entity; namespace GDZZ.Core.Entity;
/// <summary> /// <summary>
/// 通知公告用户表 /// 通知公告用户表

@ -1,7 +1,7 @@
using SqlSugar; using SqlSugar;
using System.ComponentModel; using System.ComponentModel;
using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations;
namespace Magic.Core.Entity; namespace GDZZ.Core.Entity;
/// <summary> /// <summary>
/// Oauth登录用户表 /// Oauth登录用户表

@ -3,7 +3,7 @@ using System;
using System.ComponentModel; using System.ComponentModel;
using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations;
namespace Magic.Core.Entity; namespace GDZZ.Core.Entity;
/// <summary> /// <summary>
/// 在线用户表 /// 在线用户表

@ -1,7 +1,7 @@
using SqlSugar; using SqlSugar;
using System.ComponentModel; using System.ComponentModel;
using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations;
namespace Magic.Core.Entity; namespace GDZZ.Core.Entity;
/// <summary> /// <summary>
/// 组织机构表 /// 组织机构表

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save