fix: 替换字典数据接口

This commit is contained in:
TsMask
2023-09-06 11:33:13 +08:00
parent a07ad1ade2
commit e30d7757c4
5 changed files with 28 additions and 28 deletions

View File

@@ -21,7 +21,7 @@ export function exportData(query: Record<string, any>) {
*/
export function listData(query: Record<string, any>) {
return request({
url: '/system/dict/data/list',
url: '/dictDataManage/v1/dictDatas',
method: 'get',
params: query,
});
@@ -34,7 +34,7 @@ export function listData(query: Record<string, any>) {
*/
export function getData(dictCode: string | number) {
return request({
url: `/system/dict/data/${dictCode}`,
url: `/dictDataManage/v1/dictData/${dictCode}`,
method: 'get',
});
}
@@ -46,7 +46,7 @@ export function getData(dictCode: string | number) {
*/
export function addData(data: Record<string, any>) {
return request({
url: '/system/dict/data',
url: '/dictDataManage/v1/dictData',
method: 'post',
data: data,
});
@@ -59,7 +59,7 @@ export function addData(data: Record<string, any>) {
*/
export function updateData(data: Record<string, any>) {
return request({
url: '/system/dict/data',
url: '/dictDataManage/v1/dictData',
method: 'put',
data: data,
});
@@ -72,7 +72,7 @@ export function updateData(data: Record<string, any>) {
*/
export function delData(dictCode: string | number) {
return request({
url: `/system/dict/data/${dictCode}`,
url: `/dictDataManage/v1/dictData/${dictCode}`,
method: 'delete',
});
}
@@ -84,7 +84,7 @@ export function delData(dictCode: string | number) {
*/
export function getDictDataType(dictType: string) {
return request({
url: `/system/dict/data/type/${dictType}`,
url: `/dictDataManage/v1/dictData/type/${dictType}`,
method: 'get',
});
}

View File

@@ -21,7 +21,7 @@ export function exportType(query: Record<string, any>) {
*/
export function listType(query: Record<string, any>) {
return request({
url: '/system/dict/type/list',
url: '/dictTypegManage/v1/dictTypes',
method: 'get',
params: query,
});
@@ -34,7 +34,7 @@ export function listType(query: Record<string, any>) {
*/
export function getType(dictId: string | number) {
return request({
url: `/system/dict/type/${dictId}`,
url: `/dictTypegManage/v1/dictType/${dictId}`,
method: 'get',
});
}
@@ -46,7 +46,7 @@ export function getType(dictId: string | number) {
*/
export function addType(data: Record<string, any>) {
return request({
url: '/system/dict/type',
url: '/dictTypegManage/v1/dictType',
method: 'post',
data: data,
});
@@ -59,7 +59,7 @@ export function addType(data: Record<string, any>) {
*/
export function updateType(data: Record<string, any>) {
return request({
url: '/system/dict/type',
url: '/dictTypegManage/v1/dictType',
method: 'put',
data: data,
});
@@ -72,7 +72,7 @@ export function updateType(data: Record<string, any>) {
*/
export function delType(dictId: string | number) {
return request({
url: `/system/dict/type/${dictId}`,
url: `/dictTypegManage/v1/dictType/${dictId}`,
method: 'delete',
});
}
@@ -84,7 +84,7 @@ export function delType(dictId: string | number) {
*/
export function refreshCache() {
return request({
url: '/system/dict/type/refreshCache',
url: '/dictTypegManage/v1/dictType/refreshCache',
method: 'put',
});
}
@@ -96,7 +96,7 @@ export function refreshCache() {
*/
export function getDictOptionselect() {
return request({
url: '/system/dict/type/getDictOptionselect',
url: '/dictTypegManage/v1/dictTypes/optionselect',
method: 'get',
});
}