提交 b3d79534 编写于 作者: H haoxr

doc:sql脚本更新

上级 fe0d0775
......@@ -16,7 +16,6 @@ import java.util.List;
*/
@Data
@JsonInclude(JsonInclude.Include.NON_EMPTY)
@TableName(value = "sys_menu_test")
public class SysMenu extends BaseEntity {
@TableId(type = IdType.AUTO)
......
package com.youlai.admin.pojo.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.youlai.common.core.base.BaseEntity;
import lombok.Data;
import lombok.experimental.Accessors;
import java.util.List;
@Data
@Accessors(chain = true)
public class SysResource extends BaseEntity {
@TableId(type = IdType.AUTO)
private Long id;
private String name;
private String url;
// 拥有资源权限角色ID集合
@TableField(exist = false)
private List<Integer> roleIds;
}
......@@ -10,7 +10,6 @@ import lombok.Data;
import java.util.List;
@Data
@TableName(value = "sys_role_test")
public class SysRole extends BaseEntity {
@TableId(type= IdType.AUTO)
......
......@@ -152,13 +152,13 @@
<version>1.0.0</version>
<executions>
<!--执行mvn package,即执行 mvn clean package docker:build-->
<execution>
<!--<execution>
<id>build-image</id>
<phase>package</phase>
<goals>
<goal>build</goal>
</goals>
</execution>
</execution>-->
</executions>
<configuration>
......
......@@ -93,7 +93,7 @@
<version>1.0.0</version>
<executions>
<!--执行mvn package,即执行 mvn clean package docker:build-->
<!-- <execution>
<!--<execution>
<id>build-image</id>
<phase>package</phase>
<goals>
......
......@@ -53,9 +53,8 @@ public class AuthGlobalFilter implements GlobalFilter, Ordered {
ServerHttpResponse response = exchange.getResponse();
// 演示环境禁止删除和修改
if (isDemoEnvironment && (HttpMethod.PUT.toString().equals(request.getMethodValue()) ||
HttpMethod.DELETE.toString().equals(request.getMethodValue())
)) {
if (isDemoEnvironment &&
HttpMethod.DELETE.toString().equals(request.getMethodValue())) {
log.warn(ResultCode.FORBIDDEN_OPERATION.getMsg());
return WebUtils.writeFailedToResponse(response, ResultCode.FORBIDDEN_OPERATION);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册