61 lines
1.7 KiB
C#
61 lines
1.7 KiB
C#
using MongoDB.Bson;
|
|||
|
|
using MongoDB.Bson.Serialization.Attributes;
|
||
|
|
using MongoRepository;
|
||
|
|
using MongoRepository.Attributes;
|
||
|
|
using MongoRepository.Config;
|
||
|
|
|
||
|
|
namespace UserDomain.Entity
|
||
|
|
{
|
||
|
|
[BsonCollection("user_feedback", ServiceDatabases.User)]
|
||
|
|
[BsonIgnoreExtraElements]
|
||
|
|
public class UserFeedback : MongoBaseEntity
|
||
|
|
{
|
||
|
|
[BsonElement("userid")]
|
||
|
|
public string? UserId { get; set; }
|
||
|
|
|
||
|
|
[BsonElement("usernumber")]
|
||
|
|
public string? UserNumber { get; set; }
|
||
|
|
|
||
|
|
[BsonElement("username")]
|
||
|
|
public string? UserName { get; set; }
|
||
|
|
|
||
|
|
[BsonElement("type")]
|
||
|
|
public int Type { get; set; } = 1;
|
||
|
|
|
||
|
|
[BsonElement("title")]
|
||
|
|
public string? Title { get; set; }
|
||
|
|
|
||
|
|
[BsonElement("content")]
|
||
|
|
public string? Content { get; set; }
|
||
|
|
|
||
|
|
[BsonElement("images")]
|
||
|
|
public string? Images { get; set; }
|
||
|
|
|
||
|
|
[BsonElement("qq")]
|
||
|
|
public string? QQ { get; set; }
|
||
|
|
|
||
|
|
[BsonElement("contact")]
|
||
|
|
public string? Contact { get; set; }
|
||
|
|
|
||
|
|
[BsonElement("status")]
|
||
|
|
public int Status { get; set; } = 0;
|
||
|
|
|
||
|
|
[BsonElement("reply")]
|
||
|
|
public string? Reply { get; set; }
|
||
|
|
|
||
|
|
[BsonElement("replytime")]
|
||
|
|
[BsonDateTimeOptions(Kind = DateTimeKind.Local, DateOnly = false)]
|
||
|
|
public DateTime? ReplyTime { get; set; }
|
||
|
|
|
||
|
|
[BsonElement("replyadminid")]
|
||
|
|
public string? ReplyAdminId { get; set; }
|
||
|
|
|
||
|
|
[BsonElement("replyadminname")]
|
||
|
|
public string? ReplyAdminName { get; set; }
|
||
|
|
|
||
|
|
[BsonElement("submittime")]
|
||
|
|
[BsonDateTimeOptions(Kind = DateTimeKind.Local, DateOnly = false)]
|
||
|
|
public DateTime SubmitTime { get; set; } = DateTime.Now;
|
||
|
|
}
|
||
|
|
}
|