51 lines
1.3 KiB
C#
51 lines
1.3 KiB
C#
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;
|
||
|
|
}
|
||
|
|
}
|