doc:sql脚本更新

This commit is contained in:
haoxr 2021-02-05 00:09:30 +08:00
parent fe0d077568
commit b3d79534ea
6 changed files with 5 additions and 32 deletions

View File

@ -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)

View File

@ -1,24 +0,0 @@
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;
}

View File

@ -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)

View File

@ -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>

View File

@ -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>

View File

@ -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);
}