/*
 * @Author: 半生瓜 1515706227@qq.com
 * @Date: 2024-05-07 10:39:27
 * @LastEditors: 半生瓜 1515706227@qq.com
 * @LastEditTime: 2024-05-13 20:58:53
 * @FilePath: \vue-element-plus-admin-mini\src\api\table\index.ts
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import request from '@/axios'

//资源管理分页接口
export const getResource = (params: any) => {
  params.page = params.page - 1
  return request.post({ url: '/resource/manage/pageQuery', params })
}

//上传资源图标接口
export const upIcon = (params: any) => {
  return request.post({ url: '/resource/manage/uploadImg', params })
}

//保存模板接口
export const saveResource = (params: any) => {
  return request.post({ url: '/resource/manage/save', data: params })
}
//删除资源接口
export const deleteResource = (params: any) => {
  return request.post({ url: '/resource/manage/delete', params })
}
