You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Nursing-home-management-system/client/src/mock/users.ts

25 lines
739 B

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

// 定义一个接口 IUser用于描述用户对象的结构
export interface IUser {
// 用户的唯一标识 ID类型为数字
id: number
// 用户的用户名,类型为字符串
username: string
// 用户拥有的权限 ID 数组,数组中的元素类型为数字
auth: number[]
}
// 导出一个默认的用户数组,类型为 IUser 数组
// 数组中包含一个用户对象
export default <IUser[]>[
{
id: 1,
username: 'zhangsan',
// 该用户拥有的权限 ID 数组,包含多个权限 ID
auth: [
1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21,
22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39,
40, 41, 42
]
}
]