35 lines
806 B
TypeScript
35 lines
806 B
TypeScript
import { MockMethod } from 'vite-plugin-mock'
|
|
import { resultSuccess } from './_util'
|
|
|
|
// 获取消息列表接口
|
|
export default [
|
|
{
|
|
url: '/api/v1/messages',
|
|
method: 'get',
|
|
response: () => {
|
|
return resultSuccess({
|
|
'notificationList|30': [
|
|
{
|
|
'id|+1': 1,
|
|
name: '@/cname',
|
|
title: '@/ctitle',
|
|
'jumpType|1': [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11],
|
|
'label|1': [0, 1, 2],
|
|
remark: '@/ctitle'
|
|
}
|
|
],
|
|
'approvalList|10': [
|
|
{
|
|
'id|+1': 1,
|
|
name: '@/cname',
|
|
title: '@/ctitle',
|
|
'jumpType|1': [1, 2, 4, 6, 7, 10, 11],
|
|
label: 0,
|
|
remark: '@/ctitle'
|
|
}
|
|
]
|
|
})
|
|
}
|
|
}
|
|
] as MockMethod[]
|