/**
 * 所有跟用户相关的接口（TODO:DEMO USER）
 */

 import { HttpResponse } from '@/@types'
 import Axios from './axios'
 /**
  * @interface loginParams -登录参数
  * @property {string} grant_type -授权类型
  * @property {string} email -邮箱
  * @property {string} password -用户密码
  */
  interface pageMsg{
    pageIndex:number,
    pageSize:number,
    rowsPerPage:number,
  }
 interface IdName {
   Id: number
   Name: string
 }
 class drainageApi {
    // 获取客户字段列表
    static async getCustomerFiledList(data: pageMsg | IdName): Promise<HttpResponse> {
      return Axios('/QYWeChat/GetWeChatMediumGroupPageList', {
        method: 'post',
        responseType: 'json',
        data
      })
    }
}


export default drainageApi