using System.Collections.Generic; using ZR.Model.System.Generate; namespace ZR.CodeGenerator.Model { public class GenerateDto { /// /// vue版本 /// public int VueVersion { get; set; } public long TableId { get; set; } /// /// 是否预览代码 /// public bool IsPreview { get; set; } /// /// 生成代码的数据库类型 0、mysql 1、sqlserver /// public int DbType { get; set; } /// /// 生成的按钮功能 /// public int[] CheckedBtn { get; set; } = System.Array.Empty(); public GenTable GenTable { get; set; } public CodeGenerateOption GenOptions { get; set; } #region 存储路径 /// /// 代码模板预览存储路径存放 /// public List GenCodes { get; set; } = new List(); /// /// 代码生成路径 /// public string GenCodePath { get; set; } = string.Empty; /// /// 代码生成压缩包路径 /// public string ZipPath { get; set; } /// /// 代码生成压缩包名称 /// public string ZipFileName { get; set; } /// /// 生成代码方式(0zip压缩包 1自定义路径) /// public string GenType { get; set; } public string GenPath { get; set; } = ""; /// /// vue代码路径 /// public string VueParentPath { get; set; } #endregion } public class GenCode { public int Type { get; set; } public string Title { get; set; } public string Path { get; set; } public string Content { get; set; } public GenCode(int type, string title, string path, string content) { Type = type; Title = title; Path = path; Content = content; } } }