import { request } from 'umi' ; export async function queryPermissions ( params ? ) { return request ( 'permissions' , { params , } ) ; } export async function storePermission ( data ) { return request ( 'permissions' , { method : 'POST' , data , } ) ; } export async function updatePermission ( id , data ) { return request ( `permissions/${ id }` , { method : 'PUT' , data , } ) ; }