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.
23 lines
492 B
23 lines
492 B
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); |
|
};
|
|
|