cmc-web/packages/api/system/license.js

27 lines
616 B
JavaScript
Raw Permalink Normal View History

2024-08-20 12:11:31 +00:00
/**
* Created by HaijunZhang on 2019/7/23.
*/
import { request } from '@cmp/cmp-element'
import { wrapperParams } from 'utils'
const baseUrl = '/sms/v1/config'
export function getStatus(params) {
return request.get(`${baseUrl}/status`, {
params
})
}
export function getSid() {
return request.get('/sms/v1/status/sids')
}
export function getServer(params) {
return request.get(`${baseUrl}/servers`, {
params
})
}
export function getLicense() {
return request.get(`${baseUrl}/license`)
}
export function installCaptcha(params) {
return request.post('/sms/v1/config/captcha/install', params)
}