Files
funtime_design/mock/announcement.ts
2026-02-03 15:43:26 +08:00

64 lines
1.8 KiB
TypeScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import { MockMethod } from 'vite-plugin-mock'
const announcements = [
{
id: 1,
title: '[人事任命] 北京分公司总经理...',
category: '人事任命',
content: '经董事会决定,由产品经理佳巍担任北京分公司总经理一职,负责全面工作。希望大家积极配合...',
publishTime: '2023-12-22 10:34',
status: 'published',
statusText: '已发布'
},
{
id: 2,
title: '[人事任命] 上海分公司技术总监...',
category: '人事任命',
content: '经董事会决定,由技术专家张三担任上海分公司技术总监,负责研发团队管理...',
publishTime: '2023-12-21 14:20',
status: 'withdrawn',
statusText: '已撤回'
},
{
id: 3,
title: '[公司制度] 2024年春节放假通知',
category: '公司制度',
content: '根据国家法定节假日安排结合公司实际情况现将2024年春节放假安排通知如下...',
publishTime: '2023-12-20 09:00',
status: 'draft',
statusText: '草稿'
},
{
id: 4,
title: '[产品研发] Funtime Design v2.0...',
category: '产品研发',
content: 'Funtime Design v2.0 版本正式启动研发,请各部门配合需求调研工作...',
publishTime: '2023-12-25 10:00',
status: 'pending',
statusText: '待发布'
},
{
id: 5,
title: '[企业文化] 季度团建活动通知',
category: '企业文化',
content: '为丰富员工生活,增强团队凝聚力,公司决定于本周五举行季度团建活动...',
publishTime: '2023-12-18 16:00',
status: 'published',
statusText: '已发布'
}
]
export default [
{
url: '/api/announcements',
method: 'get',
response: () => {
return {
code: 0,
message: 'ok',
data: announcements
}
}
}
] as MockMethod[]