data.ts 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  1. export class user_data{
  2. token:string; //用户token
  3. open_id:string; //open_id
  4. user_id:number; //用户id
  5. user_name:string; //名字
  6. avatar_url:string; //头像
  7. coin:number; //金币
  8. is_vip:boolean; //0:否 1:是
  9. vip_effective_time:string; //vip时间字符串
  10. vip_effective_time_time:number; //vip时间戳
  11. }
  12. export class bookstore_template_data {
  13. name:string; //名字
  14. template_type:number; //模版类型 1:banner 2:横版三封面 3:竖版三封面 4:竖版列表 5:搜索
  15. list:[];
  16. }
  17. export class banner_data {
  18. id:number;
  19. name:string;
  20. cover:string;
  21. jump_id:number;
  22. jump_type:number;
  23. }
  24. export class chapter_item_data{
  25. coin:number; //消耗
  26. id:number;
  27. name:string;
  28. pay_type:number; //1收费 0 免费
  29. word_count:number;
  30. }
  31. export class user_status{
  32. cur_select_book_data:book_item_data;
  33. }
  34. export class read_setting_data{
  35. fontSizeIndex:number;
  36. colorBgIndex:number;
  37. readMode:number;
  38. autoBuyNextChpater:boolean;
  39. }
  40. export class read_record_data {
  41. book_id:number;
  42. chapter_id:number;
  43. chapter_name:string;
  44. }
  45. export class book_read_data{
  46. book_title:string;
  47. book_content:string;
  48. book_chapter_id:number;
  49. book_chapter_name:string;
  50. }
  51. export class chapter_list_item{
  52. name:string; //章节名称
  53. id:number; //章节ID
  54. word_count:number; //字数
  55. coin:number; //金币
  56. pay_type:number; //是否收费 1 收费 0 免费
  57. }
  58. export class book_item_data{
  59. book_id:number; //书籍ID
  60. wx_book_id:string; //书籍ID
  61. book_name:string; //书籍名称
  62. author_name:string; //作者
  63. book_cover:string; //封面
  64. book_brief:string; //简介
  65. book_is_action:number; //0:连载 1:完结 2:断更
  66. book_score:number; //分数
  67. category_id:number; //分类ID
  68. category_name:string; //分类名字
  69. is_delete:number; //是否删除
  70. create_at:string; //创建时间
  71. book_read_num:number; // 阅读数量
  72. chapter_new_name:string; // 章节最新更新名称
  73. pay_type:number; // 是否收费 1 收费 0 免费
  74. chapter_count:number; // 章节总数
  75. update_time:string; // 更新时间
  76. source_id:number; // 来源ID
  77. chapter_time:string; // 章节更新时间
  78. chapter_time_time:number; // 章节更新时间戳
  79. word_count:number; // 字数
  80. chapter_path:string; // 章节列表静态地址
  81. base_path:string; //章节内容静态地址-需要拼接章节id 例如 /test_books/0/1/1.txt
  82. start_read_chapter_id:number = -1; //
  83. read_hisroty_time:string='';//阅读时间
  84. first_two_chapters:string; //第一章第二章列表
  85. }
  86. export class recharge_list_data {
  87. goods_id:number; // 商品ID
  88. name:string; //名称
  89. amount:number; //金额 单位(分)
  90. coin:number; //充值金币
  91. give_coin:number; //赠送金币
  92. prompt1:string; //描述
  93. day:number; //天数
  94. base_angle:string; //底角描述
  95. is_vip:number; //是否vip 1 是 0 否
  96. is_default:number; //默认状态 1 默认 0 否
  97. }
  98. export class order_data {
  99. order_id:string; //订单ID
  100. pay_url:string; //支付地址
  101. }
  102. export class order_info_data {
  103. status:number; //订单状态 1 支付中 2 已经支付
  104. }
  105. export class search_item_data {
  106. name:string;
  107. }
  108. export interface wx_pay_data{
  109. timeStamp:string,
  110. nonceStr:string,
  111. package:string,
  112. paySign:string,
  113. signType:string,
  114. }
  115. export class order_status_info_data {
  116. title:string = '';
  117. bg_color:string = '';
  118. }
  119. export class trading_record_item_data {
  120. id:number;
  121. amount:number;
  122. coin:number;
  123. goods_name:string;
  124. pay_time:string;
  125. create_at:string;
  126. status:number;
  127. book_name:string;
  128. chapter_name:string;
  129. }