| | |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.io.IOException; |
| | | import java.text.ParseException; |
| | | import java.util.*; |
| | | import java.util.stream.Collectors; |
| | | |
| | |
| | | throw new BadRequestException("角色权限不足"); |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 获取用户日历信息 |
| | | * @param month |
| | | * @return |
| | | * @throws Exception |
| | | */ |
| | | @GetMapping(value = "/getUserCalendarInfo/{month}") |
| | | @Log("获取用户日历信息") |
| | | @ApiOperation("获取用户日历信息") |
| | | public ResponseEntity<Object> getUserCalendarInfo(@PathVariable String month) throws Exception { |
| | | return new ResponseEntity<>(userService.getUserCalendarInfo(month), HttpStatus.OK); |
| | | } |
| | | |
| | | @GetMapping(value = "/getUserBaseInfo/{yearMonth}") |
| | | @Log("获取用户基础信息") |
| | | @ApiOperation("获取用户日历信息") |
| | | public ResponseEntity<Object> getUserBaseInfo(@PathVariable Date yearMonth) throws ParseException { |
| | | return new ResponseEntity<>(userService.getUserBaseInfo(yearMonth), HttpStatus.OK); |
| | | } |
| | | |
| | | @GetMapping(value = "/getUserInfose") |
| | | @Log("查询用户信息") |
| | | @ApiOperation("查询用户信息") |
| | | public ResponseEntity<Object> getUserInfos() { |
| | | return new ResponseEntity<>(userService.getUserInfose(), HttpStatus.OK); |
| | | } |
| | | } |