重构接口方法和对接账户管理接口

This commit is contained in:
ah--desktop
2025-10-15 23:02:07 +08:00
parent 64ad74c15c
commit 3354f154b1
47 changed files with 625 additions and 382 deletions
@@ -31,8 +31,8 @@
<script setup lang="ts">
import { ref, watch } from 'vue'
import { Modal, Form, Input, message } from 'ant-design-vue'
import { updateFileApi } from '#/api/media'
import type { FileDTO, FileVO } from '#/api/media/types'
import { updateFileApi } from '#/api/media/file'
import type { FileDTO, FileVO } from '#/api/media/file/types'
defineOptions({ name: 'FileEditModal' })
@@ -28,8 +28,8 @@ import {
batchUploadFilesApi,
deleteFileApi,
getFilePageApi,
} from '#/api/media';
import type { FileVO, FileDTO } from '#/api/media/types';
} from '#/api/media/file';
import type { FileVO, FileDTO } from '#/api/media/file/types';
import type { PageQueryDTO } from '#/types/common';
defineOptions({ name: 'FileRepository' });
@@ -39,7 +39,6 @@ const loading = ref(false);
const fileList = ref<FileVO.Info[]>([]);
const total = ref(0);
const current = ref(1);
const pageSize = ref(20);
const editModalVisible = ref(false);
const currentFileData = ref<FileVO.Info | null>(null);
const uploadLoading = ref(false);
@@ -1,7 +1,7 @@
<script lang="ts" setup>
import { Card, Image, Tag, Button, Space, Popconfirm } from 'ant-design-vue';
import { createIconifyIcon } from '@vben/icons';
import type { ImageVO } from '#/api/media/types';
import type { ImageVO } from '#/api/media/image/types';
// 创建图标组件
const DownloadIcon = createIconifyIcon('lucide:download');
@@ -31,8 +31,8 @@
<script setup lang="ts">
import { ref, watch } from 'vue'
import { Modal, Form, Input, message } from 'ant-design-vue'
import { updateImageApi } from '#/api/media'
import type { ImageDTO, ImageVO } from '#/api/media/types'
import { updateImageApi } from '#/api/media/image'
import type { ImageDTO, ImageVO } from '#/api/media/image/types'
defineOptions({ name: 'ImageEditModal' })
@@ -101,8 +101,8 @@
import { ref, watch } from 'vue'
import { Form, Input, Select, Button, Space, Row, Col, Pagination, Upload, message } from 'ant-design-vue'
import { createIconifyIcon } from '@vben/icons'
import { getImagePageApi, uploadImageApi, batchUploadImagesApi } from '#/api/media'
import type { ImageVO, ImageDTO } from '#/api/media/types'
import { getImagePageApi, uploadImageApi, batchUploadImagesApi } from '#/api/media/image'
import type { ImageVO, ImageDTO } from '#/api/media/image/types'
import type { PageQueryDTO } from '#/types/common'
import ImageCard from './ImageCard.vue'
@@ -12,8 +12,8 @@ import {
batchUploadImagesApi,
deleteImageApi,
getImagePageApi,
} from '#/api/media';
import type { ImageVO, ImageDTO } from '#/api/media/types';
} from '#/api/media/image';
import type { ImageVO, ImageDTO } from '#/api/media/image/types';
import type { PageQueryDTO } from '#/types/common';
import ImageEditModal from './components/ImageEditModal.vue';
import ImageGridView from './components/ImageGridView.vue';