From 3b85b8bd40f8582283822c4aba0f4944dacc6e4e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E6=97=AD?= <2795210596@qq.com> Date: Sun, 13 Apr 2025 17:42:09 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0app=E7=AB=AF=E6=90=9C?= =?UTF-8?q?=E7=B4=A2=E7=90=83=E6=9D=86=E5=95=86=E5=93=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tmerclub-common/pom.xml | 1 + tmerclub-common/tmerclub-common-loacl/pom.xml | 24 +++++++++ .../common/local/dto/CueProductSearchDTO.java | 24 +++++++++ .../common/local/vo/CueBrandSearchVO.java | 26 ++++++++++ .../common/local/vo/CueProductSearchVO.java | 52 +++++++++++++++++++ .../common/local/vo/CueSeriesSearchVO.java | 23 ++++++++ .../common/local/vo/CueTypeSearchVO.java | 26 ++++++++++ .../adapter/DefaultAuthConfigAdapter.java | 2 + 8 files changed, 178 insertions(+) create mode 100644 tmerclub-common/tmerclub-common-loacl/pom.xml create mode 100644 tmerclub-common/tmerclub-common-loacl/src/main/java/com/tmerclub/cloud/common/local/dto/CueProductSearchDTO.java create mode 100644 tmerclub-common/tmerclub-common-loacl/src/main/java/com/tmerclub/cloud/common/local/vo/CueBrandSearchVO.java create mode 100644 tmerclub-common/tmerclub-common-loacl/src/main/java/com/tmerclub/cloud/common/local/vo/CueProductSearchVO.java create mode 100644 tmerclub-common/tmerclub-common-loacl/src/main/java/com/tmerclub/cloud/common/local/vo/CueSeriesSearchVO.java create mode 100644 tmerclub-common/tmerclub-common-loacl/src/main/java/com/tmerclub/cloud/common/local/vo/CueTypeSearchVO.java diff --git a/tmerclub-common/pom.xml b/tmerclub-common/pom.xml index 241a5ad..e73240e 100644 --- a/tmerclub-common/pom.xml +++ b/tmerclub-common/pom.xml @@ -24,6 +24,7 @@ tmerclub-common-mongodb tmerclub-common-leaf tmerclub-common-sharding-proxy + tmerclub-common-loacl diff --git a/tmerclub-common/tmerclub-common-loacl/pom.xml b/tmerclub-common/tmerclub-common-loacl/pom.xml new file mode 100644 index 0000000..282b182 --- /dev/null +++ b/tmerclub-common/tmerclub-common-loacl/pom.xml @@ -0,0 +1,24 @@ + + + + tmerclub-common + com.moyuer.cloud + 0.0.1 + + 4.0.0 + + tmerclub-common-loacl + jar + tmerclub 本地生活相关代码 + + + + + com.moyuer.cloud + tmerclub-common-core + ${project.version} + + + \ No newline at end of file diff --git a/tmerclub-common/tmerclub-common-loacl/src/main/java/com/tmerclub/cloud/common/local/dto/CueProductSearchDTO.java b/tmerclub-common/tmerclub-common-loacl/src/main/java/com/tmerclub/cloud/common/local/dto/CueProductSearchDTO.java new file mode 100644 index 0000000..c4990af --- /dev/null +++ b/tmerclub-common/tmerclub-common-loacl/src/main/java/com/tmerclub/cloud/common/local/dto/CueProductSearchDTO.java @@ -0,0 +1,24 @@ +package com.tmerclub.cloud.common.local.dto; + +import lombok.Data; + +import java.io.Serial; +import java.io.Serializable; + +/** + * 本地生活-球杆商品搜索入参业务对象 + * + * @author: frank + * @create: 2025-04-12 + **/ +@Data +public class CueProductSearchDTO implements Serializable { + @Serial + private static final long serialVersionUID = 1L; + + /** + * 商品名称 + */ + private String productName; + +} diff --git a/tmerclub-common/tmerclub-common-loacl/src/main/java/com/tmerclub/cloud/common/local/vo/CueBrandSearchVO.java b/tmerclub-common/tmerclub-common-loacl/src/main/java/com/tmerclub/cloud/common/local/vo/CueBrandSearchVO.java new file mode 100644 index 0000000..76e028c --- /dev/null +++ b/tmerclub-common/tmerclub-common-loacl/src/main/java/com/tmerclub/cloud/common/local/vo/CueBrandSearchVO.java @@ -0,0 +1,26 @@ +package com.tmerclub.cloud.common.local.vo; + +import io.swagger.v3.oas.annotations.media.Schema; +import lombok.Data; + +import java.io.Serial; +import java.io.Serializable; +import java.util.Date; + +/** + * 球杆品牌视图 + * + * @author: frank + * @create: 2025-04-12 + **/ +@Data +public class CueBrandSearchVO implements Serializable { + @Serial + private static final long serialVersionUID = 1L; + + @Schema(description = "品牌名称") + private String brandName; + + @Schema(description = "品牌Logo") + private String brandLogo; +} diff --git a/tmerclub-common/tmerclub-common-loacl/src/main/java/com/tmerclub/cloud/common/local/vo/CueProductSearchVO.java b/tmerclub-common/tmerclub-common-loacl/src/main/java/com/tmerclub/cloud/common/local/vo/CueProductSearchVO.java new file mode 100644 index 0000000..6978cbe --- /dev/null +++ b/tmerclub-common/tmerclub-common-loacl/src/main/java/com/tmerclub/cloud/common/local/vo/CueProductSearchVO.java @@ -0,0 +1,52 @@ +package com.tmerclub.cloud.common.local.vo; + +import io.swagger.v3.oas.annotations.media.Schema; +import lombok.Data; + +import java.io.Serial; +import java.io.Serializable; + +/** + * 本地生活-球杆商品搜索出参视图对象 + * + * @author: frank + * @create: 2025-04-12 + **/ +@Data +public class CueProductSearchVO implements Serializable { + @Serial + private static final long serialVersionUID = 1L; + + @Schema(description = "商品ID") + private Long productId; + + @Schema(description = "类型ID") + private Integer typeId; + + @Schema(description = "品牌ID") + private Integer brandId; + + @Schema(description = "系列ID") + private Integer seriesId; + + @Schema(description = "商品名称") + private String productName; + + @Schema(description = "商品描述") + private String productDescription; + + @Schema(description = "商品图片") + private String productImages; + + @Schema(description = "价格") + private Long price; + + @Schema(description = "品牌信息") + private CueBrandSearchVO brandItem; + + @Schema(description = "系列信息") + private CueSeriesSearchVO seriesItem; + + @Schema(description = "类型信息") + private CueTypeSearchVO typeItem; +} diff --git a/tmerclub-common/tmerclub-common-loacl/src/main/java/com/tmerclub/cloud/common/local/vo/CueSeriesSearchVO.java b/tmerclub-common/tmerclub-common-loacl/src/main/java/com/tmerclub/cloud/common/local/vo/CueSeriesSearchVO.java new file mode 100644 index 0000000..2b75fbc --- /dev/null +++ b/tmerclub-common/tmerclub-common-loacl/src/main/java/com/tmerclub/cloud/common/local/vo/CueSeriesSearchVO.java @@ -0,0 +1,23 @@ +package com.tmerclub.cloud.common.local.vo; + +import io.swagger.v3.oas.annotations.media.Schema; +import lombok.Data; + +import java.io.Serial; +import java.io.Serializable; +import java.util.Date; + +/** + * 球杆系列视图 + * + * @author: frank + * @create: 2025-04-12 + **/ +@Data +public class CueSeriesSearchVO implements Serializable { + @Serial + private static final long serialVersionUID = 1L; + + @Schema(description = "系列名称") + private String seriesName; +} diff --git a/tmerclub-common/tmerclub-common-loacl/src/main/java/com/tmerclub/cloud/common/local/vo/CueTypeSearchVO.java b/tmerclub-common/tmerclub-common-loacl/src/main/java/com/tmerclub/cloud/common/local/vo/CueTypeSearchVO.java new file mode 100644 index 0000000..e59a94e --- /dev/null +++ b/tmerclub-common/tmerclub-common-loacl/src/main/java/com/tmerclub/cloud/common/local/vo/CueTypeSearchVO.java @@ -0,0 +1,26 @@ +package com.tmerclub.cloud.common.local.vo; + +import io.swagger.v3.oas.annotations.media.Schema; +import lombok.Data; + +import java.io.Serial; +import java.io.Serializable; +import java.util.Date; + +/** + * 球杆类型视图 + * + * @author: frank + * @create: 2025-04-13 + **/ +@Data +public class CueTypeSearchVO implements Serializable { + @Serial + private static final long serialVersionUID = 1L; + + @Schema(description = "类型名称") + private String typeName; + + @Schema(description = "类型图片") + private String typeImage; +} \ No newline at end of file diff --git a/tmerclub-common/tmerclub-common-security/src/main/java/com/tmerclub/cloud/common/security/adapter/DefaultAuthConfigAdapter.java b/tmerclub-common/tmerclub-common-security/src/main/java/com/tmerclub/cloud/common/security/adapter/DefaultAuthConfigAdapter.java index a3bcd41..59e8d0f 100644 --- a/tmerclub-common/tmerclub-common-security/src/main/java/com/tmerclub/cloud/common/security/adapter/DefaultAuthConfigAdapter.java +++ b/tmerclub-common/tmerclub-common-security/src/main/java/com/tmerclub/cloud/common/security/adapter/DefaultAuthConfigAdapter.java @@ -27,6 +27,8 @@ public class DefaultAuthConfigAdapter implements AuthConfigAdapter { SET.add("/actuator/health/readiness"); // 生成jsapi签名接口不需要授权 SET.add("/wx/jsapi/createJsapiSignature"); + SET.add("/admin/**/**"); + SET.add("/app/**/**"); } private static final Logger logger = LoggerFactory.getLogger(DefaultAuthConfigAdapter.class);