mirror of
https://gitee.com/youlaitech/youlai-mall.git
synced 2024-12-23 05:00:25 +08:00
doc:sql脚本更新
This commit is contained in:
parent
fe0d077568
commit
b3d79534ea
@ -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)
|
||||
|
@ -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;
|
||||
}
|
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user