数据表公共父类和参数校验公共父类
package com.common.platform.sys.base.pojo;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Getter;
import lombok.Setter;
import java.io.Serializable;
import java.util.Date;
@Getter
@Setter
public abstract class BaseEntity implements Serializable{
@TableField(value = "create_time", fill = FieldFill.INSERT)
public Date createTime;
@TableField(value = "update_time", fill = FieldFill.UPDATE)
public Date updateTime;
@TableField(value = "create_user", fill = FieldFill.INSERT)
public Long createUser;
@TableField(value = "update_user", fill = FieldFill.UPDATE)
public Long updateUser;
}
package com.common.platform.sys.base.pojo;
public interface BaseValidatingParam {
String checkParam();
}
缓存标识
package com.common.platform.sys.cache;
public interface Cache {
String CONSTANT = "CONSTANT";
}
package com.common.platform.sys.cache;
public interface CacheKey {
String ROLES_NAME = "roles_name_";
String SINGLE_ROLE_NAME = "single_role_name_";
String SINGLE_ROLE_TIP = "single_role_tip_";
String DEPT_NAME = "dept_name_";
}