baotian
2024-06-04 b959135a1139fb66646523d92e5bd20c5910f283
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
using Microsoft.EntityFrameworkCore;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
 
namespace iWare.Wms.Core
{
    /// <summary>
    /// 通知公告表
    /// </summary>
    [Table("sys_notice")]
    [Comment("通知公告表")]
    public class SysNotice : DEntityBase
    {
        /// <summary>
        /// 标题
        /// </summary>
        [Comment("标题")]
        [Required, MaxLength(20)]
        public string Title { get; set; }
 
        /// <summary>
        /// 内容
        /// </summary>
        [Comment("内容")]
        [Required]
        public string Content { get; set; }
 
        /// <summary>
        /// 类型(字典 1通知 2公告)
        /// </summary>
        [Comment("类型")]
        public int Type { get; set; }
 
        /// <summary>
        /// 发布人Id
        /// </summary>
        [Comment("发布人Id")]
        public long PublicUserId { get; set; }
 
        /// <summary>
        /// 发布人姓名
        /// </summary>
        [Comment("发布人姓名")]
        [MaxLength(20)]
        public string PublicUserName { get; set; }
 
        /// <summary>
        /// 发布机构Id
        /// </summary>
        [Comment("发布机构Id")]
        public long PublicOrgId { get; set; }
 
        /// <summary>
        /// 发布机构名称
        /// </summary>
        [Comment("发布机构名称")]
        [MaxLength(50)]
        public string PublicOrgName { get; set; }
 
        /// <summary>
        /// 发布时间
        /// </summary>
        [Comment("发布时间")]
        public DateTimeOffset? PublicTime { get; set; }
 
        /// <summary>
        /// 撤回时间
        /// </summary>
        [Comment("撤回时间")]
        public DateTimeOffset? CancelTime { get; set; }
 
        /// <summary>
        /// 状态(字典 0草稿 1发布 2撤回 3删除)
        /// </summary>
        [Comment("状态")]
        public NoticeStatus Status { get; set; }
    }
}