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>
|
<groupId>com.baomidou</groupId>
|
||||||
<artifactId>mybatis-plus-boot-starter</artifactId>
|
<artifactId>mybatis-plus-boot-starter</artifactId>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.springframework.cloud</groupId>
|
<groupId>org.springframework.cloud</groupId>
|
||||||
<artifactId>spring-cloud-starter-openfeign</artifactId>
|
<artifactId>spring-cloud-starter-openfeign</artifactId>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>io.github.openfeign</groupId>
|
<groupId>io.github.openfeign</groupId>
|
||||||
<artifactId>feign-okhttp</artifactId>
|
<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.IdType;
|
||||||
import com.baomidou.mybatisplus.annotation.TableId;
|
import com.baomidou.mybatisplus.annotation.TableId;
|
||||||
@ -31,4 +31,5 @@ public class SmsAdvert extends BaseEntity {
|
|||||||
|
|
||||||
private String remark;
|
private String remark;
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
@ -1,11 +1,13 @@
|
|||||||
package com.youlai.mall.ums.api.entity;
|
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.Data;
|
||||||
import lombok.experimental.Accessors;
|
import lombok.experimental.Accessors;
|
||||||
|
|
||||||
import java.time.LocalDate;
|
import java.time.LocalDate;
|
||||||
|
import java.util.Date;
|
||||||
|
|
||||||
@Data
|
@Data
|
||||||
@Accessors(chain = true)
|
@Accessors(chain = true)
|
||||||
|
@ -10,6 +10,7 @@
|
|||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
|
||||||
<artifactId>mall-ums</artifactId>
|
<artifactId>mall-ums</artifactId>
|
||||||
|
|
||||||
<packaging>pom</packaging>
|
<packaging>pom</packaging>
|
||||||
<modules>
|
<modules>
|
||||||
<module>mall-ums-api</module>
|
<module>mall-ums-api</module>
|
||||||
|
@ -30,7 +30,6 @@ import java.util.*;
|
|||||||
public class AuthorizationManager implements ReactiveAuthorizationManager<AuthorizationContext> {
|
public class AuthorizationManager implements ReactiveAuthorizationManager<AuthorizationContext> {
|
||||||
|
|
||||||
private RedisTemplate redisTemplate;
|
private RedisTemplate redisTemplate;
|
||||||
private WhiteListConfig whiteListConfig;
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Mono<AuthorizationDecision> check(Mono<Authentication> mono, AuthorizationContext authorizationContext) {
|
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)));
|
authorities.addAll(Convert.toList(String.class, resourceRolesMap.get(pattern)));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Mono<AuthorizationDecision> authorizationDecisionMono = mono
|
Mono<AuthorizationDecision> authorizationDecisionMono = mono
|
||||||
.filter(Authentication::isAuthenticated)
|
.filter(Authentication::isAuthenticated)
|
||||||
.flatMapIterable(Authentication::getAuthorities)
|
.flatMapIterable(Authentication::getAuthorities)
|
||||||
|
Loading…
Reference in New Issue
Block a user