huangyinfeng
2024-09-04 1288098cf6d7cb37547448c4d072287c40e0e6d1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
 
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});