赞
踩
目录
- package com.project.demo.controller;
-
- import com.project.demo.entity.TeacherSchedule;
- import com.project.demo.service.TeacherScheduleService;
- import com.project.demo.controller.base.BaseController;
- import org.springframework.beans.factory.annotation.Autowired;
- import org.springframework.transaction.annotation.Transactional;
- import org.springframework.web.bind.annotation.*;
-
- import javax.persistence.Query;
- import javax.servlet.http.HttpServletRequest;
- import java.io.IOException;
- import java.util.HashMap;
- import java.util.List;
- import java.util.Map;
-
-
- /**
- *教师课表:(TeacherSchedule)表控制层
- *
- */
- @RestController
- @RequestMapping("/teacher_schedule")
- public class TeacherScheduleController extends BaseController<TeacherSchedule,TeacherScheduleService> {
-
- /**
- *教师课表对象
- */
- @Autowired
- public TeacherScheduleController(TeacherScheduleService service) {
- setService(service);
- }
-
- @PostMapping("/add")
- @Transactional
- public Map<String, Object> add(HttpServletRequest request) throws IOException {
- Map<String,Object> paramMap = service.readBody(request.getReader());
- this.addMap(paramMap);
- return success(1);
- }
-
- }
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。