You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
|
|
|
|
|
|
namespace Myshipping.Core.Service;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 职位参数
|
|
|
|
|
/// </summary>
|
|
|
|
|
public class PosInput
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 名称
|
|
|
|
|
/// </summary>
|
|
|
|
|
public virtual string Name { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 编码
|
|
|
|
|
/// </summary>
|
|
|
|
|
public virtual string Code { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 排序
|
|
|
|
|
/// </summary>
|
|
|
|
|
public int Sort { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 备注
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string Remark { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 状态(字典 0正常 1停用 2删除)
|
|
|
|
|
/// </summary>
|
|
|
|
|
public int Status { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 当前页码
|
|
|
|
|
/// </summary>
|
|
|
|
|
public int PageNo { get; set; } = 1;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 页码容量
|
|
|
|
|
/// </summary>
|
|
|
|
|
public int PageSize { get; set; } = 20;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public class AddPosInput : PosInput
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 名称
|
|
|
|
|
/// </summary>
|
|
|
|
|
[Required(ErrorMessage ="职位名称不能为空")]
|
|
|
|
|
public override string Name { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 编码
|
|
|
|
|
/// </summary>
|
|
|
|
|
[Required(ErrorMessage = "职位编码不能为空")]
|
|
|
|
|
public override string Code { get; set; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public class DeletePosInput
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 职位Id
|
|
|
|
|
/// </summary>
|
|
|
|
|
[Required(ErrorMessage = "职位Id不能为空")]
|
|
|
|
|
public long Id { get; set; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public class UpdatePosInput : AddPosInput
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 职位Id
|
|
|
|
|
/// </summary>
|
|
|
|
|
[Required(ErrorMessage = "职位Id不能为空")]
|
|
|
|
|
public long Id { get; set; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public class QueryPosInput : DeletePosInput
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
}
|