基于vue3.0和element-plus的组件库
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.
|
|
|
import { queryList, save, update, deleteById } from './base';
|
|
|
|
const root = 'permission';
|
|
|
|
const publik = 'public/permission';
|
|
|
|
|
|
|
|
export const list = (example) => {
|
|
|
|
return queryList(root, example);
|
|
|
|
};
|
|
|
|
|
|
|
|
export const add = (permission) => {
|
|
|
|
return save(root, permission);
|
|
|
|
};
|
|
|
|
|
|
|
|
export const set = (permission) => {
|
|
|
|
return update(root, permission);
|
|
|
|
};
|
|
|
|
|
|
|
|
export const del = (permission) => {
|
|
|
|
return deleteById(root, permission.id);
|
|
|
|
};
|
|
|
|
|
|
|
|
export const tree = () => {
|
|
|
|
return queryList(publik);
|
|
|
|
};
|