fix: 接口变更/请求方法为大写

This commit is contained in:
TsMask
2025-02-20 10:42:34 +08:00
parent 8bfa73a67a
commit 7322759545
83 changed files with 568 additions and 1388 deletions

View File

@@ -8,7 +8,7 @@ import { request } from '@/plugins/http-fetch';
export function listNeLicense(query: Record<string, any>) {
return request({
url: '/ne/license/list',
method: 'get',
method: 'GET',
params: query,
timeout: 60_000,
});
@@ -22,7 +22,7 @@ export function listNeLicense(query: Record<string, any>) {
export function getNeLicense(licenseId: string | number) {
return request({
url: `/ne/license/${licenseId}`,
method: 'get',
method: 'GET',
});
}
@@ -35,7 +35,7 @@ export function getNeLicense(licenseId: string | number) {
export function getNeLicenseByTypeAndID(neType: string, neId: string) {
return request({
url: `/ne/license/byTypeAndID`,
method: 'get',
method: 'GET',
params: { neType, neId },
});
}
@@ -49,7 +49,7 @@ export function getNeLicenseByTypeAndID(neType: string, neId: string) {
export function codeNeLicense(neType: string, neId: string) {
return request({
url: `/ne/license/code`,
method: 'get',
method: 'GET',
params: { neType, neId },
});
}
@@ -62,7 +62,7 @@ export function codeNeLicense(neType: string, neId: string) {
export function changeNeLicense(data: Record<string, any>) {
return request({
url: `/ne/license/change`,
method: 'post',
method: 'POST',
data: data,
timeout: 180_000,
});
@@ -77,7 +77,7 @@ export function changeNeLicense(data: Record<string, any>) {
export function stateNeLicense(neType: string, neId: string) {
return request({
url: `/ne/license/state`,
method: 'get',
method: 'GET',
params: { neType, neId },
});
}