/**  ----------------用户接口----------------   */


export const userLogin = '/back/login'


/** ----------------场景管理接口---------------- */
// 获取场景列表
export const getSceneList = '/back/scene/list'

export const getFilterFolerSceneList = '/back/scene/allList'

// 删除场景
export const deleteScene = '/back/scene/delete'
// 获取文件夹树
export const getFolerTreeList = '/back/scene/findListTree'

// 新建文件夹
export const insertFoler = '/back/scene/folderSave'


// 更新文件夹
export const updateFoler = '/back/scene/folderUpdate'

// 删除文件夹
export const deleteFoler = '/back/scene/folderDelete'

// 移动文件夹
export const moveFoler = '/back/scene/move'


/** ------------------------------------------ */



/** ----------------店铺管理接口---------------- */

// 获取店铺列表
export const getShopList = '/back/shop/list'

// 添加店铺
export const insertShop = '/back/shop/saveOrUpdate'

// 更新店铺
export const updateShop = '/back/shop/saveOrUpdate'

// 删除店铺
export const deleteShop = '/back/shop/delete'


/** ----------------店铺分类接口---------------- */


export const getCategoryList = '/back/category/allList'


//店鋪分類列表
export const getShopCategoryList = '/back/category/list'

// 添加分類
export const insertCategory = '/back/category/saveOrUpdate'

// 更新分類
export const updateCategory = '/back/category/saveOrUpdate'

// 删除分類
export const deleteCategory = '/back/category/delete'


//外框列表
export const getBorderList = '/back/hotOutline/list'
//外框列表
export const addBorder = '/back/hotOutline/add'
//删除外框
export const delBorderApi = '/back/hotOutline/del'
//品牌列表
export const getBrandList = '/back/brand/list'
//更新品牌信息
export const getBrandupdateBrandInfo = '/back/brand/updateBrandInfo'
//下载导入模版
export const downTemplate = '/back/excel/downTemplate'
//校验上传文件
export const checkFile = '/back/excel/checkFile'
//上传
export const uploadExcel = '/back/excel/uploadExcel'

/** ----------------开场视频接口---------------- */

// 获取视频列表
export const getVideoList = '/back/video/list'

// 添加视频
export const insertVideo = '/back/video/saveOrUpdate'

// 更新视频
export const updateVideo = '/back/video/saveOrUpdate'

// 删除视频
export const deleteVideo = '/back/video/delete'




/** ----------------部门接口---------------- */
// 获取公司列表
export const getDeptList = '/back/dept/allList'
// 获取公司列表（log）
export const getDeptLogList = '/back/dept/allListLog'

// 获取公司列表树
export const getCompanyThree = '/api/manage/department/listTree'
// 新增公司
export const insertCompany = '/back/dept/saveOrUpdate'
// 删除公司
export const deleteCompany = '/back/dept/delete'
// 新增公司
export const updateCompany = '/back/dept/saveOrUpdate'




/**  ----------------用户接口----------------   */
// 登录
// 登出
export const userLogout = '/back/logout'
// 获取用户列表
export const getUserList = '/back/user/list'
// 修改用户信息
export const updateUser = '/back/user/saveOrUpdate'
// 新增用户
export const insertUser = '/back/user/saveOrUpdate'
// 删除用户
export const deleteUser = '/back/user/delete'
// 修改用户密码
export const updateUserPWD = '/back/user/updatePassword'
// 重置用户密码
export const resetUserPWD = '/back/user/rePassword'
// 获取获取新建用户所属部门
export const getCreateUserDept = '/back/user/getCreateUserDept'
// 校验验证码
export const checkCode = '/api/manage/user/checkVerify'
// 获取验证码
export const getCode = '/api/manage/user/getVerify'

/** ------------------------------------------ */


/**  ----------------角色接口----------------   */
export const getRoleList = '/back/role/allList'


/** ----------------日志接口---------------- */
// 获取日志列表
export const getLogList = '/back/log/list'
/** ------------------------------------------ */



/** ----------------上传接口---------------- */

export const uploadFile = '/back/upload/file'





// 以下是旧的


/** ------------------------------------------ */





/**  ----------------楼盘接口----------------   */
// 根据条件拉取所有楼盘
export const getEstateList = '/fcb/project/project/queryOrSearchList'
// 修改楼盘信息
export const updateEstate = '/fcb/project/project/updateEstate'
// 增加楼盘信息
export const insertEstate = '/fcb/project/project/addEstate'
// 删除楼盘信息
export const deleteEstate = '/fcb/project/project/deleteEstate'
// 通过房源id获取楼盘信息
export const getEstateByHouseId = '/fcb/project/house/getEstateDetail'
/** ------------------------------------------ */


/**  ----------------房源接口----------------   */
// 根据条件拉取所有房源
export const getHouseList = '/fcb/project/house/queryOrSearchList'
// 获取所有房源id
export const getHouseIdAll = '/fcb/project/house/listEstate'
// 导出指定房源列表
export const exportHouseList = '/fcb/project/house/exportProjectList'
// 修改房源信息
export const updateHouse = '/fcb/project/house/updateHouse'
// 删除房源信息
export const deleteHouse = '/fcb/project/house/deleteHouse'
// 提审房源
export const auditHouse = '/fcb/project/house/submitAudit'
// 撤回审核房源
export const dismissHouse = '/fcb/project/house/dismissAudit'
// 添加房源
export const insertHouse = '/fcb/project/house/addHouse'
// 上传logo制作二维码
export const uploadHouseLogo = '/fcb/project/house/uploadImage'
// 获取房源二维码
export const getHouseQrImg = '/fcb/project/house/getQrImage'
// 获取房源所有分享链接上线
export const getHouseUpShares = '/fcb/project/house/getVrAndIndex'
// 获取房源所有分享链接
export const getHouseShares = '/fcb/project/house/getShareLinks'

/** ------------------------------------------ */



/**  ----------------新房审核接口----------------   */
// 根据条件拉取所有审核记录
export const getExamineList = '/fcb/project/audit/queryAuditLogList'
// 获取审核页面的审核记录
export const getExamineViewList = '/fcb/project/house/getAuditHouseList'
// 审核
export const estateExamine = '/fcb/project/audit/doAudit'
// 上下线
export const estateOnline = '/fcb/project/audit/online'
// 导出审核记录
export const exporrtAuditEstate = '/fcb/project/house/exportAuditHouseList'
/** ------------------------------------------ */





/**  ----------------二手房小区接口----------------   */
// 获取所有城市列表
export const getVrCityList = '/fcb/project/redirct/101_getVrCityList'
// 获取所有物业列表
export const getPropertyList = '/fcb/project/redirct/101_propertySortList'
// 获取片区列表
export const getRegionList = '/fcb/project/redirct/101_getRegionList'

// 获取小区总数统计
export const getCommunityTotal = '/fcb/project/redirct/101_getVrGardenCountByStatus'

// 获取小区列表
export const getCommunityList = '/fcb/project/redirct/101_gardenVrList'
export const getCommunityList1 = '/fcb/project/redirct/101_gardenVrListForAll'

// 添加小区
export const insertCommunity = '/fcb/project/redirct/101_saveVrGarden'
// 删除小区
export const deleteCommunity = '/fcb/project/redirct/101_deleteVrGarden'

// 提审房源
export const auditCommunity = '/fcb/project/redirct/101_gardenVrAudit'
// 撤回审核房源
export const dismissCommunity = '/fcb/project/redirct/101_gardenVrAudit'
// 房源所有分享链接
export const getCommunityShares  = '/fcb/project/usedestate/getShareLinks'

// 获取所有房源id
export const getCommunityIdAll = '/fcb/project/usedestate/listEstate'
// 通过房源id获取楼盘信息
export const getCommunityByHouseId = '/fcb/project/redirct/101_getFrontEndVrGardenDetailById'
/** ------------------------------------------ */


/**  ----------------二手房房源接口----------------   */
// 获取小区列表
export const getSecondHouseList = '/fcb/project/redirct/101_getVrRoomListByGardenId'
// 获取小区列表
export const getSecondHouseList1 = '/fcb/project/redirct/101_getVrReviewList'

// 获取小区总数统计
export const getSecondHouseTotal = '/fcb/project/redirct/101_getReviewListTotalNumber'

// 添加小区
export const insertSecondHouse = '/fcb/project/redirct/101_saveVrGarden'
// 提审房源
export const auditSecondHouse = '/fcb/project/redirct/101_setVrRoomStatus'
// 撤回审核房源
export const dismissSecondHouse = '/fcb/project/redirct/101_setVrRoomStatus'
// 删除小区
export const deleteSecondHouse = '/fcb/project/redirct/101_deleteVrGarden'

// 获取房源所有分享链接
export const getSecondHouseShares = '/fcb/project/usedhouse/getShareLinks'
/** ------------------------------------------ */


/**  ----------------二手房小区审核----------------   */

// 根据条件拉取所有审核记录
export const getCommunityExamineList = '/fcb/project/usedaudit/queryAuditLogList'
// 获取审核页面的审核记录
export const getCommunityExamineViewList = '/fcb/project/redirct/101_getVrGardenAuditRecordList'
// 审核
export const communityExamine = '/fcb/project/redirct/101_gardenVrAudit'
// 上下线
export const communityOnline = '/fcb/project/redirct/101_getVrGardenAuditRecordList'
// 导出审核记录
export const exporrtCommunityAuditEstate = '/fcb/project/redirct/101_getVrGardenExportList'

/** ------------------------------------------ */


/**  ----------------二手房房间审核----------------   */

// 根据条件拉取所有审核记录
export const getSecondHouseExamineList = '/fcb/project/usedaudit/queryAuditLogList'
// 获取审核页面的审核记录
export const getSecondHouseExamineViewList = '/fcb/project/redirct/101_getVrReviewLogList'
// 审核
export const secondHouseExamine = '/fcb/project/redirct/101_setVrRoomStatus'
// 上下线
export const secondHouseOnline = '/fcb/project/redirct/101_setVrRoomStatus'
// 导出审核记录
export const exporrtSecondHouseAuditEstate = '/fcb/project/redirct/101_exportVrReviewList'

/** ------------------------------------------ */





/** ----------------相机接口---------------- */
// 获取相机列表
export const getCameraList = '/api/scene/camera/findListPage'
// 添加相机
export const insertCamera = '/api/scene/camera/save'
// 修改相机
export const updateCamera = '/api/scene/camera/update'
// 删除相机
export const deleteCamera = '/api/scene/camera/delete'
// 相机绑定设备
export const bindCamera = '/api/scene/camera/bindCamera'
// 相机解除绑定设备
export const unbindCamera = '/api/scene/camera/unbind'
/** ------------------------------------------ */







/** ----------------获取恒大签名---------------- */
export const getAuthConfig = '/fcb/project/api/query/authCode'
/** ------------------------------------------- */


/** ----------------恒大接口---------------- */
// 获取恒大所有楼盘信息
export const getHdEstateNames = '/vr/prodvr/prod/v1/prodinfo'

// 获取恒大所有二手房源信息
export const getHdCommunityNames = '/fcb/project/redirct/101_searchGardenVrList'

// 判断恒大VR连接是否删除
// export const hasHouseIsDel = '/vr/prodvr/prod/v1/isOffline'
export const hasHouseIsDel = '/omc/external/prod/v1/isOffline'
// export const hasHouseIsDel = 'https://broker-sit2-api.fcb.com.cn/omc/external/prod/v1/isOffline'

// 判断恒大VR小区连接是否删除
export const hasCommunityIsDel = '/vr/prodvr/prod/v1/isOffline'

// 判断恒大VR连接是否删除
export const hasSecondHouseIsDel = '/vr/prodvr/prod/v1/isOffline'
/** ------------------------------------------- */


// 转发类型接口
export const RedirctUrls = [
  getVrCityList,
  getPropertyList,
  getRegionList,
  getCommunityList,
  insertCommunity,
  deleteCommunity,
  auditCommunity,
  getHdCommunityNames,
  getSecondHouseList1,
  dismissCommunity,
  getCommunityShares,
  getCommunityIdAll,
  getCommunityByHouseId,
  getSecondHouseList,
  insertSecondHouse,
  auditSecondHouse,
  getCommunityTotal,
  getCommunityList1,
  getSecondHouseTotal,
  dismissSecondHouse,
  deleteSecondHouse,
  getSecondHouseShares,
  getCommunityExamineList,
  getCommunityExamineViewList,
  communityExamine,
  communityOnline,
  exporrtCommunityAuditEstate,
  getSecondHouseExamineList,
  getSecondHouseExamineViewList,
  secondHouseExamine,
  secondHouseOnline,
  exporrtSecondHouseAuditEstate
]

export const RedirctPageUrls = [
  getCommunityList,
  getCommunityList1,
  getSecondHouseList,
  getCommunityExamineList,
  getSecondHouseList1,
  getCommunityExamineViewList,
  getSecondHouseExamineList,
  getSecondHouseExamineViewList
]

// 不需要登录就能请求的接口
export const notLoginUrls = [userLogin, checkCode, getCode]
// 需要用表单提交的数据
export const fromUrls = [auditHouse, dismissHouse]
// 带文件的请求
export const fileUrls = [uploadFile]
// 需要限定卫GET请求方式的url
export const GetUrls = []
// 需要限定请求方式的url
export const PostUrls = [
  getSceneList, 
  getFilterFolerSceneList,
  getCameraList, 
  getUserList,
  getCommunityList,
  getCommunityShares,
  getCommunityIdAll,
  getCommunityByHouseId,
  getSecondHouseList,
  getSecondHouseShares,
  getCommunityExamineList,
  getCommunityExamineViewList,
].concat(RedirctUrls)
// 恒大接口
export const HdUrls = [getHdEstateNames, hasHouseIsDel]
// 文件流接口
export const FileFlow = [exporrtAuditEstate, exporrtSecondHouseAuditEstate]
