feat: 合并Gin_Vue
This commit is contained in:
@@ -27,7 +27,7 @@ export async function listNeSoftware(query: Record<string, any>) {
|
||||
|
||||
// 发起请求
|
||||
const result = await request({
|
||||
url: `/databaseManagement/v1/select/omc_db/ne_software`,
|
||||
url: `/api/rest/databaseManagement/v1/select/omc_db/ne_software`,
|
||||
method: 'get',
|
||||
params: {
|
||||
totalSQL: totalSQL + querySQL,
|
||||
@@ -65,7 +65,7 @@ export async function listNeSoftware(query: Record<string, any>) {
|
||||
*/
|
||||
export async function delNeSoftware(data: Record<string, any>) {
|
||||
return request({
|
||||
url: `/systemManagement/v1/${data.neType}/software/${data.version}`,
|
||||
url: `/api/rest/systemManagement/v1/${data.neType}/software/${data.version}`,
|
||||
method: 'delete',
|
||||
});
|
||||
}
|
||||
@@ -77,7 +77,7 @@ export async function delNeSoftware(data: Record<string, any>) {
|
||||
*/
|
||||
export async function downloadNeSoftware(data: Record<string, any>) {
|
||||
return await request({
|
||||
url: `/systemManagement/v1/${data.neType}/software/${data.version}`,
|
||||
url: `/api/rest/systemManagement/v1/${data.neType}/software/${data.version}`,
|
||||
method: 'get',
|
||||
responseType: 'blob',
|
||||
});
|
||||
@@ -90,7 +90,7 @@ export async function downloadNeSoftware(data: Record<string, any>) {
|
||||
*/
|
||||
export function uploadNeSoftware(data: FormData) {
|
||||
return request({
|
||||
url: `/systemManagement/v1/${data.get('nf')}/software/${data.get(
|
||||
url: `/api/rest/systemManagement/v1/${data.get('nf')}/software/${data.get(
|
||||
'version'
|
||||
)}`,
|
||||
method: 'post',
|
||||
@@ -106,7 +106,7 @@ export function uploadNeSoftware(data: FormData) {
|
||||
*/
|
||||
export async function sendNeSoftware(data: Record<string, any>) {
|
||||
const result = await request({
|
||||
url: `/systemManagement/v1/${data.neType}/software/${data.version}/${data.neId}`,
|
||||
url: `/api/rest/systemManagement/v1/${data.neType}/software/${data.version}/${data.neId}`,
|
||||
method: 'post',
|
||||
});
|
||||
// 解析数据
|
||||
@@ -129,7 +129,7 @@ export async function sendNeSoftware(data: Record<string, any>) {
|
||||
*/
|
||||
export async function runNeSoftware(data: Record<string, any>) {
|
||||
const result = await request({
|
||||
url: `/systemManagement/v1/${data.neType}/software/${data.version}/${data.neId}`,
|
||||
url: `/api/rest/systemManagement/v1/${data.neType}/software/${data.version}/${data.neId}`,
|
||||
method: 'put',
|
||||
});
|
||||
// 解析数据
|
||||
@@ -152,7 +152,7 @@ export async function runNeSoftware(data: Record<string, any>) {
|
||||
*/
|
||||
export async function backNeSoftware(data: Record<string, any>) {
|
||||
const result = await request({
|
||||
url: `/systemManagement/v1/${data.neType}/software/${data.version}/${data.neId}`,
|
||||
url: `/api/rest/systemManagement/v1/${data.neType}/software/${data.version}/${data.neId}`,
|
||||
method: 'patch',
|
||||
});
|
||||
// 解析数据
|
||||
@@ -195,7 +195,7 @@ export async function listNeVersion(query: Record<string, any>) {
|
||||
|
||||
// 发起请求
|
||||
const result = await request({
|
||||
url: `/databaseManagement/v1/select/omc_db/ne_version`,
|
||||
url: `/api/rest/databaseManagement/v1/select/omc_db/ne_version`,
|
||||
method: 'get',
|
||||
params: {
|
||||
totalSQL: totalSQL + querySQL,
|
||||
|
||||
Reference in New Issue
Block a user