import request from '@/libs/request'

export function getPlatformApplicationsPagedList(query) {
    return request({
        url: '/PlatformApplicationsController/platformapplications/pagedlist',
        method: 'get',
        params: query
    })
}

export function saveapp(data) {
    return request({
        url: '/PlatformApplicationsController/save',
        method: 'post',
        data: data,
        loading:"hourglass"
    })
}

export function delapp(id) {
    return request({
        url: '/PlatformApplicationsController/del',
        method: 'delete',
        params: id,
        loading:"hourglass"
    })
}

export function getAllApps() {
    return request({
        url: '/PlatformApplicationsController/platformapplications/listall',
        method: 'get'
    })
}

export function updateOrder(list) {
    return request({
        url: '/PlatformApplicationsController/platformapplications/updateOrder',
        method: 'post',
        data: list,
        loading: "hourglass"
    })
}