package sgc.portal.cw.cw0804.web;

import org.springframework.web.bind.annotation.*;
import sgc.portal.cw.cw0804.model.CW08040004P;
import sgc.portal.cw.cw0804.service.CW08040004PService;

import java.util.Map;

@RestController
@RequestMapping("/cw/cw0804")
public class CW08040004PController {
    private final CW08040004PService service;

    public CW08040004PController(CW08040004PService service) {
        this.service = service;
    }

    /**
     * 반복예약
     * @param CW08040004P
     * @return
     */
    @PostMapping("/CW08040004P/save")
    public Map<String, String> save(@RequestBody CW08040004P CW08040004P) {
    	return service.save(CW08040004P);
    }
}
