mirror of
https://gitee.com/youlaitech/youlai-mall.git
synced 2024-12-22 12:48:59 +08:00
feat:添加商品类目接口
This commit is contained in:
parent
82446e7f96
commit
85e11ff4c7
@ -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;
|
||||
|
||||
}
|
@ -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
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user