/**
 * 获取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": "House",
		},
		{
			"path": "/admin/view1",
			"name": "交易记录管理",
			"icon": "DataAnalysis",
		},
		{
			"path": "/admin/view2",
			"name": "欺诈检测预警",
			"icon": "DataAnalysis",
		},
		{
			"path": "/admin/view3",
			"name": "数据管理",
			"icon": "DataAnalysis",
		},
	]
	return routes;
}
export const getFrontList = () => {
	const routes = [
		{
			"path": "/front/",
			"name": "首页",
			"icon": "House",
		},
		{
			"path": "/front/list",
			"name": "更多好物",
			"icon": "House",
		},

	]
	return routes;
}
