package com.openhis.web.appointmentmanage.controller;


import com.core.common.core.domain.R;
import com.openhis.appointmentmanage.domain.SchedulePool;
import com.openhis.web.appointmentmanage.appservice.ISchedulePoolAppService;
import com.openhis.web.appointmentmanage.dto.SchedulePoolDto;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/schedule-pool")
public class SchedulePoolController {
    @Resource
    private ISchedulePoolAppService schedulePoolAppService;

    /*
     * 新增号源
     *
     * */
    public R<?> addSchedulePool(@RequestBody SchedulePoolDto schedulePoolDto) {
        return R.ok(schedulePoolAppService.addSchedulePool(schedulePoolDto));
    }

}
