using System.Collections.Generic;
namespace HT.Cloud.CodeGenerator
{
public class BaseConfigModel
{
///
/// 数据库表名sys_menu
///
public string TableName { get; set; }
///
/// 表名首字母大写Sys_Menu
///
public string TableNameUpper { get; set; }
public FileConfigModel FileConfig { get; set; }
public OutputConfigModel OutputConfig { get; set; }
public PageIndexModel PageIndex { get; set; }
public PageFormModel PageForm { get; set; }
}
public class FileConfigModel
{
public string ClassPrefix { get; set; }
public string ClassDescription { get; set; }
public string CreateUserName { get; set; }
public string CreateDate { get; set; }
public string EntityName { get; set; }
public string ServiceName { get; set; }
public string ControllerName { get; set; }
public string PageIndexName { get; set; }
public string PageFormName { get; set; }
public string PageDetailsName { get; set; }
}
public class OutputConfigModel
{
public string OutputModule { get; set; }
public string OutputEntity { get; set; }
public string OutputService { get; set; }
public string OutputWeb { get; set; }
}
public class PageIndexModel
{
///
/// 是否菜单显示
///
public bool IsMunu { get; set; }
///
/// 是否需要搜索框
///
public bool IsSearch { get; set; }
///
/// 是否树形表格
///
public bool IsTree { get; set; }
///
/// 是否字段控制
///
public bool IsFields { get; set; }
///
/// 是否公共
///
public bool IsPublic { get; set; }
///
/// 是否缓存
///
public bool IsCache { get; set; }
///
/// 工具栏按钮(新增 修改 删除 查看)
///
public List ButtonList { get; set; }
///
/// 是否有分页
///
public bool IsPagination { get; set; }
///
/// 排序字段
///
public string SortColumn { get; set; }
///
/// 父级字段
///
public string ParentColum { get; set; }
///
/// 树形显示字段
///
public string TreeColum { get; set; }
///
/// 模糊查询字段
///
public List KeywordColum { get; set; }
///
/// 删除字段字段
///
public string DeleteColum { get; set; }
///
/// 创建时间字段
///
public string CreateColum { get; set; }
public bool? IsAsc { get; set; }
public List ColumnList { get; set; }
}
public class PageFormModel
{
///
/// 1表示显示成1列,2表示显示成2列
///
public int ShowMode { get; set; }
public Dictionary FieldList { get; set; }
}
public class ColumnField
{
///
/// 字段
///
public string field { get; set; }
///
/// 列名
///
public string title { get; set; }
///
/// 宽度
///
public int? width { get; set; }
///
/// 是否minWidth
///
public bool? isAotuWidth { get; set; }
///
/// 是否排序
///
public bool? isSorted { get; set; }
///
/// 是否过滤
///
public bool? isFilter { get; set; }
///
/// 过滤类型
///
public string filterType { get; set; }
///
/// 格式化显示
///
public string templet { get; set; }
public bool? isShow { get; set; }
///
/// 初始值
///
public string value { get; set; }
}
}