const List = [
    {
        uuid: '@uuid',
        image: 'https://cn.vitejs.dev/logo-with-shadow.png',
        title: 'Shop Vite',
        price: '敬请期待',
        label: ['极简', 'vite'],
        company: 'vdp',
        url: 'https://vuejs-core.cn/shop-vite',
        description: '全新一代前端框架',
    },
    {
        uuid: '@uuid',
        icon: 'dashboard-2-line',
        title: 'Dash' + 'board Pro',
        price: 'Admin Pro + Admin Plus 1299版' + '本赠品',
        label: ['敬请期待', '人工智能', '科技风'],
        company: 'vdp',
        url: 'https://vuejs-core.cn/dashboard-pro',
        description: 'Admin Pro + Adm' + 'in Plus 1299版本赠品',
    },
    {
        uuid: '@uuid',
        image:
            'https://p3-armor.byteimg.com/tos-cn-i-49unhts6dw/dfdba' +
            '5317c0c20ce20e64fac8' +
            '03d52bc.svg~tplv-49unhts6dw-image.image',
        title: 'vue-admin-arco',
        price: '免费',
        label: ['vue3', 'arco-design', 'MIT协议'],
        company: 'vab',
        url: 'https://github.com/zxwk1998/vue-admin-arco',
        description:
            '在字节跳动' +
            'arco-desi' +
            'gn-pro-vue基础上修改的' +
            'vue3版本，仅供学' +
            '习参考',
    },
    {
        uuid: '@uuid',
        svg: 'https://gcore.jsdelivr.net/gh/zxwk1998/image/logo/vab.svg',
        title: 'vue-admin-better',
        price: '免费',
        label: ['vue', 'element-ui', 'MIT协议'],
        company: 'vab',
        url: 'https://github.com/zxwk1998/vue-admin-better',
        description: '绝佳的开源、' + '企业级、' + '中后台前端框架',
    },
    {
        uuid: '@uuid',
        svg: 'https://gcore.jsdelivr.net/gh/zxwk1998/image/logo/vdb.svg',
        title: 'vue-datav-beautiful-pro',
        price: 'Admin Pro + Adm' + 'in Plus 1299版本赠品',
        label: ['数据大屏'],
        company: 'vdb',
        url: 'https://github.com/vue-datav-beautiful',
        description: '立志做' + '国内最好' + '的数据大屏应用',
    },
    {
        uuid: '@uuid',
        image: 'https://xuqu.gitee.io/common/logo.png',
        title: 'uview',
        price: '免费',
        label: ['uniapp', '跨平台', '组件'],
        company: '言信网络',
        url: 'http://uviewui.com',
        description:
            '跨 7 端移动端框架，全面的组件和便' +
            '捷的工具会让您信手拈来，如鱼得水',
    },
    {
        uuid: '@uuid',
        title: 'form-generator',
        image: 'https://mrhj.gitee.io/form-generator/img/logo.e1bc3747.png',
        price: '免费',
        label: ['element-ui', '表单设计器'],
        company: 'form-generator',
        url: 'https://mrhj.gitee.io/form-generator',
        description: 'Element UI表单设' + '计及代码生成器',
    },
    {
        uuid: '@uuid',
        title: 'OPSLI',
        image: 'https://www.opsli.com/static/images/favicon.ico',
        price: '免费',
        label: ['spring-boot', 'vue-admin-better'],
        company: 'OPSLI',
        url: 'https://www.op' + 'sli.com',
        description: 'vue-admin-better开源' + '版结合spring boot的最佳实践',
    },
]

module.exports = [
    {
        url: '/goods/getList',
        type: 'get',
        response(config) {
            const { title, pageNo = 1, pageSize = 20 } = config.query
            const mockList = List.filter(
                (item) => !(title && !item.title.includes(title))
            )
            const list = mockList.filter(
                (item, index) =>
                    index < pageSize * pageNo &&
                    index >= pageSize * (pageNo - 1)
            )
            return {
                code: 200,
                msg: 'success',
                data: { list, ...{ total: mockList.length } },
            }
        },
    },
]
