package thyyxxk.webserver.controller.examinations; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.*; import thyyxxk.webserver.entity.ResultVo; import thyyxxk.webserver.entity.examinations.bookablemanage.SearchParam; import thyyxxk.webserver.service.examinations.BookableManageService; import java.util.Map; /** * @author: DingJie * @create: 2021-04-25 11:32:57 **/ @RestController @RequestMapping("/bookableManage") public class BookableManageController { private final BookableManageService service; @Autowired public BookableManageController(BookableManageService service) { this.service = service; } @PostMapping("/searchItems") public ResultVo> searchItems(@RequestBody SearchParam param) { return service.searchItems(param); } @GetMapping("/updateWxBookableFlag") public ResultVo updateWxBookableFlag(@RequestParam("tableName") String tableName, @RequestParam("code") String code, @RequestParam("flag") Integer flag) { return service.updateWxBookableFlag(tableName, code, flag); } }