mirror of
https://github.com/m-xlsea/ruoyi-plus-soybean.git
synced 2025-09-24 07:49:47 +08:00
Merge remote-tracking branch 'origin/ruoyi' into ruoyi
This commit is contained in:
@ -43,6 +43,14 @@ export function fetchBatchDeleteConfig(configIds: CommonType.IdType[]) {
|
||||
});
|
||||
}
|
||||
|
||||
/** 根据Key获取值 */
|
||||
export function fetchGetConfigByKey(configKey: string) {
|
||||
return request<string>({
|
||||
url: `/system/config/configKey/${configKey}`,
|
||||
method: 'get'
|
||||
});
|
||||
}
|
||||
|
||||
/** 刷新缓存 */
|
||||
export function fetchRefreshCache() {
|
||||
return request<boolean>({
|
||||
|
18
src/service/api/system/oss.ts
Normal file
18
src/service/api/system/oss.ts
Normal file
@ -0,0 +1,18 @@
|
||||
import { request } from '@/service/request';
|
||||
|
||||
/** 获取文件管理列表 */
|
||||
export function fetchGetOssList(params?: Api.System.OssSearchParams) {
|
||||
return request<Api.System.OssList>({
|
||||
url: '/resource/oss/list',
|
||||
method: 'get',
|
||||
params
|
||||
});
|
||||
}
|
||||
|
||||
/** 批量删除文件管理 */
|
||||
export function fetchBatchDeleteOss(ossIds: CommonType.IdType[]) {
|
||||
return request<boolean>({
|
||||
url: `/resource/oss/${ossIds.join(',')}`,
|
||||
method: 'delete'
|
||||
});
|
||||
}
|
Reference in New Issue
Block a user