import request from '@/router/axios';
import { getToken } from '@/util/auth'
/*新增*/
export const add = (row) => {
  return request({
    url: '/api/jobslink-api/tenant/company/info/submit',
    method: 'post',
    data: row
  })
}

/*编辑*/
export const update = (row) => {
  return request({
    url: '/api/jobslink-api/tenant/company/info/update',
    method: 'post',
    data: row
  })
}
/*查看公司介绍*/
export const getDetail = () => {
  return request({
    url: '/api/jobslink-api/tenant/company/info/detail',
    method: 'get',
    params: {
    }
  })
}

/*查看基本信息*/
export const getBaseDetail = () => {
  return request({
    url: '/api/jobslink-api/tenant/company/tenant/auth/detail',
    method: 'get',
    params: {
    }
  })
}

export const putFile = () => `/api/jobslink-api/resource/oss/endpoint/put-file?Jobslink-Auth=${getToken()}`
