123456789101112131415161718192021222324252627282930313233343536373839404142 |
- const { mock } = require('mockjs')
- module.exports = [
- {
- url: '/personalCenter/getList',
- type: 'post',
- response(config) {
- return {
- code: 200,
- msg: 'success',
- totalCount: 999,
- data: mock({
- 'data|10': [
- {
- id: '@id',
- },
- ],
- }).data,
- }
- },
- },
- {
- url: '/personalCenter/doEdit',
- type: 'post',
- response() {
- return {
- code: 200,
- msg: '模拟保存成功',
- }
- },
- },
- {
- url: '/personalCenter/doDelete',
- type: 'post',
- response() {
- return {
- code: 200,
- msg: '模拟删除成功',
- }
- },
- },
- ]
|