import _axios from "@/utils/request";
export default {
  // 画家列表
  artistList: (data) => _axios.fetch("/artist/list", data, "POST"),
  artistBaseInfoList: (data) =>
    _axios.fetch("/artist/base-info-list", data, "POST"),
  // 创建画家基本信息
  artistCreate: (data) => _axios.fetch("/artist/add", data, "POST"),
  // 更新画家基本信息
  artistUpdate: (data) => _axios.fetch("/artist/edit", data, "PUT"),
  // 更新画家指数
  artistIndexsUpdate: (data) => _axios.fetch("/artist/indexs", data, "PUT"),
  // 更新图片资料
  artistMediaUpdate: (data) => _axios.fetch("/artist/media", data, "PUT"),
  // 更新个人荣誉
  artistHonorUpdate: (data) => _axios.fetch("/artist/honor", data, "PUT"),
  // 删除个人荣誉
  artistHonorDel: (data) => _axios.fetch("/artist/honor-del", data, "DELETE"),
  // 更新合同
  artistContractUpdate: (data) => _axios.fetch("/artist/contract", data, "PUT"),
  // 新增合同
  artistContractAdd: (data) =>
    _axios.fetch("/artist/contract-add", data, "POST"),
  // 合同列表
  artistContractList: (data) =>
    _axios.fetch("/artist/contract-list", data, "POST"),
  // 画家详情
  artistDetail: (data) => _axios.fetch("/artist/detail", data, "POST"),
  // 删除画家
  artistDel: (data) => _axios.fetch("/artist/del", data, "DELETE"),
  // 邀请函列表
  artistInviteList: (data) =>
    _axios.fetch("/artist/invitation-list", data, "POST"),
  // 添加画家邀请
  artistInviteAdd: (data) =>
    _axios.fetch("/artist/invitation-add", data, "POST"),
  // 修改邀请
  artistInviteUpdate: (data) =>
    _axios.fetch("/artist/invitation-update", data, "POST"),
  // 删除邀请
  artistInviteDel: (data) =>
    _axios.fetch("/artist/invitation-del", data, "POST"),
  // 导出画家基本信息
  artistExcel: (data) => _axios.fetch("/artist/list-export", data, "POST"),
  // 导出画家图片等资源
  artistExport: (data) => _axios.fetch("/artist/download", data, "POST"),
  // 导出字段
  getFieldList: (data) =>
    _axios.fetch("/artist/export-field-list", data, "POST"),
  // 画家画展
  getArtshowList: (data) => _axios.fetch("/artshow/artist/list", data, "POST"),
  // 上传身份证图片获取身份证信息
  getCardInfo: (data) =>
    _axios.fetch("/artist/get-cardid-withimg", data, "POST"),
  // 删除合同单页数据
  delContract: (data) => _axios.fetch("/artist/del-contract", data, "POST"),
  // 画家姓名-编号-uuid搜索
  searchName: (data) => _axios.fetch("/artist/idname", data, "POST"),
  // 发送指数
  sendIndexs: (data) => _axios.fetch("/artist/send-indexes", data, "POST"),
  // 指数历史数据
  indexsLog: (data) => _axios.fetch("/artist/indexes-log", data, "POST"),
  // 邀请函详情
  inviteDetail: (data) =>
    _axios.fetch("/artist/invitation-detail", data, "POST"),
};
