const baseUrl = process.env.VUE_APP_BASE_API + "/admin-api"

const api = {
  state: {
    // 部署包上传
    deployUploadApi: baseUrl + '/bxg/api/deploy/upload',
    // SQL脚本上传
    databaseUploadApi: baseUrl + '/bxg/api/database/upload',
    // 实时控制台
    socketApi: baseUrl + '/bxg/websocket?token=kl',
    // 图片上传
    imagesUploadApi: baseUrl + '/bxg/api/pictures',
    // 修改头像
    updateAvatarApi: baseUrl + '/bxg/api/users/updateAvatar',
    // 上传文件到七牛云
    qiNiuUploadApi: baseUrl + '/bxg/api/qiNiuContent',

    uploadApi: baseUrl + '/bxg/api/upload',
    // Sql 监控
    sqlApi: baseUrl + '/bxg/druid',
    // swagger
    swaggerApi: baseUrl + '/bxg/doc.html',
    // 文件上传
    fileUploadApi: baseUrl + '/bxg/api/localStorage',
    // baseUrl，
    baseApi: baseUrl
  }
}

export default api
