import request from '@/config/axios' // 博物馆照片 VO export interface PhotosVO { id: number // 主键 groupId: number // 照片组表id photoUrl: string // 照片存储路径 createdAt: Date // 上传时间 } // 博物馆照片 API export const PhotosApi = { // 查询博物馆照片分页 getPhotosPage: async (params: any) => { return await request.get({ url: `/photos-manage/photos/photos`, params }) }, // 查询博物馆照片详情 getPhotos: async (id: number) => { return await request.get({ url: `/photos-manage/photos/get?id=` + id }) }, // 新增博物馆照片 createPhotos: async (data: PhotosVO) => { return await request.post({ url: `/photos-manage/photos/create`, data }) }, // 修改博物馆照片 updatePhotos: async (data: PhotosVO) => { return await request.put({ url: `/photos-manage/photos/update`, data }) }, // 删除博物馆照片 deletePhotos: async (id: number) => { return await request.delete({ url: `/photos-manage/photos/delete?id=` + id }) }, // 导出博物馆照片 Excel exportPhotos: async (params) => { return await request.download({ url: `/photos-manage/photos/export-excel`, params }) } // getImageDetail : async (id ?: string ): Promise => { // return await request.get({ url: '/photos-manage/photo-group/get?id=' + id }) // } }