新增:清除缓存功能
This commit is contained in:
@@ -161,6 +161,18 @@ public class WebsiteController extends BaseController {
|
|||||||
return success(website);
|
return success(website);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ApiOperation("清除缓存")
|
||||||
|
@DeleteMapping("/clearSiteInfo/{key}")
|
||||||
|
public ApiResult<?> clearSiteInfo(@PathVariable("key") String key) {
|
||||||
|
System.out.println("key = " + key);
|
||||||
|
final String siteInfo = redisUtil.get(key);
|
||||||
|
if(StrUtil.isNotBlank(siteInfo)){
|
||||||
|
redisUtil.delete(key);
|
||||||
|
return success("清除成功");
|
||||||
|
}
|
||||||
|
return success("清除失败");
|
||||||
|
}
|
||||||
|
|
||||||
@ApiOperation("分页查询网站信息记录表")
|
@ApiOperation("分页查询网站信息记录表")
|
||||||
@GetMapping("/page")
|
@GetMapping("/page")
|
||||||
public ApiResult<PageResult<Website>> page(WebsiteParam param) {
|
public ApiResult<PageResult<Website>> page(WebsiteParam param) {
|
||||||
|
|||||||
@@ -40,9 +40,12 @@ public class Design implements Serializable {
|
|||||||
@ApiModelProperty(value = "页面描述")
|
@ApiModelProperty(value = "页面描述")
|
||||||
private String description;
|
private String description;
|
||||||
|
|
||||||
@ApiModelProperty(value = "页面路由地址")
|
@ApiModelProperty(value = "路由地址")
|
||||||
private String path;
|
private String path;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "组件路径")
|
||||||
|
private String component;
|
||||||
|
|
||||||
@ApiModelProperty(value = "缩列图")
|
@ApiModelProperty(value = "缩列图")
|
||||||
private String photo;
|
private String photo;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user