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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
| import type { PageParam, PageResult } from '@vben/request';
|
| import { requestClient } from '#/api/request';
|
| export namespace SystemSmsLogApi {
| /** 短信日志信息 */
| export interface SmsLog {
| id?: number;
| channelId?: number;
| channelCode: string;
| templateId?: number;
| templateCode: string;
| templateType?: number;
| templateContent: string;
| templateParams?: Record<string, any>;
| apiTemplateId: string;
| mobile: string;
| userId?: number;
| userType?: number;
| sendStatus?: number;
| sendTime?: string;
| apiSendCode: string;
| apiSendMsg: string;
| apiRequestId: string;
| apiSerialNo: string;
| receiveStatus?: number;
| receiveTime?: string;
| apiReceiveCode: string;
| apiReceiveMsg: string;
| createTime: string;
| }
| }
|
| /** 查询短信日志列表 */
| export function getSmsLogPage(params: PageParam) {
| return requestClient.get<PageResult<SystemSmsLogApi.SmsLog>>(
| '/system/sms-log/page',
| { params },
| );
| }
|
| /** 导出短信日志 */
| export function exportSmsLog(params: any) {
| return requestClient.download('/system/sms-log/export-excel', { params });
| }
|
|