招聘模板

master
xiaochanghai 7 months ago
parent d58953adbb
commit f932e93822
  1. 7015
      Model/Tiobon.Web.pdm
  2. 14
      Tiobon.Core.Api/Controllers/Ghrh/Ghrh_TemplateController.cs
  3. 11
      Tiobon.Core.IServices/Ghrh/IGhrh_TemplateServices.cs
  4. 129
      Tiobon.Core.Model/Base/Ghrh/Ghrh_Template.Dto.Base.cs
  5. 26
      Tiobon.Core.Model/Edit/Ghrh/Ghrh_Template.Dto.EditInput.cs
  6. 26
      Tiobon.Core.Model/Insert/Ghrh/Ghrh_Template.Dto.InsertInput.cs
  7. 130
      Tiobon.Core.Model/Models/Ghrh/Ghrh_Template.cs
  8. 34
      Tiobon.Core.Model/View/Ghrh/Ghrh_Template.Dto.View.cs
  9. 15
      Tiobon.Core.Services/Ghrh/Ghrh_TemplateServices.cs

File diff suppressed because it is too large Load Diff

@ -0,0 +1,14 @@
namespace Tiobon.Core.Api.Controllers;
/// <summary>
/// 招聘模板(Controller)
/// </summary>
[Route("api/[controller]")]
[ApiController, GlobalActionFilter]
[Authorize(Permissions.Name), ApiExplorerSettings(GroupName = Grouping.GroupName_Ghrh)]
public class Ghrh_TemplateController : BaseController<IGhrh_TemplateServices, Ghrh_Template, Ghrh_TemplateDto, InsertGhrh_TemplateInput, EditGhrh_TemplateInput>
{
public Ghrh_TemplateController(IGhrh_TemplateServices service) : base(service)
{
}
}

@ -0,0 +1,11 @@
using Tiobon.Core.IServices.BASE;
using Tiobon.Core.Model.Models;
namespace Tiobon.Core.IServices;
/// <summary>
/// 招聘模板(自定义服务接口)
/// </summary>
public interface IGhrh_TemplateServices :IBaseServices<Ghrh_Template, Ghrh_TemplateDto, InsertGhrh_TemplateInput, EditGhrh_TemplateInput>
{
}

@ -0,0 +1,129 @@
/* ,
* Ghrh_Template.cs
*
* N / A
* Ghrh_Template
*
* Ver
*
*V0.01 2024/12/4 15:28:50 SimonHsiao
*
* Copyright(c) 2024 Tiobon Corporation. All Rights Reserved.
*
*  
* SimonHsiao
*
*/
namespace Tiobon.Core.Model.Models;
/// <summary>
/// 招聘模板 (Dto.Base)
/// </summary>
public class Ghrh_TemplateBase
{
/// <summary>
/// 模板名称
/// </summary>
[Display(Name = "TemplateName"), Description("模板名称"), MaxLength(1000, ErrorMessage = "模板名称 不能超过 1000 个字符")]
public string TemplateName { get; set; }
/// <summary>
/// 模板类型
/// </summary>
[Display(Name = "TemplateType"), Description("模板类型"), MaxLength(100, ErrorMessage = "模板类型 不能超过 100 个字符")]
public string TemplateType { get; set; }
/// <summary>
/// 模板内容
/// </summary>
[Display(Name = "TemplateContent"), Description("模板内容"), MaxLength(2147483647, ErrorMessage = "模板内容 不能超过 2147483647 个字符")]
public string TemplateContent { get; set; }
/// <summary>
/// 是否发布
/// </summary>
public int? IsPublish { get; set; }
/// <summary>
/// 备注
/// </summary>
[Display(Name = "RemarkSz"), Description("备注"), MaxLength(2000, ErrorMessage = "备注 不能超过 2000 个字符")]
public string RemarkSz { get; set; }
/// <summary>
/// 默认标志
/// </summary>
public int? IsDefault { get; set; }
/// <summary>
/// 预留字段1
/// </summary>
[Display(Name = "Reverse1"), Description("预留字段1"), MaxLength(1000, ErrorMessage = "预留字段1 不能超过 1000 个字符")]
public string Reverse1 { get; set; }
/// <summary>
/// 预留字段2
/// </summary>
[Display(Name = "Reverse2"), Description("预留字段2"), MaxLength(1000, ErrorMessage = "预留字段2 不能超过 1000 个字符")]
public string Reverse2 { get; set; }
/// <summary>
/// 预留字段3
/// </summary>
[Display(Name = "Reverse3"), Description("预留字段3"), MaxLength(1000, ErrorMessage = "预留字段3 不能超过 1000 个字符")]
public string Reverse3 { get; set; }
/// <summary>
/// 预留字段4
/// </summary>
[Display(Name = "Reverse4"), Description("预留字段4"), MaxLength(1000, ErrorMessage = "预留字段4 不能超过 1000 个字符")]
public string Reverse4 { get; set; }
/// <summary>
/// 预留字段5
/// </summary>
[Display(Name = "Reverse5"), Description("预留字段5"), MaxLength(1000, ErrorMessage = "预留字段5 不能超过 1000 个字符")]
public string Reverse5 { get; set; }
/// <summary>
/// 预留字段6
/// </summary>
[Display(Name = "Reverse6"), Description("预留字段6"), MaxLength(1000, ErrorMessage = "预留字段6 不能超过 1000 个字符")]
public string Reverse6 { get; set; }
/// <summary>
/// 预留字段7
/// </summary>
[Display(Name = "Reverse7"), Description("预留字段7"), MaxLength(1000, ErrorMessage = "预留字段7 不能超过 1000 个字符")]
public string Reverse7 { get; set; }
/// <summary>
/// 预留字段8
/// </summary>
[Display(Name = "Reverse8"), Description("预留字段8"), MaxLength(1000, ErrorMessage = "预留字段8 不能超过 1000 个字符")]
public string Reverse8 { get; set; }
/// <summary>
/// 预留字段9
/// </summary>
[Display(Name = "Reverse9"), Description("预留字段9"), MaxLength(1000, ErrorMessage = "预留字段9 不能超过 1000 个字符")]
public string Reverse9 { get; set; }
/// <summary>
/// 预留字段10
/// </summary>
[Display(Name = "Reverse10"), Description("预留字段10"), MaxLength(1000, ErrorMessage = "预留字段10 不能超过 1000 个字符")]
public string Reverse10 { get; set; }
/// <summary>
/// 预留字段11
/// </summary>
public int? ReverseI1 { get; set; }
/// <summary>
/// 预留字段12
/// </summary>
public int? ReverseI2 { get; set; }
}

@ -0,0 +1,26 @@
/* ,
* Ghrh_Template.cs
*
* N / A
* Ghrh_Template
*
* Ver
*
*V0.01 2024/12/4 15:28:50 SimonHsiao
*
* Copyright(c) 2024 Tiobon Corporation. All Rights Reserved.
*
*  
* SimonHsiao
*
*/
namespace Tiobon.Core.Model.Models;
/// <summary>
/// 招聘模板 (Dto.EditInput)
/// </summary>
public class EditGhrh_TemplateInput : Ghrh_TemplateBase
{
}

@ -0,0 +1,26 @@
/* ,
* Ghrh_Template.cs
*
* N / A
* Ghrh_Template
*
* Ver
*
*V0.01 2024/12/4 15:28:50 SimonHsiao
*
* Copyright(c) 2024 Tiobon Corporation. All Rights Reserved.
*
*  
* SimonHsiao
*
*/
namespace Tiobon.Core.Model.Models;
/// <summary>
/// 招聘模板 (Dto.InsertInput)
/// </summary>
public class InsertGhrh_TemplateInput : Ghrh_TemplateBase
{
}

@ -0,0 +1,130 @@
/* ,
* Ghrh_Template.cs
*
* N / A
* Ghrh_Template
*
* Ver
*
*V0.01 2024/12/4 15:28:50 SimonHsiao
*
* Copyright(c) 2024 Tiobon Corporation. All Rights Reserved.
*
*  
* SimonHsiao
*
*/
namespace Tiobon.Core.Model.Models;
/// <summary>
/// 招聘模板 (Model)
/// </summary>
[SugarTable("Ghrh_Template", "Ghrh_Template"), Entity(TableCnName = "招聘模板", TableName = "Ghrh_Template")]
public class Ghrh_Template : BasePoco
{
/// <summary>
/// 模板名称
/// </summary>
[Display(Name = "TemplateName"), Description("模板名称"), MaxLength(1000, ErrorMessage = "模板名称 不能超过 1000 个字符")]
public string TemplateName { get; set; }
/// <summary>
/// 模板类型
/// </summary>
[Display(Name = "TemplateType"), Description("模板类型"), MaxLength(100, ErrorMessage = "模板类型 不能超过 100 个字符")]
public string TemplateType { get; set; }
/// <summary>
/// 模板内容
/// </summary>
[Display(Name = "TemplateContent"), Description("模板内容"), MaxLength(2147483647, ErrorMessage = "模板内容 不能超过 2147483647 个字符")]
public string TemplateContent { get; set; }
/// <summary>
/// 是否发布
/// </summary>
public int? IsPublish { get; set; }
/// <summary>
/// 备注
/// </summary>
[Display(Name = "RemarkSz"), Description("备注"), MaxLength(2000, ErrorMessage = "备注 不能超过 2000 个字符")]
public string RemarkSz { get; set; }
/// <summary>
/// 默认标志
/// </summary>
public int? IsDefault { get; set; }
/// <summary>
/// 预留字段1
/// </summary>
[Display(Name = "Reverse1"), Description("预留字段1"), MaxLength(1000, ErrorMessage = "预留字段1 不能超过 1000 个字符")]
public string Reverse1 { get; set; }
/// <summary>
/// 预留字段2
/// </summary>
[Display(Name = "Reverse2"), Description("预留字段2"), MaxLength(1000, ErrorMessage = "预留字段2 不能超过 1000 个字符")]
public string Reverse2 { get; set; }
/// <summary>
/// 预留字段3
/// </summary>
[Display(Name = "Reverse3"), Description("预留字段3"), MaxLength(1000, ErrorMessage = "预留字段3 不能超过 1000 个字符")]
public string Reverse3 { get; set; }
/// <summary>
/// 预留字段4
/// </summary>
[Display(Name = "Reverse4"), Description("预留字段4"), MaxLength(1000, ErrorMessage = "预留字段4 不能超过 1000 个字符")]
public string Reverse4 { get; set; }
/// <summary>
/// 预留字段5
/// </summary>
[Display(Name = "Reverse5"), Description("预留字段5"), MaxLength(1000, ErrorMessage = "预留字段5 不能超过 1000 个字符")]
public string Reverse5 { get; set; }
/// <summary>
/// 预留字段6
/// </summary>
[Display(Name = "Reverse6"), Description("预留字段6"), MaxLength(1000, ErrorMessage = "预留字段6 不能超过 1000 个字符")]
public string Reverse6 { get; set; }
/// <summary>
/// 预留字段7
/// </summary>
[Display(Name = "Reverse7"), Description("预留字段7"), MaxLength(1000, ErrorMessage = "预留字段7 不能超过 1000 个字符")]
public string Reverse7 { get; set; }
/// <summary>
/// 预留字段8
/// </summary>
[Display(Name = "Reverse8"), Description("预留字段8"), MaxLength(1000, ErrorMessage = "预留字段8 不能超过 1000 个字符")]
public string Reverse8 { get; set; }
/// <summary>
/// 预留字段9
/// </summary>
[Display(Name = "Reverse9"), Description("预留字段9"), MaxLength(1000, ErrorMessage = "预留字段9 不能超过 1000 个字符")]
public string Reverse9 { get; set; }
/// <summary>
/// 预留字段10
/// </summary>
[Display(Name = "Reverse10"), Description("预留字段10"), MaxLength(1000, ErrorMessage = "预留字段10 不能超过 1000 个字符")]
public string Reverse10 { get; set; }
/// <summary>
/// 预留字段11
/// </summary>
public int? ReverseI1 { get; set; }
/// <summary>
/// 预留字段12
/// </summary>
public int? ReverseI2 { get; set; }
}

@ -0,0 +1,34 @@
/* ,
* Ghrh_Template.cs
*
* N / A
* Ghrh_Template
*
* Ver
*
*V0.01 2024/12/4 15:28:50 SimonHsiao
*
* Copyright(c) 2024 Tiobon Corporation. All Rights Reserved.
*
*  
* SimonHsiao
*
*/
namespace Tiobon.Core.Model.Models;
/// <summary>
/// 招聘模板(Dto.View1)
/// </summary>
public class Ghrh_TemplateDto : Ghrh_Template
{
/// <summary>
/// 创建信息
/// </summary>
public string CreateDataInfo { get; set; }
/// <summary>
/// 修改信息
/// </summary>
public string UpdateDataInfo { get; set; }
}

@ -0,0 +1,15 @@
namespace Tiobon.Core.Services;
/// <summary>
/// 招聘模板 (服务)
/// </summary>
public class Ghrh_TemplateServices : BaseServices<Ghrh_Template, Ghrh_TemplateDto, InsertGhrh_TemplateInput, EditGhrh_TemplateInput>, IGhrh_TemplateServices
{
private readonly IBaseRepository<Ghrh_Template> _dal;
public Ghrh_TemplateServices(ICaching caching, IBaseRepository<Ghrh_Template> dal)
{
this._dal = dal;
base.BaseDal = dal;
base._caching = caching;
}
}
Loading…
Cancel
Save