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

@@ -5,9 +5,7 @@ import { request } from '@/plugins/http-fetch';
* @param query 查询参数
* @returns bolb
*/
export function exportConfig(
query: Record<string, any>
) {
export function exportConfig(query: Record<string, any>) {
return request({
url: '/system/config/export',
method: 'post',
@@ -23,7 +21,7 @@ export function exportConfig(
*/
export function listConfig(query: Record<string, any>) {
return request({
url: '/configManage/v1/configs',
url: '/system/config/list',
method: 'get',
params: query,
});
@@ -36,7 +34,7 @@ export function listConfig(query: Record<string, any>) {
*/
export function getConfig(configId: string | number) {
return request({
url: `/configManage/v1/config/${configId}`,
url: `/system/config/${configId}`,
method: 'get',
});
}
@@ -48,7 +46,7 @@ export function getConfig(configId: string | number) {
*/
export function getConfigKey(configKey: string) {
return request({
url: `/configManage/v1/config/${configKey}`,
url: `/system/config/configKey/${configKey}`,
method: 'get',
});
}
@@ -60,7 +58,7 @@ export function getConfigKey(configKey: string) {
*/
export function addConfig(data: Record<string, any>) {
return request({
url: '/configManage/v1/config',
url: '/system/config',
method: 'post',
data: data,
});
@@ -73,7 +71,7 @@ export function addConfig(data: Record<string, any>) {
*/
export function updateConfig(data: Record<string, any>) {
return request({
url: '/configManage/v1/config',
url: '/system/config',
method: 'put',
data: data,
});
@@ -86,7 +84,7 @@ export function updateConfig(data: Record<string, any>) {
*/
export function delConfig(configId: string | number) {
return request({
url: `/configManage/v1/config/${configId}`,
url: `/system/config/${configId}`,
method: 'delete',
});
}
@@ -97,7 +95,7 @@ export function delConfig(configId: string | number) {
*/
export function refreshCache() {
return request({
url: '/configManage/v1/config/refreshCache',
url: '/system/config/refreshCache',
method: 'put',
});
}