import request from '@/utils/request.js'

//询价公告列表
export function getInquiryList(data){
    return request({
        url:"/notice/list",
        method:'post',
        data:data
  })
}
//候选人公告列表
export function getCadidateList(data){
  return request({
      url:"/notice/list",
      method:'post',
      data:data
})
}
//中标候选人公告详情
export function getCadidateDetails(id){
  return request({
      url:`/notice/cadidate/${id}`,
      method:'get',
})
}
//变更公告列表
export function getChangeList(data){
  return request({
      url:"/notice/list",
      method:'post',
      data:data
})
}
//流标公告列表
export function getErrorList(data){
  return request({
      url:"/notice/list",
      method:'post',
      data:data
})
}
//流标公告详情
export function getErrorDetails(id){
  return request({
      url:`/notice/abortive/${id}`,
      method:'get',
})
}
//询价公告详情
export function getenquirydetails(id){
  return request({
      url:`/notice/enquiry/${id}`,
      method:'get'
})
}
export function getBidingList(data){
    return request({
        url:'/notice/list',
        method:'post',
        data:data
  })
}
//招标详情页
export function getBidingdetails(id){
  return request({
      url:`/notice/bidding/${id}`,
      method:'get',
})
}
//中标详情页
export function getWindetails(id){
  return request({
      url:`/notice/win/${id}`,
      method:'get',
})
}
//中标列表页
export function getWinList(data){
    return request({
        url:"/notice/list",
        method:'post',
        data:data
  })
}
//补充答疑列表页
export function getClerList(data){
  return request({
      url:"/notice/list",
      method:'post',
      data:data
})
}
//补充答疑详情页
export function getClerDetailsList(id){
  return request({
      url:`/notice/clarifiesNotice/${id}`,
      method:'get',
})
}
//全部列表
export function getAllList(data){
  return request({
      url:"/notice/list",
      method:'post',
      data:data
})
}
//忘记密码---->发送短信
export function sendSms(params){
  return request({
      url:"/sms/send-sms",
      method:'post',
      params:params
})
}
//忘记密码---->手机验证码
export function getVerifyPhone(data){
  return request({
      url:"/sms/verify-phone",
      method:'post',
      data:data
})
}
//忘记密码---->重置密码
export function getResetPassword(data){
  return request({
      url:"reset-password",
      method:'post',
      data:data
})
}

//文章列表
export function getListContent(params){
  return request({
      url:"/news/list-content",
      method:'get',
      params
})
}
//文章列表首页
export function getListSite(params){
  return request({
      url:"/news/list-content",
      method:'get',
      params:params
})
}
//主页法律法规
export function getListSite1(params){
  return request({
      url:"/news/list-content",
      method:'get',
      params:params
})
}
//主页新闻资讯
export function getListSite2(params){
  return request({
      url:"/news/list-content",
      method:'get',
      params:params
})
}
//分类列表
export function getCategoryList(){
  return request({
      url:"/news/list-category",
      method:'get',
})
}
//查看分类
 export function getCateList(id){
  return request({
      url:`/news/cate/${id}`,
      method:'get',
})
}
//查看文章
export function getList(id){
  return request({
      url:`/news/content/${id}`,
      method:'get',
})
}
//获取noticeType
export function getNoticeType(){
  return request({
      url:"/notice/notice-type",
      method:'get',
})
}
//变更详情
export function getChangeDetails(id){
  return request({
      url:`/notice/change/${id}`,
      method:'get',
})
}
//轮播图
export function getLoopPic(){
  return request({
      url:'/banner/banner/1',
      method:'get'
})
}
//二次验证
export function getSecond(data){
  return request({
      url:'/sys/user/userInfo',
      method:'get',
      data:data
})
}
//手机验证码登录
export function phoneCode1(data){
  return request({
      url:'/phoneLogin',
      method:'post',
      data:data
})
}

//信息公告详情
export function getnewsdetails(id){
  return request({
      url:`/news/content/${id}`,
      method:'get',
})
}
//审核失败后
export function getErrorInfo(id){
  return request({
      url:`/company/detail/${id}`,
      method:'get',
})
}
/* 审核失败后提交 */
export function getPutInfo(data){
    return request({
        url:'/company/edit',
        method:'post',
        data:data
  })
  }/* 客服电话 */
  export function getMessagephone(){
    return request({
        url:'/company/customService',
        method:'get',
  })}