using System.ComponentModel.DataAnnotations;
namespace Myshipping.Core.Service;
///
/// 组织机构参数
///
public class OrgInput : InputBase
{
///
/// 父Id
///
public string Pid { get; set; }
///
/// 父Ids
///
public string Pids { get; set; }
///
/// 名称
///
public virtual string Name { get; set; }
///
/// 编码
///
public virtual string Code { get; set; }
///
/// 电话
///
public virtual string Tel { get; set; }
///
/// 排序
///
public int Sort { get; set; }
///
/// 备注
///
public string Remark { get; set; }
///
/// 状态(字典 0正常 1停用 2删除)
///
public int Status { get; set; }
}
public class AddOrgInput : OrgInput
{
///
/// 名称
///
[Required(ErrorMessage = "机构名称不能为空")]
public override string Name { get; set; }
///
/// 编码
///
[Required(ErrorMessage = "机构编码不能为空")]
public override string Code { get; set; }
}
public class DeleteOrgInput
{
///
/// 机构Id
///
[Required(ErrorMessage = "机构Id不能为空")]
public string Id { get; set; }
}
public class UpdateOrgInput : AddOrgInput
{
///
/// 机构Id
///
[Required(ErrorMessage = "机构Id不能为空")]
public string Id { get; set; }
}
public class QueryOrgInput : DeleteOrgInput
{
}
public class PageOrgInput : OrgInput
{
public string Id { get; set; }
}