添加项目文件。
This commit is contained in:
@@ -0,0 +1,50 @@
|
||||
using AdminDomain.BeautifulNumber;
|
||||
using Common.Utils;
|
||||
using MongoDB.Bson.Serialization.Attributes;
|
||||
using MongoRepository;
|
||||
using MongoRepository.Attributes;
|
||||
using MongoRepository.Config;
|
||||
|
||||
namespace AdminDomain.Entity
|
||||
{
|
||||
[BsonCollection("beautiful_number_config", ServiceDatabases.Admin)]
|
||||
[BsonIgnoreExtraElements]
|
||||
public class BeautifulNumberConfig : MongoBaseEntity
|
||||
{
|
||||
public string Number { get; set; }
|
||||
public string RuleName { get; set; }
|
||||
|
||||
public string Level { get; set; }
|
||||
|
||||
public long Price { get; set; }
|
||||
|
||||
public BeautifulNumberStatus Status { get; set; }= BeautifulNumberStatus.Available;
|
||||
|
||||
public long SaleTime { get; set; } = 0;
|
||||
|
||||
public string BuyerUserId { get; set; }
|
||||
|
||||
public string UserId { get; set; }
|
||||
|
||||
public string Remark { get; set; }
|
||||
|
||||
public long CreateTime { get; set; } = DateTime.Now.ToTimeStamp();
|
||||
}
|
||||
|
||||
[BsonCollection("beautiful_number_rule", ServiceDatabases.Admin)]
|
||||
[BsonIgnoreExtraElements]
|
||||
public class BeautifulNumberRule : MongoBaseEntity
|
||||
{
|
||||
|
||||
public string RuleName { get; set; }
|
||||
|
||||
|
||||
public string Level { get; set; }
|
||||
|
||||
public long Price { get; set; }
|
||||
|
||||
public int Sort { get; set; }
|
||||
|
||||
public bool IsEnable { get; set; } = true;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user