import Axios from './axios'
import { HttpResponse } from '@/@types'
interface ClueParams {
  PageIndex: number
  PageSize: number
  pageCount: number
  CorpName: string //企业名称
  CustomerName: string //备注名
  WeChatName: string //昵称
  CustomerMobile: string //手机号码
  CreateSTime: string //创建开始时间
  CreateETime: string //创建结束时间
  FriendSTime: string //好友开始时间
  FriendETime: string //好友结束时间
  Q_NotFollowUpDay: number //几天未跟进
  Q_Friends: string //好友关系 多选逗号分隔、
  Q_AddWay: string //获取来源 多选英文逗号分隔
  EmpId: number //员工id
  CustomerType: number //类型1微信用户 2企业微信用户
  SelectList: Array<any> //自定义查询
  OrderBy: number //排序
  AddCondition: number //查询条件
}
class clueService {
  // 获取客户线索规则列表
  static async getCustomerClueList(data: ClueParams): Promise<HttpResponse> {
    return Axios('/QYCustomer/GetCustomerCluePageList', {
      method: 'post',
      responseType: 'json',
      data
    })
  }
}

export { ClueParams }
export default clueService
