feat:添加商品类目接口

This commit is contained in:
haoxr 2020-11-02 20:04:33 +08:00
parent 82446e7f96
commit 85e11ff4c7
3 changed files with 31 additions and 1 deletions

View File

@ -0,0 +1,28 @@
package com.youlai.mall.pms.vo;
import lombok.Data;
import java.util.List;
@Data
public class PmsCategoryVO {
private Long id;
private String name;
private Long parentId;
private Integer level;
private String icon;
private Integer sort;
private String unit;
private Integer status;
private List<PmsCategoryVO> children;
}

View File

@ -7,6 +7,7 @@ import com.youlai.gateway.component.AuthorizationManager;
import com.youlai.gateway.component.CustomServerAuthenticationEntryPoint;
import com.youlai.gateway.component.CustomServerAccessDeniedHandler;
import lombok.AllArgsConstructor;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.core.convert.converter.Converter;
@ -52,7 +53,7 @@ public class ResourceServerConfig {
}
/**
* @linkhttps://blog.csdn.net/qq_24230139/article/details/105091273
* @link https://blog.csdn.net/qq_24230139/article/details/105091273
* ServerHttpSecurity没有将jwt中authorities的负载部分当做Authentication
* 需要把jwt的Claim中的authorities加入
* 方案重新定义ReactiveAuthenticationManager权限管理器默认转换器JwtGrantedAuthoritiesConverter

View File

@ -2,6 +2,7 @@ package com.youlai.gateway.config;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.context.annotation.Configuration;
import java.util.List;