| | |
| | | package com.yssh.controller; |
| | | |
| | | import com.yssh.utils.CacheUtils; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiImplicitParam; |
| | | import io.swagger.annotations.ApiOperation; |
| | | |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | |
| | | import org.springframework.web.bind.annotation.DeleteMapping; |
| | |
| | | } |
| | | return Result.OK("删除成功"); |
| | | } |
| | | |
| | | @ApiOperationSupport(order = 6) |
| | | @ApiOperation(value = "清除缓存", notes = "清除缓存") |
| | | @GetMapping("/clearCache") |
| | | public Result clearCache() { |
| | | CacheUtils.clear(); |
| | | |
| | | return Result.OK("success."); |
| | | } |
| | | } |