import { request } from '@umijs/max';

// 查询菜单权限列表
export async function config() {
    return request('/api/app/config/findList', {
        method: 'POST',
        headers: {
            'Content-Type': 'application/json;charset=UTF-8',
        },
        data: {},
    });
}

export async function configUpdate(body) {
    return request('/api/app/config/update', {
        method: 'POST',
        headers: {
            'Content-Type': 'application/json;charset=UTF-8',
        },
        data: body || {},
    });
}
