import { AESDecrypt, AESEncrypt } from "./Crypto";

export default [
  {
    url: '/tcs/index.do',
    response: ({query}) => {
      return {
        "success": true,
        "code": "",
        "message": "",
        "timeStamp": Date.now(),
        "data": {
          "startTime": Date.now() - 1000000,
          "endTime": Date.now() + 1000000,
          "remainTimes": 12,
          "uid": "uiduiduiduiduiduiduid",
        }
      }
    },
  },
  {
    url: '/tcs/start.do',
    response: ({query}) => {
      return {
        "success": true,
        "code": "",
        "message": "",
        "data": AESEncrypt(JSON.stringify({
          recordId: "recordId",
          countdownSeconds: 120,
          guide: true,
        }), "3C8C48E792E9241B", "cDOiBC1n2QrkAY2P"),
      }
    },
  },
  {
    url: '/tcs/submit.do',
    response: ({query}) => {
      return {
        success: true,
        code: "",
        message: "",
        data: {
          score: 888,
          rank: 1,
          prizeName: "一等奖",
          reachTargetScore: 666,
          drawChance: 10,
        }
      }
    },
  },
  {
    url: '/tcs/guide.do',
    response: ({ query }) => {
      return {
        success: true,
        code: "",
        message: "",
        data: null,
      }
    },
  },
]
