package sgc.portal.cw.cw0804.web;

import org.springframework.web.bind.annotation.*;
import sgc.portal.cw.cw0804.model.CW08040005P;
import sgc.portal.cw.cw0804.service.CW08040005PService;

import java.util.Map;

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

    public CW08040005PController(CW08040005PService service) {
        this.service = service;
    }

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