mirror of
https://gitee.com/youlaitech/youlai-mall.git
synced 2024-12-23 05:00:25 +08:00
feat:添加首页广告接口
This commit is contained in:
parent
c6337dd31f
commit
553cd348a2
@ -16,12 +16,10 @@
|
||||
<groupId>com.baomidou</groupId>
|
||||
<artifactId>mybatis-plus-boot-starter</artifactId>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>org.springframework.cloud</groupId>
|
||||
<artifactId>spring-cloud-starter-openfeign</artifactId>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>io.github.openfeign</groupId>
|
||||
<artifactId>feign-okhttp</artifactId>
|
||||
|
@ -1,4 +1,4 @@
|
||||
package com.ylmall.sms.api.entity;
|
||||
package com.youlai.mall.sms.api;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
@ -31,4 +31,5 @@ public class SmsAdvert extends BaseEntity {
|
||||
|
||||
private String remark;
|
||||
|
||||
|
||||
}
|
@ -1,11 +1,13 @@
|
||||
package com.youlai.mall.ums.api.entity;
|
||||
|
||||
|
||||
import lombok.Builder;
|
||||
import com.baomidou.mybatisplus.annotation.FieldFill;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import lombok.Data;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
import java.time.LocalDate;
|
||||
import java.util.Date;
|
||||
|
||||
@Data
|
||||
@Accessors(chain = true)
|
||||
|
@ -10,6 +10,7 @@
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<artifactId>mall-ums</artifactId>
|
||||
|
||||
<packaging>pom</packaging>
|
||||
<modules>
|
||||
<module>mall-ums-api</module>
|
||||
|
@ -30,7 +30,6 @@ import java.util.*;
|
||||
public class AuthorizationManager implements ReactiveAuthorizationManager<AuthorizationContext> {
|
||||
|
||||
private RedisTemplate redisTemplate;
|
||||
private WhiteListConfig whiteListConfig;
|
||||
|
||||
@Override
|
||||
public Mono<AuthorizationDecision> check(Mono<Authentication> mono, AuthorizationContext authorizationContext) {
|
||||
@ -66,6 +65,7 @@ public class AuthorizationManager implements ReactiveAuthorizationManager<Author
|
||||
authorities.addAll(Convert.toList(String.class, resourceRolesMap.get(pattern)));
|
||||
}
|
||||
}
|
||||
|
||||
Mono<AuthorizationDecision> authorizationDecisionMono = mono
|
||||
.filter(Authentication::isAuthenticated)
|
||||
.flatMapIterable(Authentication::getAuthorities)
|
||||
|
Loading…
Reference in New Issue
Block a user