package sgc.portal.cw.cw0804.web;

import org.springframework.web.bind.annotation.*;
import sgc.portal.cw.cw0804.model.CW08040003P;
import sgc.portal.cw.cw0804.service.CW08040003PService;

import java.util.Map;

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

    public CW08040003PController(CW08040003PService service) {
        this.service = service;
    }

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