From ba731155ae33fb53ae9c56ba4a18b7481ff65103 Mon Sep 17 00:00:00 2001 From: YeMingfei666 <1619116647@qq.com> Date: Wed, 2 Apr 2025 16:15:32 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=A2=9E=E5=8A=A0=E6=94=B6=E9=93=B6?= =?UTF-8?q?=E6=9C=BA=E9=A1=B5=E9=9D=A2=E6=9D=83=E9=99=90=E8=AE=BE=E7=BD=AE?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/account/shopPagePermission.ts | 46 +++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 src/api/account/shopPagePermission.ts diff --git a/src/api/account/shopPagePermission.ts b/src/api/account/shopPagePermission.ts new file mode 100644 index 0000000..7b50c5d --- /dev/null +++ b/src/api/account/shopPagePermission.ts @@ -0,0 +1,46 @@ +import request from "@/utils/request"; +import { Account_BaseUrl } from "@/api/config"; +import { get } from "lodash"; +const baseURL = Account_BaseUrl + "/admin/shopPagePermission"; +const Api = { + // 获取所有页面路径 + getPageAll(params: any) { + return request({ + url: `${baseURL}`, + method: "get", + params: params, + }); + }, + // 保存修改权限 + save(data: any) { + return request({ + url: `${baseURL}`, + method: "post", + data: data, + }); + }, + //获取员工拥有页面路径 + detail(params: any) { + return request({ + url: `${baseURL}/detail`, + method: "get", + params: params, + }); + }, + //获取当前员工已拥有页面路径 + mine(params: any) { + return request({ + url: `${baseURL}/mine`, + method: "get", + params: params, + }); + } +}; + +export default Api; + +interface PagePath { + label: string; + value: string; + [property: string]: any; +} \ No newline at end of file