rechargeList.ts 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512
  1. import { resultSuccess } from '../_util';
  2. const mailTable = (_pageSize) => {
  3. return [
  4. {
  5. id: 91,
  6. title: '测试邮件4',
  7. content: '111',
  8. type: 0,
  9. ext: [
  10. {
  11. id: '1001',
  12. count: '12',
  13. },
  14. ],
  15. sender: '系统',
  16. recievers: '3355',
  17. sendWay: 0,
  18. sendAt: 1647529320,
  19. sentAt: 0,
  20. expired: 15,
  21. opt: 'draft',
  22. status: '待发送',
  23. deleted: false,
  24. },
  25. {
  26. id: 89,
  27. title: '测试邮件3',
  28. content: '111',
  29. type: 0,
  30. ext: null,
  31. sender: '系统',
  32. recievers: '272417',
  33. sendWay: 0,
  34. sendAt: 1647482400,
  35. sentAt: 0,
  36. expired: 7,
  37. opt: 'draft',
  38. status: '待发送',
  39. deleted: false,
  40. },
  41. {
  42. id: 107,
  43. title: '新春礼包!',
  44. content: '新春礼包\n',
  45. type: 0,
  46. ext: [
  47. {
  48. id: '1002',
  49. count: '500',
  50. },
  51. ],
  52. sender: '测试',
  53. recievers: '3355',
  54. sendWay: 1,
  55. sendAt: 1650447075,
  56. sentAt: 1650447075,
  57. expired: 7,
  58. opt: 'send',
  59. status: '已发送',
  60. deleted: false,
  61. },
  62. {
  63. id: 105,
  64. title: '临时更新通知',
  65. content:
  66. '尊敬的玩家:\n\t《魔君》将于3月17日11:00-11:10进行临时停机更新,预计维护时间为10分钟,届时将关闭游戏世界,请各位玩家合理安排自己的时间;\n\t\n\t对于停机期间给您带来的不便,请原谅,感谢所有您的支持与合作。\n\t\t\t\n\t\t\t《魔君》全体开发人员\n\t\t\t2022年3月17日',
  67. type: 0,
  68. ext: [
  69. {
  70. id: '1001',
  71. count: '10000',
  72. },
  73. {
  74. id: '1002',
  75. count: '100',
  76. },
  77. ],
  78. sender: '系统',
  79. recievers: '全员',
  80. sendWay: 1,
  81. sendAt: 1647484865,
  82. sentAt: 1647484865,
  83. expired: 7,
  84. opt: 'send',
  85. status: '已发送',
  86. deleted: false,
  87. },
  88. {
  89. id: 103,
  90. title: '新春礼包!',
  91. content: '辞旧迎新,欢度佳节。\n新春大礼包。祝游戏愉快!',
  92. type: 0,
  93. ext: [
  94. {
  95. id: '1001',
  96. count: '50000',
  97. },
  98. {
  99. id: '1002',
  100. count: '5000',
  101. },
  102. {
  103. id: '3001',
  104. count: '80',
  105. },
  106. ],
  107. sender: '魔君团队',
  108. recievers: '全员',
  109. sendWay: 1,
  110. sendAt: 1647484112,
  111. sentAt: 1647484112,
  112. expired: 5,
  113. opt: 'send',
  114. status: '已发送',
  115. deleted: false,
  116. },
  117. {
  118. id: 101,
  119. title: '新春礼包!',
  120. content: '辞旧迎新,欢度佳节。\n新春大礼包。祝游戏愉快!',
  121. type: 0,
  122. ext: [
  123. {
  124. id: '10001',
  125. count: '10000',
  126. },
  127. {
  128. id: '3001',
  129. count: '500',
  130. },
  131. ],
  132. sender: '魔君团队',
  133. recievers: '272422',
  134. sendWay: 1,
  135. sendAt: 1647483599,
  136. sentAt: 1647483599,
  137. expired: 2,
  138. opt: 'send',
  139. status: '已发送',
  140. deleted: false,
  141. },
  142. {
  143. id: 99,
  144. title: '新春礼包!',
  145. content: '辞旧迎新,欢度佳节。\n新春大礼包。祝游戏愉快!',
  146. type: 0,
  147. ext: [
  148. {
  149. id: '10001',
  150. count: '10000',
  151. },
  152. ],
  153. sender: '魔君团队',
  154. recievers: '272422',
  155. sendWay: 1,
  156. sendAt: 1647483514,
  157. sentAt: 1647483514,
  158. expired: 2,
  159. opt: 'send',
  160. status: '已发送',
  161. deleted: false,
  162. },
  163. {
  164. id: 97,
  165. title: '新春礼包!',
  166. content: '辞旧迎新,欢度佳节。\n新春大礼包。祝游戏愉快!',
  167. type: 0,
  168. ext: [
  169. {
  170. id: '1001',
  171. count: '500000',
  172. },
  173. {
  174. id: '1002',
  175. count: '50000',
  176. },
  177. {
  178. id: '',
  179. count: '',
  180. },
  181. {
  182. id: '',
  183. count: '',
  184. },
  185. {
  186. id: '10001',
  187. count: '10000',
  188. },
  189. {
  190. id: '1013',
  191. count: '10',
  192. },
  193. {
  194. id: '1014',
  195. count: '10',
  196. },
  197. ],
  198. sender: '魔君团队',
  199. recievers: '272422',
  200. sendWay: 1,
  201. sendAt: 1647483213,
  202. sentAt: 1647483213,
  203. expired: 1,
  204. opt: 'send',
  205. status: '已发送',
  206. deleted: false,
  207. },
  208. {
  209. id: 93,
  210. title: '测试邮件',
  211. content: '',
  212. type: 0,
  213. ext: null,
  214. sender: '系统',
  215. recievers: '111',
  216. sendWay: 0,
  217. sendAt: 1647532800,
  218. sentAt: 1647570960,
  219. expired: 0,
  220. opt: 'send',
  221. status: '已发送',
  222. deleted: false,
  223. },
  224. {
  225. id: 87,
  226. title: '测试邮件',
  227. content: '2222',
  228. type: 0,
  229. ext: [
  230. {
  231. id: '1001',
  232. count: '1',
  233. },
  234. ],
  235. sender: '系统',
  236. recievers: '272395',
  237. sendWay: 1,
  238. sendAt: 1647434398,
  239. sentAt: 1647434398,
  240. expired: 15,
  241. opt: 'send',
  242. status: '已发送',
  243. deleted: false,
  244. },
  245. {
  246. id: 85,
  247. title: '补偿222',
  248. content: '补偿222',
  249. type: 0,
  250. ext: [
  251. {
  252. id: '1001',
  253. count: '10000',
  254. },
  255. ],
  256. sender: '系统',
  257. recievers: '272395',
  258. sendWay: 1,
  259. sendAt: 1647433960,
  260. sentAt: 1647433960,
  261. expired: 30,
  262. opt: 'send',
  263. status: '已发送',
  264. deleted: false,
  265. },
  266. {
  267. id: 83,
  268. title: '补偿',
  269. content: '补偿',
  270. type: 0,
  271. ext: [
  272. {
  273. id: '1001',
  274. count: '1000000',
  275. },
  276. ],
  277. sender: '系统',
  278. recievers: '272395',
  279. sendWay: 1,
  280. sendAt: 1647433795,
  281. sentAt: 1647433795,
  282. expired: 13,
  283. opt: 'send',
  284. status: '已发送',
  285. deleted: false,
  286. },
  287. {
  288. id: 81,
  289. title: '补偿%',
  290. content: '补偿%',
  291. type: 0,
  292. ext: [
  293. {
  294. id: '1001',
  295. count: '1',
  296. },
  297. {
  298. id: '1002',
  299. count: '1',
  300. },
  301. {
  302. id: '1003',
  303. count: '1',
  304. },
  305. {
  306. id: '1004',
  307. count: '1',
  308. },
  309. {
  310. id: '1005',
  311. count: '1',
  312. },
  313. {
  314. id: '11001',
  315. count: '5',
  316. },
  317. {
  318. id: '14003',
  319. count: '30',
  320. },
  321. {
  322. id: '60102017',
  323. count: '10',
  324. },
  325. {
  326. id: '60103004',
  327. count: '1',
  328. },
  329. ],
  330. sender: '系统',
  331. recievers: '272395',
  332. sendWay: 1,
  333. sendAt: 1647433620,
  334. sentAt: 1647433620,
  335. expired: 14,
  336. opt: 'send',
  337. status: '已发送',
  338. deleted: false,
  339. },
  340. {
  341. id: 79,
  342. title: 'byq124',
  343. content: '123',
  344. type: 0,
  345. ext: [
  346. {
  347. id: '1001',
  348. count: '1',
  349. },
  350. ],
  351. sender: '系统',
  352. recievers: '全员',
  353. sendWay: 1,
  354. sendAt: 1647432698,
  355. sentAt: 1647432698,
  356. expired: 10,
  357. opt: 'send',
  358. status: '已发送',
  359. deleted: false,
  360. },
  361. {
  362. id: 77,
  363. title: 'byq123',
  364. content: '123',
  365. type: 0,
  366. ext: [
  367. {
  368. id: '1001',
  369. count: '1',
  370. },
  371. ],
  372. sender: '系统',
  373. recievers: '全员',
  374. sendWay: 1,
  375. sendAt: 1647432615,
  376. sentAt: 1647432615,
  377. expired: 10,
  378. opt: 'send',
  379. status: '已发送',
  380. deleted: false,
  381. },
  382. {
  383. id: 75,
  384. title: 'byq123',
  385. content: '123',
  386. type: 0,
  387. ext: [
  388. {
  389. id: '1001',
  390. count: '1',
  391. },
  392. ],
  393. sender: '系统',
  394. recievers: '全员',
  395. sendWay: 1,
  396. sendAt: 1647432591,
  397. sentAt: 1647432591,
  398. expired: 10,
  399. opt: 'send',
  400. status: '已发送',
  401. deleted: false,
  402. },
  403. {
  404. id: 73,
  405. title: 'byq123',
  406. content: '123',
  407. type: 0,
  408. ext: [
  409. {
  410. id: '1001',
  411. count: '1',
  412. },
  413. ],
  414. sender: '系统',
  415. recievers: '全员',
  416. sendWay: 1,
  417. sendAt: 1647432579,
  418. sentAt: 1647432579,
  419. expired: 10,
  420. opt: 'send',
  421. status: '已发送',
  422. deleted: false,
  423. },
  424. {
  425. id: 71,
  426. title: 'byq123',
  427. content: '123',
  428. type: 0,
  429. ext: [
  430. {
  431. id: '1001',
  432. count: '1',
  433. },
  434. ],
  435. sender: '系统',
  436. recievers: '全员',
  437. sendWay: 1,
  438. sendAt: 1647432529,
  439. sentAt: 1647432529,
  440. expired: 10,
  441. opt: 'send',
  442. status: '已发送',
  443. deleted: false,
  444. },
  445. {
  446. id: 69,
  447. title: '!#@¥#%#¥%',
  448. content:
  449. '~!¥@!#¥@#%……#¥%……¥%\u0026……()\u0026*()——*)()+*)()%……\u0026%#¥……\u0026@#¥%!#¥ sdef aefas 阿尔泰~',
  450. type: 0,
  451. ext: [
  452. {
  453. id: '1002',
  454. count: '3000',
  455. },
  456. ],
  457. sender: '测试',
  458. recievers: '272412',
  459. sendWay: 1,
  460. sendAt: 1647431703,
  461. sentAt: 1647431703,
  462. expired: 1,
  463. opt: 'send',
  464. status: '已发送',
  465. deleted: false,
  466. },
  467. {
  468. id: 66,
  469. title: '测试邮件2',
  470. content: '1222',
  471. type: 0,
  472. ext: [
  473. {
  474. id: '1002',
  475. count: '12',
  476. },
  477. {
  478. id: '1001',
  479. count: '12',
  480. },
  481. ],
  482. sender: '系统',
  483. recievers: '272395',
  484. sendWay: 1,
  485. sendAt: 1647430881,
  486. sentAt: 1647430881,
  487. expired: 14,
  488. opt: 'draft',
  489. status: '已发送',
  490. deleted: false,
  491. },
  492. ];
  493. };
  494. export default [
  495. {
  496. url: '/api/echarts/mailTable',
  497. timeout: 1,
  498. method: 'get',
  499. response: ({ query }) => {
  500. const { page = 1, pageSize = 10 } = query;
  501. const list = mailTable(Number(pageSize));
  502. return resultSuccess({
  503. page: Number(page),
  504. pageSize: Number(pageSize),
  505. pageCount: 1,
  506. list,
  507. });
  508. },
  509. },
  510. ];