/**
 * 获取uuid
 */
export const getUuid = (): string => {
	return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function (c) {
		const r = (Math.random() * 16) | 0,
			v = c == "x" ? r : (r & 0x3) | 0x8;
		return v.toString(16);
	});
};
export const getAdminList = () => {
	const routes =[
		{
			"path": "/admin",
			"name": "首页",
			"icon": "HomeFilled"  // 首页
		},
		{
			"path": "/admin/item",
			"name": "医生管理",
			"icon": "UserFilled"
		},
		{
			"path": "/admin/user",
			"name": "患者管理",
			"icon": "Avatar"
		},
		{
			"path": "/admin/departments",
			"name": "科室管理",
			"icon": "Umbrella"
		},
		{
			"path": "/admin/position",
			"name": "职称管理",
			"icon": "ChatLineRound"  // 评论管理
		},
		{
			"path": "/admin/topic",
			"name": "患者交流",
			"icon": "Edit"  // 更换为 Edit 图标
		},
		{
			"path": "/admin/slides",
			"name": "轮播管理",
			"icon": "Picture"  // 轮播图管理
		},
		{
			"path": "/admin/management",
			"name": "药品管理",
			"icon": "Picture"  // 轮播图管理
		},
	]

	return routes;
}
export const getDoctorsList = () => {
	const routes =[
		{
			"path": "/doctor",
			"name": "首页",
			"icon": "HomeFilled"  // 首页
		},
		{
			"path": "/doctor/info",
			"name": "医生信息",
			"icon": "UserFilled"
		},
		{
			"path": "/doctor/log",
			"name": "预约记录",
			"icon": "Notification"
		},
		{
			"path": "/doctor/communication",
			"name": "患者沟通",
			"icon": "ChatDotSquare"
		},
		{
			"path": "/doctor/case",
			"name": "查看病例",
			"icon": "ChatDotSquare"
		},
	]

	return routes;
}
export const getFrontList = () => {
	const routes = [
		{
			"path": "/",
			"name": "首页",
			"icon": "House",
		},
		{
			"path": "/list",
			"name": "预约医生",
			"icon": "House",
		},
		// {
		// 	"path": "/leaderboard",
		// 	"name": "健康资讯",
		// 	"icon": "House",
		// },
		// {
		// 	"path": "/topic",
		// 	"name": "健康资讯",
		// 	"icon": "House",
		// },
		{
			"path": "/cultural",
			"name": "患者交流",
			"icon": "House",
		},
	]
	return routes;
}
