From 693a33f660891c98b8b95490d020c428c5da9871 Mon Sep 17 00:00:00 2001 From: 抓蛙师 <770492966@qq.com> Date: 星期一, 19 九月 2022 21:46:32 +0800 Subject: [PATCH] 完善功能:前端可以配置多排序参数支持依次排序 如:{isAsc:"asc",orderByColumn:"id"} {isAsc:"asc",orderByColumn:"id,createTime"} {isAsc:"asc,desc",orderByColumn:"id,createTime"} 共三种配置方式 --- ruoyi-ui/src/api/system/oss.js | 20 ++++++-------------- 1 files changed, 6 insertions(+), 14 deletions(-) diff --git a/ruoyi-ui/src/api/system/oss.js b/ruoyi-ui/src/api/system/oss.js index e36ef16..7d80026 100644 --- a/ruoyi-ui/src/api/system/oss.js +++ b/ruoyi-ui/src/api/system/oss.js @@ -1,6 +1,6 @@ import request from '@/utils/request' -// 鏌ヨOSS浜戝瓨鍌ㄥ垪琛� +// 鏌ヨOSS瀵硅薄瀛樺偍鍒楄〃 export function listOss(query) { return request({ url: '/system/oss/list', @@ -9,27 +9,19 @@ }) } -// 涓婁紶OSS浜戝瓨鍌� -export function addOss(data) { +// 鏌ヨOSS瀵硅薄鍩轰簬id涓� +export function listByIds(ossId) { return request({ - url: '/system/oss/upload', - method: 'post', - data: data - }) -} - -// 涓嬭浇OSS浜戝瓨鍌� -export function downloadOss(ossId) { - return request({ - url: '/system/oss/download/' + ossId, + url: '/system/oss/listByIds/' + ossId, method: 'get' }) } -// 鍒犻櫎OSS浜戝瓨鍌� +// 鍒犻櫎OSS瀵硅薄瀛樺偍 export function delOss(ossId) { return request({ url: '/system/oss/' + ossId, method: 'delete' }) } + -- Gitblit v1.9.3