using System.ComponentModel.DataAnnotations; namespace Myshipping.Core.Service; /// /// 代码生成参数类 /// public class CodeGenInput : InputBase { /// /// 作者姓名 /// public virtual string AuthorName { get; set; } /// /// 类名 /// public virtual string ClassName { get; set; } /// /// 是否移除表前缀 /// public virtual string TablePrefix { get; set; } /// /// 生成方式 /// public virtual string GenerateType { get; set; } /// /// 数据库表名 /// public virtual string TableName { get; set; } /// /// 命名空间 /// public virtual string NameSpace { get; set; } /// /// 业务名(业务代码包名称) /// public virtual string BusName { get; set; } /// /// 功能名(数据库表名称) /// public virtual string TableComment { get; set; } /// /// 菜单应用分类(应用编码) /// public virtual string MenuApplication { get; set; } /// /// 菜单父级 /// public virtual long MenuPid { get; set; } } public class AddCodeGenInput : CodeGenInput { /// /// 数据库表名 /// [Required(ErrorMessage = "数据库表名不能为空")] public override string TableName { get; set; } /// /// 业务名(业务代码包名称) /// [Required(ErrorMessage = "业务名不能为空")] public override string BusName { get; set; } /// /// 命名空间 /// [Required(ErrorMessage = "命名空间不能为空")] public override string NameSpace { get; set; } /// /// 作者姓名 /// [Required(ErrorMessage = "作者姓名不能为空")] public override string AuthorName { get; set; } ///// ///// 类名 ///// //[Required(ErrorMessage = "类名不能为空")] //public override string ClassName { get; set; } ///// ///// 是否移除表前缀 ///// //[Required(ErrorMessage = "是否移除表前缀不能为空")] //public override string TablePrefix { get; set; } /// /// 生成方式 /// [Required(ErrorMessage = "生成方式不能为空")] public override string GenerateType { get; set; } ///// ///// 功能名(数据库表名称) ///// //[Required(ErrorMessage = "数据库表名不能为空")] //public override string TableComment { get; set; } /// /// 菜单应用分类(应用编码) /// [Required(ErrorMessage = "菜单应用分类不能为空")] public override string MenuApplication { get; set; } /// /// 菜单父级 /// [Required(ErrorMessage = "菜单父级不能为空")] public override long MenuPid { get; set; } } public class DeleteCodeGenInput { /// /// 代码生成器Id /// [Required(ErrorMessage = "代码生成器Id不能为空")] public long Id { get; set; } } public class UpdateCodeGenInput : CodeGenInput { /// /// 代码生成器Id /// [Required(ErrorMessage = "代码生成器Id不能为空")] public long Id { get; set; } } public class QueryCodeGenInput : DeleteCodeGenInput { }