add 同步ruoyi 新增缓存列表菜单功能

This commit is contained in:
疯狂的狮子li
2022-07-06 14:20:58 +08:00
parent 0ee5fd1ac0
commit c33aa5c969
31 changed files with 581 additions and 146 deletions

View File

@ -0,0 +1,54 @@
package com.ruoyi.system.domain;
import com.ruoyi.common.utils.StringUtils;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;
/**
* 缓存信息
*
* @author Lion Li
*/
@Data
@NoArgsConstructor
@ApiModel("缓存信息")
public class SysCache {
/**
* 缓存名称
*/
@ApiModelProperty(value = "缓存名称")
private String cacheName = "";
/**
* 缓存键名
*/
@ApiModelProperty(value = "缓存键名")
private String cacheKey = "";
/**
* 缓存内容
*/
@ApiModelProperty(value = "缓存内容")
private String cacheValue = "";
/**
* 备注
*/
@ApiModelProperty(value = "备注")
private String remark = "";
public SysCache(String cacheName, String remark) {
this.cacheName = cacheName;
this.remark = remark;
}
public SysCache(String cacheName, String cacheKey, String cacheValue) {
this.cacheName = StringUtils.replace(cacheName, ":", "");
this.cacheKey = StringUtils.replace(cacheKey, cacheName, "");
this.cacheValue = cacheValue;
}
}