移动系统liao
2024-12-11 c573732636815e569d24aacff11a82f93602585a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
/***********************************************************************
 *            Project: baifenBinfa
 *        ProjectName: 百分兵法管理系统                               
 *                Web: http://chuanyin.com                     
 *             Author:                                        
 *              Email:                               
 *         CreateTime: 202403/02   
 *        Description: 暂无
 ***********************************************************************/
 
using System.Collections.Generic;
using SqlSugar;
 
namespace CoreCms.Net.IServices
{
    public interface ICodeGeneratorServices
    {
        /// <summary>
        ///     获取所有的表
        /// </summary>
        /// <returns></returns>
        List<DbTableInfo> GetDbTables();
 
        /// <summary>
        ///     获取表下面所有的字段
        /// </summary>
        /// <param name="tableName"></param>
        /// <returns></returns>
        List<DbColumnInfo> GetDbTablesColumns(string tableName);
 
        ///// <summary>
        ///// 自动生成全部代码
        ///// </summary>
        ///// <param name="model"></param>
        ///// <returns></returns>
        byte[] CodeGen(string tableName, string fileType, bool isVue = false);
 
 
        /// <summary>
        ///     自动生成类型的所有数据库代码
        /// </summary>
        /// <param name="tableName"></param>
        /// <param name="fileType"></param>
        /// <returns></returns>
        byte[] CodeGenByAll(string fileType, bool isVue = false);
    }
}