58 lines
1.1 KiB
JavaScript
58 lines
1.1 KiB
JavaScript
import request from '@/utils/request';
|
|
|
|
export function pushMessage(data) {
|
|
return request({
|
|
url: `/api/pushMessage`,
|
|
method: 'post',
|
|
data
|
|
});
|
|
}
|
|
|
|
export function pushSysNotice(data) {
|
|
return request({
|
|
url: `/api/v1/sysNotice?noticeType=${data.noticeType}`,
|
|
method: 'post',
|
|
data
|
|
});
|
|
}
|
|
|
|
export function postLicense(data) {
|
|
return request({
|
|
url: `/api/license`,
|
|
method: 'post',
|
|
data
|
|
});
|
|
}
|
|
|
|
export function postLicenseValidate(data) {
|
|
return request({
|
|
url: `/api/license/validate`,
|
|
method: 'post',
|
|
// baseURL: 'https://joylink.club/jlcloud',
|
|
data
|
|
});
|
|
}
|
|
|
|
export function postLicenseLocal(data) {
|
|
return request({
|
|
url: `/api/license/local`,
|
|
method: 'post',
|
|
data
|
|
});
|
|
}
|
|
|
|
export function getPagingQueryList(params) {
|
|
return request({
|
|
url: `/api/license/pagingQuery`,
|
|
method: 'get',
|
|
params
|
|
});
|
|
}
|
|
|
|
export function putLicenseValid(id) {
|
|
return request({
|
|
url: `/api/license/${id}/invalidating`,
|
|
method: 'put'
|
|
});
|
|
}
|