Http.cs 992 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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() : base()
  13. {
  14. }
  15. public RechargeRecord(long id) : base(id)
  16. {
  17. }
  18. }
  19. // 保存玩家充值记录, 每个玩家只有一条
  20. public sealed class Recharge : Entity
  21. {
  22. public int CardNumber { get; set; }
  23. public long UpdateTime { get; set; }
  24. public Recharge() : base()
  25. {
  26. }
  27. public Recharge(long id) : base(id)
  28. {
  29. }
  30. }
  31. public class HttpResult
  32. {
  33. public int code;
  34. public bool status;
  35. public string msg = "";
  36. [MongoDB.Bson.Serialization.Attributes.BsonIgnoreIfNull]
  37. public object data;
  38. }
  39. public static class HttpErrorCode
  40. {
  41. public const int Exception = 999;
  42. public const int Success = 1000;
  43. public const int RpcFail = 1002;
  44. }
  45. }