|
import { defHttp } from '@/utils/http/axios';
|
import {
|
GetUserListModel,tableParams,sendingMailModel
|
} from './model/userListModel';
|
|
enum Api {
|
GET_USER_LIST = '/crm/email/getUserList',
|
SENDING_MAIL_DO = '/crm/mail/sendingMail.do',
|
UPDATE_READ = '/crm/mail/updateRead.do',
|
RECEIVE = '/crm/mail/receive.do'
|
|
}
|
|
export const receiveApi = (params) =>
|
defHttp.get({ url: Api.RECEIVE,params});
|
// 发送邮件
|
//获取联系人列表
|
export const getUserListApi = (params: tableParams) =>
|
defHttp.post<GetUserListModel[]>({ url: Api.GET_USER_LIST, params});
|
// 发送邮件
|
export const sendingMailApi = (params) =>
|
defHttp.post<sendingMailModel[]>({ url: Api.SENDING_MAIL_DO, params});
|
export const updateReadApi = (params) =>
|
defHttp.post<{}>({ url: Api.UPDATE_READ , params});
|