服务端的TigerApi 框架,基于.NET6 2024 版本
Ben Lin
2024-12-17 738df70120209daecd85566d0c50dbf56d9e4453
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
 
namespace Tiger.Model
{
    /// <summary>
    /// 实体基类特性
    /// </summary>
    public class EntityBase : Attribute
    {
        public string Description { get; private set; }
 
        public EntityBase(string description = "")
        {
            Description = description;
        }
    }
 
    /// <summary>
    /// 实体基类接口
    /// </summary>
    public interface iEntity
    {
    }
 
    /// <summary>
    /// 数据库实体基类接口
    /// </summary>
    public interface iDBEntity : iEntity
    {
 
    }
 
    /// <summary>
    /// 数据库视图基类接口
    /// </summary>
    public interface iViewEntity : iDBEntity
    {
 
    }
 
    /// <summary>
    /// 数据库实体基类接口(包含授权字段 ID)
    /// </summary>
    public interface iTableHasID : iDBEntity
    {
        #region 公共属性
        /// <summary>
        /// 主键 GUID(NOT NULL)
        /// </summary>
        string ID { get; set; }
        #endregion
    }
 
    /// <summary>
    /// 数据库实体基类接口(包含授权字段 CREATE_TIME,CREATE_USER,UPDATE_TIME,UPDATE_USER)
    /// </summary>
    public interface iTableHasCrUp : iDBEntity
    {
        #region 公共属性
        /// <summary>
        /// 创建时间(NOT NULL)
        /// </summary>
        DateTime CREATE_TIME { get; set; } 
        /// <summary>
        /// 创建者(NOT NULL)
        /// </summary>
        string CREATE_USER { get; set; }
        /// <summary>
        /// 修改时间
        /// </summary>
        DateTime UPDATE_TIME { get; set; } 
        /// <summary>
        /// 修改者
        /// </summary>
        string UPDATE_USER { get; set; }
        #endregion
    }
 
    /// <summary>
    /// 数据库实体基类接口(包含授权字段 GHOST_ROW)
    /// </summary>
    public interface iTableHasGhost : iDBEntity
    {
        #region 公共属性
        /// <summary>
        /// 删除标记(True:1/False:0)
        /// </summary>
        bool GHOST_ROW { get; set; } 
        #endregion
    }
 
    /// <summary>
    /// 数据库实体基类接口(包含授权字段 AUTH_ORG,AUTH_PROD,AUTH_WH)
    /// </summary>
    public interface iTableHasAuth : iDBEntity
    {
        #region 公共属性
        /// <summary>
        /// 组织机构授权标识
        /// </summary>
        string AUTH_ORG { get; set; }
        /// <summary>
        /// 生产单元授权标识
        /// </summary>
        string AUTH_PROD { get; set; }
        /// <summary>
        /// 仓库单元授权标识
        /// </summary>
        string AUTH_WH { get; set; }
        #endregion
    }
}