package com.caliverse.admin.domain.api;

import com.caliverse.admin.domain.request.LogGenericRequest;
import com.caliverse.admin.domain.response.LogResponse;
import com.caliverse.admin.domain.service.LogService;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.RequiredArgsConstructor;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.*;

import java.util.Map;

@Tag(name = "로그", description = "로그 api")
@RestController
@RequiredArgsConstructor
@RequestMapping("/api/v1/log")
public class LogController {
    private final LogService logService;

    @PostMapping("/generic/list")
    public ResponseEntity<LogResponse> genericlist(
            @RequestBody LogGenericRequest logGenericRequest){
        return ResponseEntity.ok().body( logService.genericLogList(logGenericRequest));
    }
}
