123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166 |
- // @ts-ignore
- /* eslint-disable */
- import { request } from 'umi';
- /**
- * @author bianlanzhou
- * @since 2024-11-06
- * @desc sms 后端请求方法定义
- */
- /** 分页查询短信签名 */
- export async function pageQuerySmsSign(params: any, options?: { [key: string]: any }) {
- return request('/sms/sign/page', {
- method: 'GET',
- params: {
- ...params,
- },
- ...(options || {}),
- });
- }
- /** 查询短信签名 */
- export async function querySmsSign(params?: any, options?: { [key: string]: any }) {
- return request('/sms/sign/list', {
- method: 'GET',
- params: {
- ...params,
- },
- ...(options || {}),
- });
- }
- /** 更新/插入短信签名 */
- export async function upsertSmsSign(data: SMS.SignatureUpsertCmd, options?: { [key: string]: any }) {
- return request('/sms/sign/upsert', {
- method: 'POST',
- data: {
- ...data,
- },
- ...(options || {}),
- });
- }
- /** 分页查询短信模版 */
- export async function pageQuerySmsTemplate(params: any, options?: { [key: string]: any }) {
- return request('/sms/template/page', {
- method: 'GET',
- params: {
- ...params,
- },
- ...(options || {}),
- });
- }
- /** 查询短信模版 */
- export async function querySmsTemplate(params?: any, options?: { [key: string]: any }) {
- return request('/sms/template/list', {
- method: 'GET',
- params: {
- ...params,
- },
- ...(options || {}),
- });
- }
- /** 更新/插入短信模版 */
- export async function upsertSmsTemplate(data: SMS.TemplateUpsertCmd, options?: { [key: string]: any }) {
- return request('/sms/template/upsert', {
- method: 'POST',
- data: {
- ...data,
- },
- ...(options || {}),
- });
- }
- /** 分页查询短信服务 */
- export async function pageQuerySmsService(params: any, options?: { [key: string]: any }) {
- return request('/sms/service/page', {
- method: 'GET',
- params: {
- ...params,
- },
- ...(options || {}),
- });
- }
- /** 更新/插入短信服务 */
- export async function upsertSmsService(data: SMS.ServiceUpsertCmd, options?: { [key: string]: any }) {
- return request('/sms/service/upsert', {
- method: 'POST',
- data: {
- ...data,
- },
- ...(options || {}),
- });
- }
- /** 分页查询短信平台 */
- export async function pageQuerySmsPlatform(params: any, options?: { [key: string]: any }) {
- return request('/sms/platform/page', {
- method: 'GET',
- params: {
- ...params,
- },
- ...(options || {}),
- });
- }
- /** 查询短信平台 */
- export async function querySmsPlatform(params?: any, options?: { [key: string]: any }) {
- return request('/sms/platform/list', {
- method: 'GET',
- params: {
- ...params,
- },
- ...(options || {}),
- });
- }
- /** 更新/插入短信平台 */
- export async function upsertSmsPlatform(data: SMS.PlatformUpsertCmd, options?: { [key: string]: any }) {
- return request('/sms/platform/upsert', {
- method: 'POST',
- data: {
- ...data,
- },
- ...(options || {}),
- });
- }
- /** 分页查询短信通道 */
- export async function pageQuerySmsChannel(params: any, options?: { [key: string]: any }) {
- return request('/sms/channel/page', {
- method: 'GET',
- params: {
- ...params,
- },
- ...(options || {}),
- });
- }
- /** 分页查询短信通道 */
- export async function querySmsChannel(params: any, options?: { [key: string]: any }) {
- return request('/sms/channel/list', {
- method: 'GET',
- params: {
- ...params,
- },
- ...(options || {}),
- });
- }
- /** 更新/插入短信通道 */
- export async function upsertSmsChannel(data: SMS.ChannelUpsertCmd, options?: { [key: string]: any }) {
- return request('/sms/channel/upsert', {
- method: 'POST',
- data: {
- ...data,
- },
- ...(options || {}),
- });
- }
|