import request from '@/utils/request'

/**
 * @description 绘画广场列表
 * @return { Promise }
 * @param params
 */
export function getDrawSquareLists(data?: any) {
    return request.get({ url: '/draw_square/lists', data })
}

/**
 * @description 绘画广场列表
 * @return { Promise }
 */
export function getDrawSquareCateLists() {
    return request.get({ url: '/draw_square/categoryLists' })
}

/**
 * @description 分享至绘画广场
 * @param params
 * @return { Promise }
 */
export function shareDrawSquare(data: any) {
    return request.post({ url: '/draw_square/add', data })
}

/**
 * @description 点赞
 * @param params
 * @return { Promise }
 */
export function drawPraise(data: any) {
    return request.post({ url: '/draw_square/praise', data })
}