Skip to content

Commit

Permalink
🏁 v2.5.3.50
Browse files Browse the repository at this point in the history
1. 将所有服务包括UAA的权限存储,改为本地和认证中心,多级分布式存储和验证。
2. 增加策略模式,支持认证中心权限数据直连和远程消息两种存储方式动态切换。
3. 改进自研多级缓存,解决Hibernate二级缓存进行数据缓存时产生的事务锁问题。
4. 删除无用代码
5. 为动态Scope权限做铺垫。
6. 全面支持方法级权限控制。
  • Loading branch information
herodotus-ecosystem committed Jul 28, 2021
1 parent 94f696e commit 0d33886
Show file tree
Hide file tree
Showing 56 changed files with 713 additions and 375 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<a href="https://nacos.io/zh-cn/index.html" target="_blank"><img src="https://img.shields.io/badge/Nacos-2.0.2-brightgreen" alt="Nacos 2.0.2"></a>
<a href="./LICENSE"><img src="https://img.shields.io/badge/License-Apache--2.0-blue" alt="License Apache 2.0"></a>
<a href="https://blog.csdn.net/Pointer_v" target="_blank"><img src="https://img.shields.io/badge/Author-%E7%A0%81%E5%8C%A0%E5%90%9B-orange" alt="码匠君"></a>
<a href="#" target="_blank"><img src="https://img.shields.io/badge/Version-2.5.3.40-red" alt="Version 2.5.3.40"></a>
<a href="#" target="_blank"><img src="https://img.shields.io/badge/Version-2.5.3.50-red" alt="Version 2.5.3.50"></a>
<a href="https://gitee.com/herodotus/eurynome-cloud"><img src="https://gitee.com/herodotus/eurynome-cloud/badge/star.svg?theme=dark" alt="Gitee star"></a>
<a href="https://gitee.com/herodotus/eurynome-cloud"><img src="https://gitee.com/herodotus/eurynome-cloud/badge/fork.svg?theme=dark" alt="Gitee fork"></a>
</p>
Expand Down
2 changes: 1 addition & 1 deletion configurations/docker/docker-compose/herodotus/.env
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
VERSION=2.5.3.40
VERSION=2.5.3.50
GATEWAY_SERVICE_NAME=eurynome-cloud-gateway
GATEWAY_SERVICE_PORT=8847
UAA_SERVICE_NAME=eurynome-cloud-uaa
Expand Down
2 changes: 1 addition & 1 deletion dependencies/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@

<groupId>cn.herodotus.eurynome</groupId>
<artifactId>dependencies</artifactId>
<version>2.5.3.40</version>
<version>2.5.3.50</version>
<packaging>pom</packaging>

<name>eurynome-cloud-dependencies</name>
Expand Down
4 changes: 2 additions & 2 deletions packages/eurynome-cloud-common/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@
<parent>
<artifactId>packages</artifactId>
<groupId>cn.herodotus.eurynome</groupId>
<version>2.5.3.40</version>
<version>2.5.3.50</version>
</parent>

<artifactId>eurynome-cloud-common</artifactId>
<version>2.5.3.40</version>
<version>2.5.3.50</version>
<packaging>jar</packaging>

<description>结对基础通用的工具类包,此包的定位是放在任何工程中都可以使用,而且尽可能依赖少的存在上下文组件</description>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,24 +14,27 @@
* limitations under the License.
*
* Project Name: eurynome-cloud
* Module Name: eurynome-cloud-data
* File Name: BaseViewEntity.java
* Module Name: eurynome-cloud-common
* File Name: MessageProducer.java
* Author: gengwei.zheng
* Date: 2021/07/07 16:36:07
* Date: 2021/07/28 18:00:28
*/

package cn.herodotus.eurynome.data.base.entity;

import javax.persistence.MappedSuperclass;
package cn.herodotus.eurynome.common.definition;

/**
* <p>Description: 视图类型实体基础类 </p>
* <p>
* 视图只能支持读取,而不支持新增、修改、删除等操作。因此,为了产生比必要的隐患,规避@EntityListeners(AuditingEntityListener.class)注解可能会出现的修改操作。
* <p>Description: 消息队列消息生产者定义 </p>
*
* @author : gengwei.zheng
* @date : 2021/7/7 16:36
* @date : 2021/7/28 18:00
*/
@MappedSuperclass
public abstract class BaseViewEntity extends CommonEntity {
public interface MessageProducer {

/**
* 发送消息
*
* @param topic 消息主题
* @param data 数据
*/
void sendMessage(String topic, String data);
}
4 changes: 2 additions & 2 deletions packages/eurynome-cloud-crud/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@
<parent>
<artifactId>packages</artifactId>
<groupId>cn.herodotus.eurynome</groupId>
<version>2.5.3.40</version>
<version>2.5.3.50</version>
</parent>

<artifactId>eurynome-cloud-crud</artifactId>
<version>2.5.3.40</version>
<version>2.5.3.50</version>
<packaging>jar</packaging>

<dependencies>
Expand Down
4 changes: 2 additions & 2 deletions packages/eurynome-cloud-data/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@
<parent>
<artifactId>packages</artifactId>
<groupId>cn.herodotus.eurynome</groupId>
<version>2.5.3.40</version>
<version>2.5.3.50</version>
</parent>

<artifactId>eurynome-cloud-data</artifactId>
<version>2.5.3.40</version>
<version>2.5.3.50</version>
<packaging>jar</packaging>

<description>数据相关通用代码组件包,包括JPA,Redis,数据实体等相关内容</description>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,18 @@

package cn.herodotus.eurynome.data.base.entity;

import cn.herodotus.eurynome.common.definition.entity.AbstractEntity;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.google.common.base.MoreObjects;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.data.annotation.CreatedDate;
import org.springframework.data.annotation.LastModifiedDate;
import org.springframework.data.jpa.domain.support.AuditingEntityListener;

import javax.persistence.Column;
import javax.persistence.EntityListeners;
import javax.persistence.MappedSuperclass;
import java.util.Date;

/**
* <p> Description : 实体通用属性 </p>
Expand All @@ -34,7 +42,54 @@
* @date : 2020/4/29 16:09
*/
@MappedSuperclass
@EntityListeners(AuditingEntityListener.class)
public abstract class BaseEntity extends CommonEntity {
public abstract class BaseEntity extends AbstractEntity {

@ApiModelProperty(value = "数据创建时间")
@Column(name = "create_time", updatable = false)
@CreatedDate
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private Date createTime = new Date();

@ApiModelProperty(value = "数据更新时间")
@Column(name = "update_time")
@LastModifiedDate
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private Date updateTime = new Date();

@ApiModelProperty(value = "排序值")
@Column(name = "ranking")
private Integer ranking = 0;

public Date getCreateTime() {
return createTime;
}

public void setCreateTime(Date createTime) {
this.createTime = createTime;
}

public Date getUpdateTime() {
return updateTime;
}

public void setUpdateTime(Date updateTime) {
this.updateTime = updateTime;
}

public Integer getRanking() {
return ranking;
}

public void setRanking(Integer ranking) {
this.ranking = ranking;
}

@Override
public String toString() {
return MoreObjects.toStringHelper(this)
.add("createTime", createTime)
.add("updateTime", updateTime)
.add("ranking", ranking)
.toString();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,18 @@

import cn.herodotus.eurynome.common.enums.StatusEnum;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.data.jpa.domain.support.AuditingEntityListener;

import javax.persistence.*;

/**
/**
* <p>Description: 框架基础权限实体通用基础类</p>
*
*
* @author : gengwei.zheng
* @date : 2019/11/25 15:05
*/
@MappedSuperclass
@EntityListeners(AuditingEntityListener.class)
public abstract class BaseSysEntity extends BaseEntity {

@ApiModelProperty(value = "数据状态")
Expand All @@ -47,7 +49,6 @@ public abstract class BaseSysEntity extends BaseEntity {

@ApiModelProperty(value = "版本号")
@Column(name = "reversion")
@OrderBy("reversion asc")
private Integer reversion = 0;

/**
Expand Down

This file was deleted.

Loading

0 comments on commit 0d33886

Please sign in to comment.