/**邀请码管理-*/
import request from '@/router/axios';
export const getList = (current, size, params) => {
    return request({
        url: '/api/jobslink-api/tenant/invite/list',
        method: 'get',

        params: {

            ...params,
            current,
            size,
        }
    })
}

export const add = (inviteCode, realName, idNumber, phone, groupType, remarks,stationId) => {

    return request({
        url: '/api/jobslink-api/tenant/invite/save',
        method: 'post',
        data: { inviteCode, realName, idNumber, phone, groupType, remarks,stationId }
    })
}
export const edit = (id, inviteCode, realName, idNumber, phone, groupType, remarks, status,stationId) => {

    return request({
        url: '/api/jobslink-api/tenant/invite/update',
        method: 'post',
        data: { id,inviteCode, realName, idNumber, phone, groupType, remarks, status,stationId }
    })
}

export const importInviteCode = () => {
    return '/api/jobslink-api/tenant/invite/importList'
}

// /jobslink-api/tenant/invite/allocation
export const inviteAllocation =
  (data) => {
    return request({
      url: '/api/jobslink-api/tenant/invite/allocation',
      method: 'post',
      data: data
    })
  }

