44 lines
1.1 KiB
C#
44 lines
1.1 KiB
C#
using Common.Utils;
|
|||
|
|
using MongoDB.Bson.Serialization.Attributes;
|
||
|
|
using MongoRepository;
|
||
|
|
using MongoRepository.Attributes;
|
||
|
|
using MongoRepository.Config;
|
||
|
|
using UserDomain.Enum;
|
||
|
|
|
||
|
|
namespace UserDomain.Entity
|
||
|
|
{
|
||
|
|
[BsonCollection("user_reward", ServiceDatabases.User)]
|
||
|
|
[BsonIgnoreExtraElements]
|
||
|
|
public class UserReward : MongoBaseEntity
|
||
|
|
{
|
||
|
|
public string UserId { get; set; }
|
||
|
|
|
||
|
|
public int Type { get; set; }
|
||
|
|
|
||
|
|
public RewardSource Source { get; set; }
|
||
|
|
|
||
|
|
public int CurrencyType { get; set; }
|
||
|
|
public long BeforeCount { get; set; }
|
||
|
|
|
||
|
|
public long ChangeCount { get; set; }
|
||
|
|
|
||
|
|
public long AfterCount { get; set; }
|
||
|
|
|
||
|
|
|
||
|
|
public string OtherId { get; set; }=string.Empty;
|
||
|
|
|
||
|
|
public string OtherUserId { get; set; } = string.Empty;
|
||
|
|
|
||
|
|
public string Remark { get; set; } = string.Empty;
|
||
|
|
|
||
|
|
|
||
|
|
public string RoomName { get; set; } = string.Empty;
|
||
|
|
|
||
|
|
public string RoomInfo { get; set; } = string.Empty;
|
||
|
|
|
||
|
|
public int Tax { get; set; }=0;
|
||
|
|
|
||
|
|
public long CreateTime { get; set; }=DateTime.Now.ToTimeStamp();
|
||
|
|
}
|
||
|
|
}
|