feat:添加首页广告接口

This commit is contained in:
haoxr 2020-10-24 23:43:02 +08:00
parent c6337dd31f
commit 553cd348a2
5 changed files with 7 additions and 5 deletions

View File

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

View File

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

View File

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

View File

@ -10,6 +10,7 @@
<modelVersion>4.0.0</modelVersion>
<artifactId>mall-ums</artifactId>
<packaging>pom</packaging>
<modules>
<module>mall-ums-api</module>

View File

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