package com.example.hotel.controller.admin; import com.example.hotel.bl.admin.AdminService; import com.example.hotel.blImpl.admin.AdminServiceImpl; import com.example.hotel.vo.ResponseVO; import com.example.hotel.vo.UserForm; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; /** * @Author: chenyizong * @Date: 2020-03-04 */ @RestController() @RequestMapping("/api/admin") public class AdminController { @Autowired AdminServiceImpl adminService; @PostMapping("/addManager") public ResponseVO addManager(@RequestBody UserForm userForm){ return adminService.addManager(userForm); } }