-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTopic.cs
More file actions
36 lines (35 loc) · 1.02 KB
/
Topic.cs
File metadata and controls
36 lines (35 loc) · 1.02 KB
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
using System;
using System.Collections.Generic;
namespace NetCoreBBS.Entities
{
public class Topic:BaseEntity
{
public int NodeId { get; set; }
public TopicNode Node { get; set; }
public string UserId { get; set; }
public User User { get; set; }
public string Email { get; set; }
public string Title { get; set; }
public string Content { get; set; }
/// <summary>
/// 置顶权重
/// </summary>
public int Top { get; set; }
public TopicType Type { get; set; }
public int ViewCount { get; set; }
public int ReplyCount { get; set; }
public string LastReplyUserId { get; set; }
public User LastReplyUser { get; set; }
public DateTime LastReplyTime { get; set; }
public DateTime CreateOn { get; set; }
public virtual List<TopicReply> Replys { get; set; }
}
public enum TopicType
{
Delete=0,
Normal = 1,
Top=2,
Good=3,
Hot=4
}
}