代码优化
This commit is contained in:
+20
-3
@@ -1,4 +1,4 @@
|
||||
namespace SimpleAdmin.Application;
|
||||
namespace SimpleAdmin.Application;
|
||||
|
||||
/// <summary>
|
||||
/// 入职业务岗位分页查询参数。
|
||||
@@ -10,6 +10,11 @@ public class OnboardingPositionPageInput : BasePageInput
|
||||
/// </summary>
|
||||
public long? CompanyId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 入职业务部门 Id。
|
||||
/// </summary>
|
||||
public long? DepartmentId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 岗位编码。
|
||||
/// </summary>
|
||||
@@ -21,7 +26,7 @@ public class OnboardingPositionPageInput : BasePageInput
|
||||
public virtual string PositionName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 启用状态或状态筛选条件。
|
||||
/// 启用状态。
|
||||
/// </summary>
|
||||
public string Status { get; set; }
|
||||
}
|
||||
@@ -31,6 +36,18 @@ public class OnboardingPositionPageInput : BasePageInput
|
||||
/// </summary>
|
||||
public class OnboardingPositionAddInput : ObPosition
|
||||
{
|
||||
/// <summary>
|
||||
/// 所属公司 Id。
|
||||
/// </summary>
|
||||
[global::System.ComponentModel.DataAnnotations.Required(ErrorMessage = "所属公司不能为空")]
|
||||
public new long CompanyId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 所属部门 Id。
|
||||
/// </summary>
|
||||
[global::System.ComponentModel.DataAnnotations.Required(ErrorMessage = "所属部门不能为空")]
|
||||
public new long? DepartmentId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 岗位业务编码。
|
||||
/// </summary>
|
||||
@@ -54,4 +71,4 @@ public class OnboardingPositionEditInput : OnboardingPositionAddInput
|
||||
/// </summary>
|
||||
[IdNotNull(ErrorMessage = "岗位Id不能为空")]
|
||||
public override long Id { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user