Http.cs 862 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. namespace ETModel
  2. {
  3. // 充值流水
  4. public sealed class RechargeRecord : Entity
  5. {
  6. // 充值玩家
  7. public int PlayerNO { get; set; }
  8. // 充值数量
  9. public int CardNumber { get; set; }
  10. // 充值时间
  11. public long Time { get; set; }
  12. public RechargeRecord(long id) : base(id)
  13. {
  14. }
  15. }
  16. // 保存玩家充值记录, 每个玩家只有一条
  17. public sealed class Recharge : Entity
  18. {
  19. public int CardNumber { get; set; }
  20. public long UpdateTime { get; set; }
  21. public Recharge(long id) : base(id)
  22. {
  23. }
  24. }
  25. public class HttpResult
  26. {
  27. public int code;
  28. public bool status;
  29. public string msg = "";
  30. [MongoDB.Bson.Serialization.Attributes.BsonIgnoreIfNull]
  31. public object data;
  32. }
  33. public static class HttpErrorCode
  34. {
  35. public const int Exception = 999;
  36. public const int Success = 1000;
  37. public const int RpcFail = 1002;
  38. }
  39. }