package thyyxxk.webserver.controller.zhuyuanyizheng;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import thyyxxk.webserver.entity.ResultVo;
import thyyxxk.webserver.entity.dictionary.CodeName;
import thyyxxk.webserver.service.zhuyuanyisheng.YiZhuPublicService;

import java.util.List;

@RestController
@RequestMapping("/residentDoctor")
public class ResidentDoctorController {

    private final YiZhuPublicService server;

    public ResidentDoctorController(YiZhuPublicService server) {
        this.server = server;
    }

    @GetMapping("/getAllWards")
    public ResultVo<List<CodeName>> getAllWards() {
        return server.getAllWards();
    }

}
