import request from '@/router/axios';

export const getPage = (current, size, params) => {
    return request({
        url: '/api/galaxy-business/yj/resident/page',
        method: 'get',
        params: {
            ...params,
            current,
            size,
        }
    })
}

export const getDetail = (id) => {
    return request({
        url: '/api/galaxy-business/yj/resident/detail',
        method: 'get',
        params: {
            id
        }
    })
}

export const add = (row) => {
    return request({
        url: '/api/yjxt-business/public/rest/dangerarea/resident/register',
        method: 'post',
        data: row
    })
}


