Http.cs 781 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. namespace Model
  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. }
  31. public static class HttpErrorCode
  32. {
  33. public const int Exception = 999;
  34. public const int Success = 1000;
  35. public const int RpcFail = 1002;
  36. }
  37. }