feat: 合并Gin_Vue

This commit is contained in:
TsMask
2023-10-16 17:12:24 +08:00
parent 771320a839
commit 743568861d
77 changed files with 734 additions and 1870 deletions

View File

@@ -2,7 +2,6 @@ import {
RESULT_CODE_ERROR,
RESULT_CODE_SUCCESS,
RESULT_MSG_ERROR,
RESULT_MSG_SUCCESS,
} from '@/constants/result-constants';
import { request } from '@/plugins/http-fetch';
import { parseObjLineToHump } from '@/utils/parse-utils';
@@ -15,7 +14,7 @@ import { parseObjLineToHump } from '@/utils/parse-utils';
export async function getOperationSet() {
// 发起请求
const result = await request({
url: `/databaseManagement/v1/omc_db/config`,
url: `/api/rest/databaseManagement/v1/omc_db/config`,
method: 'get',
params: {
SQL: `SELECT * FROM config WHERE config_tag = 'operationSet'`,
@@ -45,7 +44,7 @@ export async function getOperationSet() {
*/
export async function updateOperationSet(data: Record<string, any>) {
const result = await request({
url: `/databaseManagement/v1/omc_db/config?WHERE=config_tag='operationSet'`,
url: `/api/rest/databaseManagement/v1/omc_db/config?WHERE=config_tag='operationSet'`,
method: 'put',
data: { data: { value_json: JSON.stringify(data) } },
});