package kr.co.accura.wtm.api;

import lombok.RequiredArgsConstructor;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;

import java.util.Map;

@RestController
@RequestMapping("/api/wtm/integration/hr")
@RequiredArgsConstructor
public class HrIntegrationController {

    @PostMapping("/upload")
    public ResponseEntity<Map<String, String>> upload(@RequestParam("file") MultipartFile file) {
        // TODO: Implement HR data upload from Excel/CSV
        return ResponseEntity.ok(Map.of("message", "HR sync not yet implemented"));
    }

    @PostMapping("/sync")
    public ResponseEntity<Map<String, String>> sync(@RequestBody Map<String, Object> request) {
        // TODO: Implement HR system sync (SAP, etc.)
        return ResponseEntity.ok(Map.of("message", "HR sync not yet implemented"));
    }
}
