소스 검색

add file.js

reghao 1 년 전
부모
커밋
eca4f64e5a
1개의 변경된 파일9개의 추가작업 그리고 0개의 파일을 삭제
  1. 9 0
      src/api/file.js

+ 9 - 0
src/api/file.js

@@ -0,0 +1,9 @@
+import { post } from '@/utils/request'
+
+const diskApi = {
+  ossServerApi: '/api/disk/oss/serverinfo'
+}
+
+export function getServerInfo(channelId) {
+  return post(diskApi.ossServerApi + '?channelId=' + channelId)
+}