import request from '@/utils/request'

// 新增书城
export function addBookPlatInfo(data) {
    return request({
        url: '/mp-operation/bookPlatInfo',
        method: 'put',
        data: data
    })
}

// 获取书城列表
export function getBookPlatInfo(query) {
    return request({
        url: '/mp-operation/bookPlatInfo',
        method: 'GET',
        params: query
    })
}

// 删除书城列表
export function delBookPlatInfo(id) {
    return request({
        url: '/mp-operation/bookPlatInfo/' + id,
        method: 'DELETE'
    })
}

// 修改书城
export function editBookPlatInfo(data) {
    return request({
        url: '/mp-operation/bookPlatInfo',
        method: 'post',
        data: data
    })
}

// 获取书城列表
export function getBookPlatInfoAll() {
    return request({
        url: '/erp/bookPlatform/all',
        method: 'GET'
    })
}