wupengfei
4 小时以前 0ae2f2f277c9a20648e2b53a804b443e412b523a
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
46
47
48
49
50
51
52
53
54
55
56
57
/* eslint-disable */
// @ts-ignore
import { request } from '@/utils/request';
 
/** 查询短信配置 POST /api/common/sms/getSmsSetting */
export async function getSmsSetting(body: API.GetSmsSettingQuery, options?: API.RequestConfig) {
  return request<API.GetSmsSettingQueryResult>('/api/common/sms/getSmsSetting', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json-patch+json',
    },
    data: body,
    ...(options || {}),
  });
}
 
/** 保存短信配置 POST /api/common/sms/saveSmsSetting */
export async function saveSmsSetting(body: API.SaveSmsSettingCommand, options?: API.RequestConfig) {
  return request<string>('/api/common/sms/saveSmsSetting', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json-patch+json',
    },
    data: body,
    ...(options || {}),
  });
}
 
/** 阿里云短信平台回传通知 POST /api/common/sms/smsAliyunNotify */
export async function smsAliyunNotify(
  body: API.SmsAliyunNotifyCommandItem[],
  options?: API.RequestConfig
) {
  return request<API.SmsAliyunNotifyCommandResult>('/api/common/sms/smsAliyunNotify', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json-patch+json',
    },
    data: body,
    ...(options || {}),
  });
}
 
/** 诚立业短信平台回传通知 POST /api/common/sms/smsChengLiYeNotify */
export async function smsChengLiYeNotify(
  body: API.SmsChengLiYeNotifyCommand,
  options?: API.RequestConfig
) {
  return request<boolean>('/api/common/sms/smsChengLiYeNotify', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json-patch+json',
    },
    data: body,
    ...(options || {}),
  });
}