| | |
| | | package com.whyc.controller; |
| | | |
| | | import com.whyc.dto.Response; |
| | | import com.whyc.pojo.DocUser; |
| | | import com.whyc.service.DocUserService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import java.util.List; |
| | | |
| | | @RestController |
| | | @Api(tags = "用户管理") |
| | |
| | | private Response getAllUser(){ |
| | | return service.getAllUser(); |
| | | } |
| | | @ApiOperation(value = "编辑所有用户信息") |
| | | @PostMapping("updateAllUser") |
| | | private Response updateAllUser(@RequestBody DocUser docUser){ |
| | | return service.updateAllUser(docUser); |
| | | } |
| | | @ApiOperation(value = "新添加用户信息") |
| | | @PostMapping("addUser") |
| | | private Response addUser(@RequestBody DocUser docUser){ |
| | | return service.addUser(docUser); |
| | | } |
| | | } |