import request from '@/utils/request'

// 获取渠道id
export function indexInfo(data) {
  return request({
    url: '/system/channelSite/info',
    // url: '//192.168.26.179:6601/api/v1/oem/webSite/domainChannel',
    // url: '//newsys.jxhh.com/api/v1/oem/webSite/domainChannel',
    method: 'post',
    data
  })
}
// 获取所有域名
export function getdomain(params) {
  return request({
    url: '//sysapi.jxhh.com/api/v1/oem/channel/domainFront',
    // url: '//192.168.26.179:6601/api/v1/oem/channel/domainFront',
    // url: '//newsys.jxhh.com/api/v1/oem/channel/domainFront',
    method: 'get',
    params
  })
}
// 获取官网设置接口
export function webSite(data) {
  return request({
    url: '/channelSite/domain/info',
    // url: '//192.168.26.179:6601/api/v1/oem/common/counsel',
    // url: '//newsys.jxhh.com/api/v1/oem/common/counsel',
    method: 'post',
    data
  })
}

// 云仓所有列表——Banner和域名/产品和服务/供应商入驻
export function getallCloudList(params) {
  return request({
    url: '//sysapi.jxhh.com/api/v1/oem/front/CloudList',
    // url: '//192.168.26.179:6601/api/v1/oem/front/CloudList',
    // url: '//newsys.jxhh.com/api/v1/oem/front/CloudList',
    method: 'get',
    params
  })
}
//获取sso域名
export function getssoUrl(data) {
  return request({
    url: '/channelSite/domain/info',
    // url: '//192.168.26.179:6601/api/v1/oem/webSite/ssoChannel',
    // url: '//newsys.jxhh.com/api/v1/oem/webSite/ssoChannel',
    method: 'post',
    data
  })
}

// 获取logo
export function backDetailsView(data) {
  return request({
    url: '/system/channelSite/info',
    method: 'post',
    data
  })
}
