package sgc.portal.cw.cw1502.web;

import org.springframework.web.bind.annotation.*;
import sgc.portal.cw.cw1502.model.CW15020002P;
import sgc.portal.cw.cw1502.service.CW15020002PService;

import java.text.ParseException;
import java.util.Map;

@RestController
@RequestMapping("/cw/cw1502")
public class CW15020002PController {
    private final CW15020002PService service;

    public CW15020002PController(CW15020002PService service) {
        this.service = service;
    }

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