import request from '@/utils/request'

/**
 * @data 上传base64图片
 * {uploadKey:'face'，base64File：''}
 * DISHES("dishes", "菜品"),
 * CUST("cust", "人员"),
 * TABLE("table", "餐桌"),
 * FACE("face", "人脸识别"),
 * PLACE("place", "位置信息"),
 * STALL("stall", "档口信息"),
 * SYSTEM("system", "系统"),
 * ANDROID_APK("androidapk", "安卓apk"),
 * ABC_MERCHANT_CERT_FILE("abccertfile", "农行商户证书"),
 * SZRCB_PFX_FILE("szrcbpfxfile", "苏州农商行证书"),
 * ANDROID_MENU_SELECT("androidmenuselect", "菜品识别采集"),
 * EVALUATE("evaluate", "订单评价"),
 * MATERIAL("material", "出入库原料"),
 * SUPPLIER("supplier", "供应商资质信息"),
 * COUPON("coupon", "餐券图片"),
 * QUOTATION("quotation", "报价图片"),
 * BACK_STAFF("backStaff", "后场人员"),
 * DEVICE_LOG("leniu_device_log", "设备文件日志6608和6609专用"),
 * ORDER_PLACE("orderPlace", "下单照片"),
 * DEVICE_LOGINFO("deviceLogInfo", "设备日志上传"),
 * DEVICE_UPDATE_ADMIN("deviceUpdateAdmin", "设备更新"),
 * DEVICE_VIDEO("deviceVideo", "设备操作录像"),
 * DEVICE_PIC("devicePic", "设备操作拍照"),
 * SAMPLE("sample", "留样");
 */
export function uploadBase64(data) {
  return request({
    url: '/smart-canteen/api/v1/sysfile/upload/base64',
    method: 'post',
	// headers: {
	//   "MERCHANT-ID": "378915229716713472" //merchantId
	// },
    data
  })
}

export function uploadImg(data) {
  return request({
    url: '/file/upload',
    method: 'post',
	// headers: {
	//   "MERCHANT-ID": "378915229716713472" //merchantId
	// },
    data
  })
}
