const mock = { code: 0, data: [ { topic: 'react学习', topic_id: 2, date: '2022', hascomplete: false, children: [ { name: 'react hooks解析', date: '2022', command: '测试', isnew: true, hascomplete: true, type: 'md', content: 'react hooks解析', day_id: 2, }, { name: 'test2', date: '2022-2', command: '测试2', isnew: false, hascomplete: true, type: 'md', content: 'react hooks解析', day_id: 1, } ] }, { topic: 'vue学习', topic_id: 1, date: '2022', hascomplete: true, children: [ { name: 'vue hooks解析', date: '2022', command: '测试', isnew: true, hascomplete: false, type: 'md', content: 'vue hooks解析', day_id: 2, }, { name: 'vue', date: '2022-2', command: '测试2', isnew: false, hascomplete: false, type: 'md', content: 'react hooks解析', day_id: 1, } ] } ] } export default mock; export const answersRes = { success: true, topic: 'react学习', subject_name: 'react hooks解析', subject_content: 'testtesttest', refer_answer: '这是参考答案', your_answer: '这是你的答案', data: [ { answer_content: 'test1' }, { answer_content: 'test2' }, { answer_content: '# helloworld' }, { answer_content: 'www.baidu.com' } ], } export const uiRes = { name: "It's Nice That", address: 'https://www.itsnicethat.com/', img: 'https://www.yw11.com/uploads/allimg/150912/1-150912213042638.png' } export interface IUiRes { name: string, address: string, img: string, } export const draftRes = [ { designer: 'wangshaoyu', developer: 'galenguanjiameng', project_name: 'odin移动版', project_docs: 'http://wiki.intra.xiaojukeji.com/pages/viewpage.action?pageId=670761207', project_address: 'http://air.intra.xiaojukeji.com/ui/%E7%A7%BB%E5%8A%A8%E7%AB%AF%E2%80%94%E7%A7%BB%E6%A4%8D/%E7%A7%BB%E5%8A%A8%E7%AB%AF-%E9%97%A8%E6%88%B7/%E7%A7%BB%E5%8A%A8%E7%AB%AF-%E9%97%A8%E6%88%B7/#artboard1', }, { designer: 'wangshaoyu', developer: 'galenguanjiameng', project_name: '911', project_docs: 'http://wiki.intra.xiaojukeji.com/pages/viewpage.action?pageId=670761207', project_address: 'http://air.intra.xiaojukeji.com/ui/%E7%A7%BB%E5%8A%A8%E7%AB%AF%E2%80%94%E7%A7%BB%E6%A4%8D/%E7%A7%BB%E5%8A%A8%E7%AB%AF-%E9%97%A8%E6%88%B7/%E7%A7%BB%E5%8A%A8%E7%AB%AF-%E9%97%A8%E6%88%B7/#artboard1', }, { designer: 'wangshaoyu', developer: 'galenguanjiameng', project_name: '911', project_docs: 'http://wiki.intra.xiaojukeji.com/pages/viewpage.action?pageId=670761207', project_address: 'http://air.intra.xiaojukeji.com/ui/%E7%A7%BB%E5%8A%A8%E7%AB%AF%E2%80%94%E7%A7%BB%E6%A4%8D/%E7%A7%BB%E5%8A%A8%E7%AB%AF-%E9%97%A8%E6%88%B7/%E7%A7%BB%E5%8A%A8%E7%AB%AF-%E9%97%A8%E6%88%B7/#artboard1', } ] export interface IDraftRes { id: number, designer: string[], developer: string[], project: string, address:string, docs: string, created_time:string, }