package com.njcn.kafka.event.controller;

import com.njcn.kafka.event.pojo.param.PushParam;
import com.njcn.kafka.event.service.EventDataService;
import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Description:
 * Date: 2025/05/27  下午 2:56【需求编号】
 *
 * @author clam
 * @version V1.0.0
 */
@Slf4j
@RestController
@RequestMapping("/eventdata")
@AllArgsConstructor
public class EventDataController {
    private final EventDataService eventDataService;
    @PostMapping("/push")
    public void push(@RequestBody PushParam pushParam) throws Exception {
        eventDataService.push(pushParam);
    }
}
