import { request } from '@/utils/request'

// 增值服务
export const valueAddedApi = {
  // 维保服务
  getMaintenanceInfo: () => request.get('/value-added/maintenance/info'),
  applyMaintenance: (data: any) => request.post('/value-added/maintenance/apply', data),

  // 投诉与建议
  submitComplaint: (data: any) => request.post('/value-added/complaint', data),
  uploadComplaintImage: (file: File) => {
    const formData = new FormData()
    formData.append('file', file)
    return request.post('/value-added/complaint/upload', formData)
  }
}
