统一项目命名并接回MinIO三副本存储
This commit is contained in:
+12
-3
@@ -40,8 +40,10 @@ docs/_book
|
||||
|
||||
# TODO: where does this rule come from?
|
||||
test/
|
||||
!YumiNail-Core/src/test/
|
||||
!YumiNail-Core/src/test/**
|
||||
!FD-Core/src/test/
|
||||
!FD-Core/src/test/**
|
||||
!FD-Gateway/src/test/
|
||||
!FD-Gateway/src/test/**
|
||||
|
||||
# ---> Python
|
||||
# Byte-compiled / optimized / DLL files
|
||||
@@ -266,10 +268,17 @@ jspm_packages/
|
||||
|
||||
# Mini program local overrides
|
||||
WeChatProgram/utils/config.local.js
|
||||
YumiNail-Admin-Program/utils/config.local.js
|
||||
FingertipDesigner-Admin-Program/utils/config.local.js
|
||||
FM-Wechat-Fronted/utils/config.local.js
|
||||
|
||||
# 本地敏感服务器信息
|
||||
docx/服务器信息.xlsx
|
||||
docx/生产服务器信息.xlsx
|
||||
|
||||
# Local release/test artifacts
|
||||
release-packages/
|
||||
/.codex-tmp/
|
||||
/tmp/
|
||||
artifacts/full-acceptance-*/
|
||||
artifacts/release/
|
||||
.codex-run/
|
||||
|
||||
@@ -200,6 +200,13 @@
|
||||
<version>[7.19.0, 7.19.99]</version>
|
||||
</dependency>
|
||||
|
||||
<!-- MinIO object storage -->
|
||||
<dependency>
|
||||
<groupId>io.minio</groupId>
|
||||
<artifactId>minio</artifactId>
|
||||
<version>8.5.17</version>
|
||||
</dependency>
|
||||
|
||||
<!-- Aliyun OSS backup storage -->
|
||||
<dependency>
|
||||
<groupId>com.aliyun.oss</groupId>
|
||||
|
||||
+5
-5
@@ -1,4 +1,4 @@
|
||||
package com.xiaowang.yuminailcore;
|
||||
package com.xiaowang.fingertipdesigner.core;
|
||||
|
||||
import org.springframework.boot.SpringApplication;
|
||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||
@@ -9,17 +9,17 @@ import org.springframework.scheduling.annotation.EnableScheduling;
|
||||
@EnableScheduling
|
||||
@SpringBootApplication
|
||||
/**
|
||||
* Purpose: YumiNailCoreApplication supports YumiNailCoreApplication.java by holding or executing the yumi nail core application business role.
|
||||
* Purpose: FingertipDesignerCoreApplication supports FingertipDesignerCoreApplication.java by holding or executing the fingertip designer core application business role.
|
||||
* Usage: reference this class from the owning layer and pass validated inputs before reading or updating related state.
|
||||
*/
|
||||
public class YumiNailCoreApplication {
|
||||
public class FingertipDesignerCoreApplication {
|
||||
|
||||
/**
|
||||
* Purpose: main supports YumiNailCoreApplication.java by holding or executing the main business role.
|
||||
* Purpose: main supports FingertipDesignerCoreApplication.java by holding or executing the main business role.
|
||||
* Usage: reference this method from the owning layer and pass validated inputs before reading or updating related state.
|
||||
*/
|
||||
public static void main(String[] args) {
|
||||
SpringApplication.run(YumiNailCoreApplication.class, args);
|
||||
SpringApplication.run(FingertipDesignerCoreApplication.class, args);
|
||||
}
|
||||
|
||||
}
|
||||
+2
-2
@@ -1,6 +1,6 @@
|
||||
package com.xiaowang.yuminailcore.annotation;
|
||||
package com.xiaowang.fingertipdesigner.core.annotation;
|
||||
|
||||
import com.xiaowang.yuminailcore.support.security.OperationGuardStrategy;
|
||||
import com.xiaowang.fingertipdesigner.core.support.security.OperationGuardStrategy;
|
||||
|
||||
import java.lang.annotation.ElementType;
|
||||
import java.lang.annotation.Retention;
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package com.xiaowang.yuminailcore.annotation;
|
||||
package com.xiaowang.fingertipdesigner.core.annotation;
|
||||
|
||||
import java.lang.annotation.ElementType;
|
||||
import java.lang.annotation.Retention;
|
||||
+5
-5
@@ -1,9 +1,9 @@
|
||||
package com.xiaowang.yuminailcore.aspect;
|
||||
package com.xiaowang.fingertipdesigner.core.aspect;
|
||||
|
||||
import com.xiaowang.yuminailcore.annotation.OperationGuard;
|
||||
import com.xiaowang.yuminailcore.common.Result;
|
||||
import com.xiaowang.yuminailcore.support.security.OperationGuardService;
|
||||
import com.xiaowang.yuminailcore.support.security.OperationGuardStrategy;
|
||||
import com.xiaowang.fingertipdesigner.core.annotation.OperationGuard;
|
||||
import com.xiaowang.fingertipdesigner.core.common.Result;
|
||||
import com.xiaowang.fingertipdesigner.core.support.security.OperationGuardService;
|
||||
import com.xiaowang.fingertipdesigner.core.support.security.OperationGuardStrategy;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.aspectj.lang.ProceedingJoinPoint;
|
||||
import org.aspectj.lang.annotation.Around;
|
||||
+10
-10
@@ -1,14 +1,14 @@
|
||||
package com.xiaowang.yuminailcore.aspect;
|
||||
package com.xiaowang.fingertipdesigner.core.aspect;
|
||||
|
||||
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
||||
import com.xiaowang.yuminailcore.annotation.RequirePermission;
|
||||
import com.xiaowang.yuminailcore.common.Result;
|
||||
import com.xiaowang.yuminailcore.modules.security.entity.PermissionDO;
|
||||
import com.xiaowang.yuminailcore.modules.user.entity.UserDO;
|
||||
import com.xiaowang.yuminailcore.modules.security.mapper.PermissionMapper;
|
||||
import com.xiaowang.yuminailcore.modules.user.mapper.UserMapper;
|
||||
import com.xiaowang.yuminailcore.modules.security.service.PermissionService;
|
||||
import com.xiaowang.yuminailcore.modules.security.support.PermissionCatalog;
|
||||
import com.xiaowang.fingertipdesigner.core.annotation.RequirePermission;
|
||||
import com.xiaowang.fingertipdesigner.core.common.Result;
|
||||
import com.xiaowang.fingertipdesigner.core.modules.security.entity.PermissionDO;
|
||||
import com.xiaowang.fingertipdesigner.core.modules.user.entity.UserDO;
|
||||
import com.xiaowang.fingertipdesigner.core.modules.security.mapper.PermissionMapper;
|
||||
import com.xiaowang.fingertipdesigner.core.modules.user.mapper.UserMapper;
|
||||
import com.xiaowang.fingertipdesigner.core.modules.security.service.PermissionService;
|
||||
import com.xiaowang.fingertipdesigner.core.modules.security.support.PermissionCatalog;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.aspectj.lang.ProceedingJoinPoint;
|
||||
import org.aspectj.lang.annotation.Around;
|
||||
@@ -50,7 +50,7 @@ public class PermissionAspect {
|
||||
*/
|
||||
private final UserMapper userMapper;
|
||||
|
||||
@Around("@annotation(com.xiaowang.yuminailcore.annotation.RequirePermission)")
|
||||
@Around("@annotation(com.xiaowang.fingertipdesigner.core.annotation.RequirePermission)")
|
||||
/**
|
||||
* Purpose: checkPermission supports PermissionAspect.java by holding or executing the check permission business role.
|
||||
* Usage: reference this method from the owning layer and pass validated inputs before reading or updating related state.
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package com.xiaowang.yuminailcore.common;
|
||||
package com.xiaowang.fingertipdesigner.core.common;
|
||||
|
||||
/**
|
||||
* 业务异常。
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package com.xiaowang.yuminailcore.common;
|
||||
package com.xiaowang.fingertipdesigner.core.common;
|
||||
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.context.support.DefaultMessageSourceResolvable;
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package com.xiaowang.yuminailcore.common;
|
||||
package com.xiaowang.fingertipdesigner.core.common;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package com.xiaowang.yuminailcore.common.dto;
|
||||
package com.xiaowang.fingertipdesigner.core.common.dto;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package com.xiaowang.yuminailcore.common.entity;
|
||||
package com.xiaowang.fingertipdesigner.core.common.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.FieldFill;
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package com.xiaowang.yuminailcore.common.vo;
|
||||
package com.xiaowang.fingertipdesigner.core.common.vo;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package com.xiaowang.yuminailcore.config;
|
||||
package com.xiaowang.fingertipdesigner.core.config;
|
||||
|
||||
import lombok.Data;
|
||||
import org.springframework.boot.context.properties.ConfigurationProperties;
|
||||
+9
-9
@@ -1,13 +1,13 @@
|
||||
package com.xiaowang.yuminailcore.config;
|
||||
package com.xiaowang.fingertipdesigner.core.config;
|
||||
|
||||
import com.xiaowang.yuminailcore.modules.user.entity.UserDO;
|
||||
import com.xiaowang.yuminailcore.modules.user.mapper.UserMapper;
|
||||
import com.xiaowang.yuminailcore.support.RequestShopContext;
|
||||
import com.xiaowang.yuminailcore.modules.shop.support.UserShopBindingSupport;
|
||||
import com.xiaowang.yuminailcore.support.security.RequestSignatureService;
|
||||
import com.xiaowang.yuminailcore.support.security.RequestThrottleService;
|
||||
import com.xiaowang.yuminailcore.support.security.UserSessionService;
|
||||
import com.xiaowang.yuminailcore.utils.JwtUtil;
|
||||
import com.xiaowang.fingertipdesigner.core.modules.user.entity.UserDO;
|
||||
import com.xiaowang.fingertipdesigner.core.modules.user.mapper.UserMapper;
|
||||
import com.xiaowang.fingertipdesigner.core.support.RequestShopContext;
|
||||
import com.xiaowang.fingertipdesigner.core.modules.shop.support.UserShopBindingSupport;
|
||||
import com.xiaowang.fingertipdesigner.core.support.security.RequestSignatureService;
|
||||
import com.xiaowang.fingertipdesigner.core.support.security.RequestThrottleService;
|
||||
import com.xiaowang.fingertipdesigner.core.support.security.UserSessionService;
|
||||
import com.xiaowang.fingertipdesigner.core.utils.JwtUtil;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.springframework.stereotype.Component;
|
||||
import org.springframework.util.StringUtils;
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package com.xiaowang.yuminailcore.config;
|
||||
package com.xiaowang.fingertipdesigner.core.config;
|
||||
|
||||
import org.apache.http.client.config.RequestConfig;
|
||||
import org.apache.http.impl.client.CloseableHttpClient;
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package com.xiaowang.yuminailcore.config;
|
||||
package com.xiaowang.fingertipdesigner.core.config;
|
||||
|
||||
import lombok.Data;
|
||||
import org.springframework.boot.context.properties.ConfigurationProperties;
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package com.xiaowang.yuminailcore.config;
|
||||
package com.xiaowang.fingertipdesigner.core.config;
|
||||
|
||||
import com.fasterxml.jackson.core.JsonParser;
|
||||
import com.fasterxml.jackson.databind.DeserializationContext;
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package com.xiaowang.yuminailcore.config;
|
||||
package com.xiaowang.fingertipdesigner.core.config;
|
||||
|
||||
import lombok.Data;
|
||||
import org.springframework.boot.context.properties.ConfigurationProperties;
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package com.xiaowang.yuminailcore.config;
|
||||
package com.xiaowang.fingertipdesigner.core.config;
|
||||
|
||||
import lombok.Data;
|
||||
import org.springframework.boot.context.properties.ConfigurationProperties;
|
||||
+18
-18
@@ -1,4 +1,4 @@
|
||||
package com.xiaowang.yuminailcore.config;
|
||||
package com.xiaowang.fingertipdesigner.core.config;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.DbType;
|
||||
import com.baomidou.mybatisplus.core.incrementer.IdentifierGenerator;
|
||||
@@ -6,7 +6,7 @@ import com.baomidou.mybatisplus.extension.plugins.MybatisPlusInterceptor;
|
||||
import com.baomidou.mybatisplus.extension.plugins.inner.BlockAttackInnerInterceptor;
|
||||
import com.baomidou.mybatisplus.extension.plugins.inner.OptimisticLockerInnerInterceptor;
|
||||
import com.baomidou.mybatisplus.extension.plugins.inner.PaginationInnerInterceptor;
|
||||
import com.xiaowang.yuminailcore.support.id.TimeOrderedSnowflakeIdGenerator;
|
||||
import com.xiaowang.fingertipdesigner.core.support.id.TimeOrderedSnowflakeIdGenerator;
|
||||
import org.mybatis.spring.annotation.MapperScan;
|
||||
import org.springframework.context.annotation.Bean;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
@@ -20,22 +20,22 @@ import org.springframework.context.annotation.Configuration;
|
||||
*/
|
||||
@Configuration
|
||||
@MapperScan({
|
||||
"com.xiaowang.yuminailcore.modules.artist.mapper",
|
||||
"com.xiaowang.yuminailcore.modules.auth.mapper",
|
||||
"com.xiaowang.yuminailcore.modules.content.mapper",
|
||||
"com.xiaowang.yuminailcore.modules.file.mapper",
|
||||
"com.xiaowang.yuminailcore.modules.integration.mapper",
|
||||
"com.xiaowang.yuminailcore.modules.inventory.mapper",
|
||||
"com.xiaowang.yuminailcore.modules.marketing.mapper",
|
||||
"com.xiaowang.yuminailcore.modules.message.mapper",
|
||||
"com.xiaowang.yuminailcore.modules.order.mapper",
|
||||
"com.xiaowang.yuminailcore.modules.payment.mapper",
|
||||
"com.xiaowang.yuminailcore.modules.planning.mapper",
|
||||
"com.xiaowang.yuminailcore.modules.product.mapper",
|
||||
"com.xiaowang.yuminailcore.modules.security.mapper",
|
||||
"com.xiaowang.yuminailcore.modules.shop.mapper",
|
||||
"com.xiaowang.yuminailcore.modules.system.mapper",
|
||||
"com.xiaowang.yuminailcore.modules.user.mapper"
|
||||
"com.xiaowang.fingertipdesigner.core.modules.artist.mapper",
|
||||
"com.xiaowang.fingertipdesigner.core.modules.auth.mapper",
|
||||
"com.xiaowang.fingertipdesigner.core.modules.content.mapper",
|
||||
"com.xiaowang.fingertipdesigner.core.modules.file.mapper",
|
||||
"com.xiaowang.fingertipdesigner.core.modules.integration.mapper",
|
||||
"com.xiaowang.fingertipdesigner.core.modules.inventory.mapper",
|
||||
"com.xiaowang.fingertipdesigner.core.modules.marketing.mapper",
|
||||
"com.xiaowang.fingertipdesigner.core.modules.message.mapper",
|
||||
"com.xiaowang.fingertipdesigner.core.modules.order.mapper",
|
||||
"com.xiaowang.fingertipdesigner.core.modules.payment.mapper",
|
||||
"com.xiaowang.fingertipdesigner.core.modules.planning.mapper",
|
||||
"com.xiaowang.fingertipdesigner.core.modules.product.mapper",
|
||||
"com.xiaowang.fingertipdesigner.core.modules.security.mapper",
|
||||
"com.xiaowang.fingertipdesigner.core.modules.shop.mapper",
|
||||
"com.xiaowang.fingertipdesigner.core.modules.system.mapper",
|
||||
"com.xiaowang.fingertipdesigner.core.modules.user.mapper"
|
||||
})
|
||||
public class MyBatisPlusConfig {
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package com.xiaowang.yuminailcore.config;
|
||||
package com.xiaowang.fingertipdesigner.core.config;
|
||||
|
||||
import com.baomidou.mybatisplus.core.handlers.MetaObjectHandler;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
+10
-3
@@ -1,4 +1,4 @@
|
||||
package com.xiaowang.yuminailcore.config;
|
||||
package com.xiaowang.fingertipdesigner.core.config;
|
||||
|
||||
import lombok.Data;
|
||||
import org.springframework.boot.context.properties.ConfigurationProperties;
|
||||
@@ -7,7 +7,10 @@ import org.springframework.validation.annotation.Validated;
|
||||
|
||||
import javax.validation.constraints.Min;
|
||||
import javax.validation.constraints.NotBlank;
|
||||
import javax.validation.constraints.NotEmpty;
|
||||
import javax.validation.constraints.NotNull;
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
|
||||
@Data
|
||||
@Component
|
||||
@@ -15,10 +18,14 @@ import javax.validation.constraints.NotNull;
|
||||
@ConfigurationProperties(prefix = "object-storage")
|
||||
public class ObjectStorageProperties {
|
||||
|
||||
@NotBlank
|
||||
@NotEmpty
|
||||
private List<String> providerOrder = Arrays.asList("MINIO", "QINIU_KODO", "ALIYUN_OSS");
|
||||
|
||||
@NotEmpty
|
||||
private List<String> replicaRequiredProviders = Arrays.asList("MINIO", "QINIU_KODO", "ALIYUN_OSS");
|
||||
|
||||
private String primaryProvider;
|
||||
|
||||
@NotBlank
|
||||
private String backupProvider;
|
||||
|
||||
@NotNull
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package com.xiaowang.yuminailcore.config;
|
||||
package com.xiaowang.fingertipdesigner.core.config;
|
||||
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.springframework.amqp.core.Binding;
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package com.xiaowang.yuminailcore.config;
|
||||
package com.xiaowang.fingertipdesigner.core.config;
|
||||
|
||||
import lombok.Data;
|
||||
import org.springframework.boot.context.properties.ConfigurationProperties;
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package com.xiaowang.yuminailcore.config;
|
||||
package com.xiaowang.fingertipdesigner.core.config;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonAutoDetect;
|
||||
import com.fasterxml.jackson.annotation.PropertyAccessor;
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package com.xiaowang.yuminailcore.config;
|
||||
package com.xiaowang.fingertipdesigner.core.config;
|
||||
|
||||
import lombok.Data;
|
||||
import org.springframework.boot.context.properties.ConfigurationProperties;
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package com.xiaowang.yuminailcore.config;
|
||||
package com.xiaowang.fingertipdesigner.core.config;
|
||||
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package com.xiaowang.yuminailcore.config;
|
||||
package com.xiaowang.fingertipdesigner.core.config;
|
||||
|
||||
import lombok.Data;
|
||||
import org.springframework.boot.context.properties.ConfigurationProperties;
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package com.xiaowang.yuminailcore.config;
|
||||
package com.xiaowang.fingertipdesigner.core.config;
|
||||
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package com.xiaowang.yuminailcore.config;
|
||||
package com.xiaowang.fingertipdesigner.core.config;
|
||||
|
||||
import lombok.Data;
|
||||
import org.springframework.boot.context.properties.ConfigurationProperties;
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package com.xiaowang.yuminailcore.config;
|
||||
package com.xiaowang.fingertipdesigner.core.config;
|
||||
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package com.xiaowang.yuminailcore.config;
|
||||
package com.xiaowang.fingertipdesigner.core.config;
|
||||
|
||||
import lombok.Data;
|
||||
import org.springframework.boot.context.properties.ConfigurationProperties;
|
||||
+3
-3
@@ -1,7 +1,7 @@
|
||||
package com.xiaowang.yuminailcore.filter;
|
||||
package com.xiaowang.fingertipdesigner.core.filter;
|
||||
|
||||
import com.xiaowang.yuminailcore.support.security.CachedBodyHttpServletRequest;
|
||||
import com.xiaowang.yuminailcore.support.security.RequestSignatureService;
|
||||
import com.xiaowang.fingertipdesigner.core.support.security.CachedBodyHttpServletRequest;
|
||||
import com.xiaowang.fingertipdesigner.core.support.security.RequestSignatureService;
|
||||
import org.springframework.core.Ordered;
|
||||
import org.springframework.core.annotation.Order;
|
||||
import org.springframework.stereotype.Component;
|
||||
+7
-7
@@ -1,11 +1,11 @@
|
||||
package com.xiaowang.yuminailcore.modules.analytics.controller.admin;
|
||||
package com.xiaowang.fingertipdesigner.core.modules.analytics.controller.admin;
|
||||
|
||||
import com.xiaowang.yuminailcore.annotation.RequirePermission;
|
||||
import com.xiaowang.yuminailcore.common.Result;
|
||||
import com.xiaowang.yuminailcore.modules.user.entity.UserDO;
|
||||
import com.xiaowang.yuminailcore.modules.analytics.service.WorkbenchService;
|
||||
import com.xiaowang.yuminailcore.modules.security.support.AdminScopeHelper;
|
||||
import com.xiaowang.yuminailcore.modules.analytics.vo.StoreWorkbenchVO;
|
||||
import com.xiaowang.fingertipdesigner.core.annotation.RequirePermission;
|
||||
import com.xiaowang.fingertipdesigner.core.common.Result;
|
||||
import com.xiaowang.fingertipdesigner.core.modules.user.entity.UserDO;
|
||||
import com.xiaowang.fingertipdesigner.core.modules.analytics.service.WorkbenchService;
|
||||
import com.xiaowang.fingertipdesigner.core.modules.security.support.AdminScopeHelper;
|
||||
import com.xiaowang.fingertipdesigner.core.modules.analytics.vo.StoreWorkbenchVO;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
+24
-24
@@ -1,30 +1,30 @@
|
||||
package com.xiaowang.yuminailcore.modules.analytics.controller.front;
|
||||
package com.xiaowang.fingertipdesigner.core.modules.analytics.controller.front;
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||
import com.fasterxml.jackson.core.type.TypeReference;
|
||||
import com.xiaowang.yuminailcore.annotation.RequirePermission;
|
||||
import com.xiaowang.yuminailcore.common.Result;
|
||||
import com.xiaowang.yuminailcore.config.AppCacheProperties;
|
||||
import com.xiaowang.yuminailcore.modules.content.entity.CommentDO;
|
||||
import com.xiaowang.yuminailcore.modules.order.entity.OrderDO;
|
||||
import com.xiaowang.yuminailcore.modules.order.entity.OrderItemDO;
|
||||
import com.xiaowang.yuminailcore.modules.product.entity.ProductDO;
|
||||
import com.xiaowang.yuminailcore.modules.user.entity.UserDO;
|
||||
import com.xiaowang.yuminailcore.modules.content.mapper.CommentMapper;
|
||||
import com.xiaowang.yuminailcore.modules.order.mapper.OrderItemMapper;
|
||||
import com.xiaowang.yuminailcore.modules.order.mapper.OrderMapper;
|
||||
import com.xiaowang.yuminailcore.modules.product.mapper.ProductMapper;
|
||||
import com.xiaowang.yuminailcore.modules.shop.mapper.ShopMapper;
|
||||
import com.xiaowang.yuminailcore.modules.user.mapper.UserMapper;
|
||||
import com.xiaowang.yuminailcore.modules.analytics.service.OperationsAnalyticsService;
|
||||
import com.xiaowang.yuminailcore.modules.security.support.AdminScopeHelper;
|
||||
import com.xiaowang.yuminailcore.modules.order.support.OrderStatus;
|
||||
import com.xiaowang.yuminailcore.modules.shop.support.UserShopBindingSupport;
|
||||
import com.xiaowang.yuminailcore.support.cache.MultiLevelCacheService;
|
||||
import com.xiaowang.yuminailcore.modules.analytics.vo.DashboardStatsVO;
|
||||
import com.xiaowang.yuminailcore.modules.product.vo.HotProductVO;
|
||||
import com.xiaowang.yuminailcore.modules.analytics.vo.OperationsAnalyticsVO;
|
||||
import com.xiaowang.yuminailcore.modules.analytics.vo.RecentActivityVO;
|
||||
import com.xiaowang.fingertipdesigner.core.annotation.RequirePermission;
|
||||
import com.xiaowang.fingertipdesigner.core.common.Result;
|
||||
import com.xiaowang.fingertipdesigner.core.config.AppCacheProperties;
|
||||
import com.xiaowang.fingertipdesigner.core.modules.content.entity.CommentDO;
|
||||
import com.xiaowang.fingertipdesigner.core.modules.order.entity.OrderDO;
|
||||
import com.xiaowang.fingertipdesigner.core.modules.order.entity.OrderItemDO;
|
||||
import com.xiaowang.fingertipdesigner.core.modules.product.entity.ProductDO;
|
||||
import com.xiaowang.fingertipdesigner.core.modules.user.entity.UserDO;
|
||||
import com.xiaowang.fingertipdesigner.core.modules.content.mapper.CommentMapper;
|
||||
import com.xiaowang.fingertipdesigner.core.modules.order.mapper.OrderItemMapper;
|
||||
import com.xiaowang.fingertipdesigner.core.modules.order.mapper.OrderMapper;
|
||||
import com.xiaowang.fingertipdesigner.core.modules.product.mapper.ProductMapper;
|
||||
import com.xiaowang.fingertipdesigner.core.modules.shop.mapper.ShopMapper;
|
||||
import com.xiaowang.fingertipdesigner.core.modules.user.mapper.UserMapper;
|
||||
import com.xiaowang.fingertipdesigner.core.modules.analytics.service.OperationsAnalyticsService;
|
||||
import com.xiaowang.fingertipdesigner.core.modules.security.support.AdminScopeHelper;
|
||||
import com.xiaowang.fingertipdesigner.core.modules.order.support.OrderStatus;
|
||||
import com.xiaowang.fingertipdesigner.core.modules.shop.support.UserShopBindingSupport;
|
||||
import com.xiaowang.fingertipdesigner.core.support.cache.MultiLevelCacheService;
|
||||
import com.xiaowang.fingertipdesigner.core.modules.analytics.vo.DashboardStatsVO;
|
||||
import com.xiaowang.fingertipdesigner.core.modules.product.vo.HotProductVO;
|
||||
import com.xiaowang.fingertipdesigner.core.modules.analytics.vo.OperationsAnalyticsVO;
|
||||
import com.xiaowang.fingertipdesigner.core.modules.analytics.vo.RecentActivityVO;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.springframework.beans.BeanUtils;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
package com.xiaowang.fingertipdesigner.core.modules.analytics.service;
|
||||
|
||||
import com.xiaowang.fingertipdesigner.core.modules.analytics.vo.OperationsAnalyticsVO;
|
||||
|
||||
public interface OperationsAnalyticsService {
|
||||
OperationsAnalyticsVO getDashboardAnalytics(Long shopId, Long artistId);
|
||||
}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
package com.xiaowang.fingertipdesigner.core.modules.analytics.service;
|
||||
|
||||
import com.xiaowang.fingertipdesigner.core.modules.analytics.vo.StoreWorkbenchVO;
|
||||
|
||||
public interface WorkbenchService {
|
||||
StoreWorkbenchVO getWorkbench(Long shopId, Long artistId);
|
||||
}
|
||||
+11
-11
@@ -1,16 +1,16 @@
|
||||
package com.xiaowang.yuminailcore.modules.analytics.service.impl;
|
||||
package com.xiaowang.fingertipdesigner.core.modules.analytics.service.impl;
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||
import com.xiaowang.yuminailcore.modules.order.entity.OrderDO;
|
||||
import com.xiaowang.yuminailcore.modules.order.entity.OrderItemDO;
|
||||
import com.xiaowang.yuminailcore.modules.product.entity.ProductDO;
|
||||
import com.xiaowang.yuminailcore.modules.user.entity.UserGrowthRecordDO;
|
||||
import com.xiaowang.yuminailcore.modules.order.mapper.OrderItemMapper;
|
||||
import com.xiaowang.yuminailcore.modules.order.mapper.OrderMapper;
|
||||
import com.xiaowang.yuminailcore.modules.product.mapper.ProductMapper;
|
||||
import com.xiaowang.yuminailcore.modules.user.mapper.UserGrowthRecordMapper;
|
||||
import com.xiaowang.yuminailcore.modules.analytics.service.OperationsAnalyticsService;
|
||||
import com.xiaowang.yuminailcore.modules.analytics.vo.OperationsAnalyticsVO;
|
||||
import com.xiaowang.fingertipdesigner.core.modules.order.entity.OrderDO;
|
||||
import com.xiaowang.fingertipdesigner.core.modules.order.entity.OrderItemDO;
|
||||
import com.xiaowang.fingertipdesigner.core.modules.product.entity.ProductDO;
|
||||
import com.xiaowang.fingertipdesigner.core.modules.user.entity.UserGrowthRecordDO;
|
||||
import com.xiaowang.fingertipdesigner.core.modules.order.mapper.OrderItemMapper;
|
||||
import com.xiaowang.fingertipdesigner.core.modules.order.mapper.OrderMapper;
|
||||
import com.xiaowang.fingertipdesigner.core.modules.product.mapper.ProductMapper;
|
||||
import com.xiaowang.fingertipdesigner.core.modules.user.mapper.UserGrowthRecordMapper;
|
||||
import com.xiaowang.fingertipdesigner.core.modules.analytics.service.OperationsAnalyticsService;
|
||||
import com.xiaowang.fingertipdesigner.core.modules.analytics.vo.OperationsAnalyticsVO;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
+18
-18
@@ -1,23 +1,23 @@
|
||||
package com.xiaowang.yuminailcore.modules.analytics.service.impl;
|
||||
package com.xiaowang.fingertipdesigner.core.modules.analytics.service.impl;
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||
import com.xiaowang.yuminailcore.modules.order.entity.AfterSaleDO;
|
||||
import com.xiaowang.yuminailcore.modules.artist.entity.ArtistScheduleDO;
|
||||
import com.xiaowang.yuminailcore.modules.inventory.entity.InventoryItemDO;
|
||||
import com.xiaowang.yuminailcore.modules.order.entity.OrderArtistChangeRequestDO;
|
||||
import com.xiaowang.yuminailcore.modules.order.entity.OrderArtistReviewDO;
|
||||
import com.xiaowang.yuminailcore.modules.order.entity.OrderDO;
|
||||
import com.xiaowang.yuminailcore.modules.order.entity.OrderItemDO;
|
||||
import com.xiaowang.yuminailcore.modules.order.mapper.AfterSaleMapper;
|
||||
import com.xiaowang.yuminailcore.modules.artist.mapper.ArtistScheduleMapper;
|
||||
import com.xiaowang.yuminailcore.modules.inventory.mapper.InventoryItemMapper;
|
||||
import com.xiaowang.yuminailcore.modules.order.mapper.OrderArtistChangeRequestMapper;
|
||||
import com.xiaowang.yuminailcore.modules.order.mapper.OrderArtistReviewMapper;
|
||||
import com.xiaowang.yuminailcore.modules.order.mapper.OrderItemMapper;
|
||||
import com.xiaowang.yuminailcore.modules.order.mapper.OrderMapper;
|
||||
import com.xiaowang.yuminailcore.modules.analytics.service.WorkbenchService;
|
||||
import com.xiaowang.yuminailcore.modules.order.support.OrderStatus;
|
||||
import com.xiaowang.yuminailcore.modules.analytics.vo.StoreWorkbenchVO;
|
||||
import com.xiaowang.fingertipdesigner.core.modules.order.entity.AfterSaleDO;
|
||||
import com.xiaowang.fingertipdesigner.core.modules.artist.entity.ArtistScheduleDO;
|
||||
import com.xiaowang.fingertipdesigner.core.modules.inventory.entity.InventoryItemDO;
|
||||
import com.xiaowang.fingertipdesigner.core.modules.order.entity.OrderArtistChangeRequestDO;
|
||||
import com.xiaowang.fingertipdesigner.core.modules.order.entity.OrderArtistReviewDO;
|
||||
import com.xiaowang.fingertipdesigner.core.modules.order.entity.OrderDO;
|
||||
import com.xiaowang.fingertipdesigner.core.modules.order.entity.OrderItemDO;
|
||||
import com.xiaowang.fingertipdesigner.core.modules.order.mapper.AfterSaleMapper;
|
||||
import com.xiaowang.fingertipdesigner.core.modules.artist.mapper.ArtistScheduleMapper;
|
||||
import com.xiaowang.fingertipdesigner.core.modules.inventory.mapper.InventoryItemMapper;
|
||||
import com.xiaowang.fingertipdesigner.core.modules.order.mapper.OrderArtistChangeRequestMapper;
|
||||
import com.xiaowang.fingertipdesigner.core.modules.order.mapper.OrderArtistReviewMapper;
|
||||
import com.xiaowang.fingertipdesigner.core.modules.order.mapper.OrderItemMapper;
|
||||
import com.xiaowang.fingertipdesigner.core.modules.order.mapper.OrderMapper;
|
||||
import com.xiaowang.fingertipdesigner.core.modules.analytics.service.WorkbenchService;
|
||||
import com.xiaowang.fingertipdesigner.core.modules.order.support.OrderStatus;
|
||||
import com.xiaowang.fingertipdesigner.core.modules.analytics.vo.StoreWorkbenchVO;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
+2
-2
@@ -1,11 +1,11 @@
|
||||
package com.xiaowang.yuminailcore.modules.analytics.vo;
|
||||
package com.xiaowang.fingertipdesigner.core.modules.analytics.vo;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.List;
|
||||
|
||||
import com.xiaowang.yuminailcore.modules.product.vo.HotProductVO;
|
||||
import com.xiaowang.fingertipdesigner.core.modules.product.vo.HotProductVO;
|
||||
@Data
|
||||
/**
|
||||
* DashboardStatsVO is a response VO. Services build it and controllers return it to the frontend.
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package com.xiaowang.yuminailcore.modules.analytics.vo;
|
||||
package com.xiaowang.fingertipdesigner.core.modules.analytics.vo;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package com.xiaowang.yuminailcore.modules.analytics.vo;
|
||||
package com.xiaowang.fingertipdesigner.core.modules.analytics.vo;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package com.xiaowang.yuminailcore.modules.analytics.vo;
|
||||
package com.xiaowang.fingertipdesigner.core.modules.analytics.vo;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
+10
-10
@@ -1,14 +1,14 @@
|
||||
package com.xiaowang.yuminailcore.modules.artist.controller.admin;
|
||||
package com.xiaowang.fingertipdesigner.core.modules.artist.controller.admin;
|
||||
|
||||
import com.xiaowang.yuminailcore.annotation.RequirePermission;
|
||||
import com.xiaowang.yuminailcore.common.Result;
|
||||
import com.xiaowang.yuminailcore.modules.artist.dto.ArtistScheduleDTO;
|
||||
import com.xiaowang.yuminailcore.modules.user.entity.UserDO;
|
||||
import com.xiaowang.yuminailcore.modules.artist.service.ArtistScheduleService;
|
||||
import com.xiaowang.yuminailcore.modules.security.support.AdminScopeHelper;
|
||||
import com.xiaowang.yuminailcore.modules.security.support.SecurityAuditActions;
|
||||
import com.xiaowang.yuminailcore.modules.security.support.SecurityAuditSupport;
|
||||
import com.xiaowang.yuminailcore.modules.artist.vo.ArtistScheduleVO;
|
||||
import com.xiaowang.fingertipdesigner.core.annotation.RequirePermission;
|
||||
import com.xiaowang.fingertipdesigner.core.common.Result;
|
||||
import com.xiaowang.fingertipdesigner.core.modules.artist.dto.ArtistScheduleDTO;
|
||||
import com.xiaowang.fingertipdesigner.core.modules.user.entity.UserDO;
|
||||
import com.xiaowang.fingertipdesigner.core.modules.artist.service.ArtistScheduleService;
|
||||
import com.xiaowang.fingertipdesigner.core.modules.security.support.AdminScopeHelper;
|
||||
import com.xiaowang.fingertipdesigner.core.modules.security.support.SecurityAuditActions;
|
||||
import com.xiaowang.fingertipdesigner.core.modules.security.support.SecurityAuditSupport;
|
||||
import com.xiaowang.fingertipdesigner.core.modules.artist.vo.ArtistScheduleVO;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
+8
-8
@@ -1,12 +1,12 @@
|
||||
package com.xiaowang.yuminailcore.modules.artist.controller.admin;
|
||||
package com.xiaowang.fingertipdesigner.core.modules.artist.controller.admin;
|
||||
|
||||
import com.xiaowang.yuminailcore.annotation.RequirePermission;
|
||||
import com.xiaowang.yuminailcore.annotation.OperationGuard;
|
||||
import com.xiaowang.yuminailcore.common.Result;
|
||||
import com.xiaowang.yuminailcore.modules.artist.dto.NailArtistInfoDTO;
|
||||
import com.xiaowang.yuminailcore.modules.user.entity.UserDO;
|
||||
import com.xiaowang.yuminailcore.modules.artist.service.NailArtistInfoService;
|
||||
import com.xiaowang.yuminailcore.modules.security.support.AdminScopeHelper;
|
||||
import com.xiaowang.fingertipdesigner.core.annotation.RequirePermission;
|
||||
import com.xiaowang.fingertipdesigner.core.annotation.OperationGuard;
|
||||
import com.xiaowang.fingertipdesigner.core.common.Result;
|
||||
import com.xiaowang.fingertipdesigner.core.modules.artist.dto.NailArtistInfoDTO;
|
||||
import com.xiaowang.fingertipdesigner.core.modules.user.entity.UserDO;
|
||||
import com.xiaowang.fingertipdesigner.core.modules.artist.service.NailArtistInfoService;
|
||||
import com.xiaowang.fingertipdesigner.core.modules.security.support.AdminScopeHelper;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
+7
-7
@@ -1,11 +1,11 @@
|
||||
package com.xiaowang.yuminailcore.modules.artist.controller.front;
|
||||
package com.xiaowang.fingertipdesigner.core.modules.artist.controller.front;
|
||||
|
||||
import com.xiaowang.yuminailcore.common.Result;
|
||||
import com.xiaowang.yuminailcore.modules.artist.dto.NailArtistInfoDTO;
|
||||
import com.xiaowang.yuminailcore.modules.artist.service.NailArtistInfoService;
|
||||
import com.xiaowang.yuminailcore.modules.artist.vo.NailArtistAvailabilityVO;
|
||||
import com.xiaowang.yuminailcore.modules.artist.vo.NailArtistProfileVO;
|
||||
import com.xiaowang.yuminailcore.modules.artist.vo.NailArtistReviewVO;
|
||||
import com.xiaowang.fingertipdesigner.core.common.Result;
|
||||
import com.xiaowang.fingertipdesigner.core.modules.artist.dto.NailArtistInfoDTO;
|
||||
import com.xiaowang.fingertipdesigner.core.modules.artist.service.NailArtistInfoService;
|
||||
import com.xiaowang.fingertipdesigner.core.modules.artist.vo.NailArtistAvailabilityVO;
|
||||
import com.xiaowang.fingertipdesigner.core.modules.artist.vo.NailArtistProfileVO;
|
||||
import com.xiaowang.fingertipdesigner.core.modules.artist.vo.NailArtistReviewVO;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package com.xiaowang.yuminailcore.modules.artist.dto;
|
||||
package com.xiaowang.fingertipdesigner.core.modules.artist.dto;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package com.xiaowang.yuminailcore.modules.artist.dto;
|
||||
package com.xiaowang.fingertipdesigner.core.modules.artist.dto;
|
||||
|
||||
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
|
||||
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
|
||||
+2
-2
@@ -1,4 +1,4 @@
|
||||
package com.xiaowang.yuminailcore.modules.artist.entity;
|
||||
package com.xiaowang.fingertipdesigner.core.modules.artist.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableLogic;
|
||||
@@ -9,7 +9,7 @@ import lombok.EqualsAndHashCode;
|
||||
import java.time.LocalDate;
|
||||
import java.time.LocalTime;
|
||||
|
||||
import com.xiaowang.yuminailcore.common.entity.BaseEntity;
|
||||
import com.xiaowang.fingertipdesigner.core.common.entity.BaseEntity;
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@TableName("t_artist_schedule")
|
||||
+2
-2
@@ -1,4 +1,4 @@
|
||||
package com.xiaowang.yuminailcore.modules.artist.entity;
|
||||
package com.xiaowang.fingertipdesigner.core.modules.artist.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableLogic;
|
||||
@@ -9,7 +9,7 @@ import lombok.EqualsAndHashCode;
|
||||
import java.math.BigDecimal;
|
||||
import java.time.LocalTime;
|
||||
|
||||
import com.xiaowang.yuminailcore.common.entity.BaseEntity;
|
||||
import com.xiaowang.fingertipdesigner.core.common.entity.BaseEntity;
|
||||
/**
|
||||
* 美甲师信息实体类
|
||||
*/
|
||||
+2
-2
@@ -1,7 +1,7 @@
|
||||
package com.xiaowang.yuminailcore.modules.artist.mapper;
|
||||
package com.xiaowang.fingertipdesigner.core.modules.artist.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.xiaowang.yuminailcore.modules.artist.entity.ArtistScheduleDO;
|
||||
import com.xiaowang.fingertipdesigner.core.modules.artist.entity.ArtistScheduleDO;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import org.apache.ibatis.annotations.Select;
|
||||
+2
-2
@@ -1,7 +1,7 @@
|
||||
package com.xiaowang.yuminailcore.modules.artist.mapper;
|
||||
package com.xiaowang.fingertipdesigner.core.modules.artist.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.xiaowang.yuminailcore.modules.artist.entity.NailArtistInfoDO;
|
||||
import com.xiaowang.fingertipdesigner.core.modules.artist.entity.NailArtistInfoDO;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
/**
|
||||
+3
-3
@@ -1,7 +1,7 @@
|
||||
package com.xiaowang.yuminailcore.modules.artist.service;
|
||||
package com.xiaowang.fingertipdesigner.core.modules.artist.service;
|
||||
|
||||
import com.xiaowang.yuminailcore.modules.artist.dto.ArtistScheduleDTO;
|
||||
import com.xiaowang.yuminailcore.modules.artist.vo.ArtistScheduleVO;
|
||||
import com.xiaowang.fingertipdesigner.core.modules.artist.dto.ArtistScheduleDTO;
|
||||
import com.xiaowang.fingertipdesigner.core.modules.artist.vo.ArtistScheduleVO;
|
||||
|
||||
import java.time.LocalDate;
|
||||
import java.util.List;
|
||||
+6
-6
@@ -1,11 +1,11 @@
|
||||
package com.xiaowang.yuminailcore.modules.artist.service;
|
||||
package com.xiaowang.fingertipdesigner.core.modules.artist.service;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.xiaowang.yuminailcore.modules.artist.dto.NailArtistInfoDTO;
|
||||
import com.xiaowang.yuminailcore.modules.artist.entity.NailArtistInfoDO;
|
||||
import com.xiaowang.yuminailcore.modules.artist.vo.NailArtistAvailabilityVO;
|
||||
import com.xiaowang.yuminailcore.modules.artist.vo.NailArtistProfileVO;
|
||||
import com.xiaowang.yuminailcore.modules.artist.vo.NailArtistReviewVO;
|
||||
import com.xiaowang.fingertipdesigner.core.modules.artist.dto.NailArtistInfoDTO;
|
||||
import com.xiaowang.fingertipdesigner.core.modules.artist.entity.NailArtistInfoDO;
|
||||
import com.xiaowang.fingertipdesigner.core.modules.artist.vo.NailArtistAvailabilityVO;
|
||||
import com.xiaowang.fingertipdesigner.core.modules.artist.vo.NailArtistProfileVO;
|
||||
import com.xiaowang.fingertipdesigner.core.modules.artist.vo.NailArtistReviewVO;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
+6
-6
@@ -1,11 +1,11 @@
|
||||
package com.xiaowang.yuminailcore.modules.artist.service.impl;
|
||||
package com.xiaowang.fingertipdesigner.core.modules.artist.service.impl;
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||
import com.xiaowang.yuminailcore.modules.artist.dto.ArtistScheduleDTO;
|
||||
import com.xiaowang.yuminailcore.modules.artist.entity.ArtistScheduleDO;
|
||||
import com.xiaowang.yuminailcore.modules.artist.mapper.ArtistScheduleMapper;
|
||||
import com.xiaowang.yuminailcore.modules.artist.service.ArtistScheduleService;
|
||||
import com.xiaowang.yuminailcore.modules.artist.vo.ArtistScheduleVO;
|
||||
import com.xiaowang.fingertipdesigner.core.modules.artist.dto.ArtistScheduleDTO;
|
||||
import com.xiaowang.fingertipdesigner.core.modules.artist.entity.ArtistScheduleDO;
|
||||
import com.xiaowang.fingertipdesigner.core.modules.artist.mapper.ArtistScheduleMapper;
|
||||
import com.xiaowang.fingertipdesigner.core.modules.artist.service.ArtistScheduleService;
|
||||
import com.xiaowang.fingertipdesigner.core.modules.artist.vo.ArtistScheduleVO;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.springframework.beans.BeanUtils;
|
||||
import org.springframework.stereotype.Service;
|
||||
+30
-30
@@ -1,35 +1,35 @@
|
||||
package com.xiaowang.yuminailcore.modules.artist.service.impl;
|
||||
package com.xiaowang.fingertipdesigner.core.modules.artist.service.impl;
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import com.xiaowang.yuminailcore.modules.artist.dto.NailArtistInfoDTO;
|
||||
import com.xiaowang.yuminailcore.modules.artist.entity.ArtistScheduleDO;
|
||||
import com.xiaowang.yuminailcore.modules.artist.entity.NailArtistInfoDO;
|
||||
import com.xiaowang.yuminailcore.modules.order.entity.OrderArtistReviewDO;
|
||||
import com.xiaowang.yuminailcore.modules.order.entity.OrderDO;
|
||||
import com.xiaowang.yuminailcore.modules.order.entity.OrderItemDO;
|
||||
import com.xiaowang.yuminailcore.modules.product.entity.ProductDO;
|
||||
import com.xiaowang.yuminailcore.modules.shop.entity.ShopDO;
|
||||
import com.xiaowang.yuminailcore.modules.user.entity.UserDO;
|
||||
import com.xiaowang.yuminailcore.modules.artist.mapper.NailArtistInfoMapper;
|
||||
import com.xiaowang.yuminailcore.modules.planning.mapper.AppointmentReservationMapper;
|
||||
import com.xiaowang.yuminailcore.modules.artist.mapper.ArtistScheduleMapper;
|
||||
import com.xiaowang.yuminailcore.modules.order.mapper.OrderArtistReviewMapper;
|
||||
import com.xiaowang.yuminailcore.modules.order.mapper.OrderItemMapper;
|
||||
import com.xiaowang.yuminailcore.modules.order.mapper.OrderMapper;
|
||||
import com.xiaowang.yuminailcore.modules.product.mapper.ProductMapper;
|
||||
import com.xiaowang.yuminailcore.modules.shop.mapper.ShopMapper;
|
||||
import com.xiaowang.yuminailcore.modules.user.mapper.UserMapper;
|
||||
import com.xiaowang.yuminailcore.modules.artist.service.NailArtistInfoService;
|
||||
import com.xiaowang.yuminailcore.modules.file.service.ObjectStorageFileService;
|
||||
import com.xiaowang.yuminailcore.modules.file.support.ObjectStorageUrlSupport;
|
||||
import com.xiaowang.yuminailcore.modules.shop.support.UserShopBindingSupport;
|
||||
import com.xiaowang.yuminailcore.modules.artist.vo.NailArtistAvailabilityVO;
|
||||
import com.xiaowang.yuminailcore.modules.artist.vo.NailArtistProfileVO;
|
||||
import com.xiaowang.yuminailcore.modules.artist.vo.NailArtistReviewVO;
|
||||
import com.xiaowang.yuminailcore.modules.artist.vo.NailArtistWorkVO;
|
||||
import com.xiaowang.yuminailcore.modules.file.vo.ObjectStorageFileVO;
|
||||
import com.xiaowang.yuminailcore.modules.shop.vo.ShopSimpleVO;
|
||||
import com.xiaowang.fingertipdesigner.core.modules.artist.dto.NailArtistInfoDTO;
|
||||
import com.xiaowang.fingertipdesigner.core.modules.artist.entity.ArtistScheduleDO;
|
||||
import com.xiaowang.fingertipdesigner.core.modules.artist.entity.NailArtistInfoDO;
|
||||
import com.xiaowang.fingertipdesigner.core.modules.order.entity.OrderArtistReviewDO;
|
||||
import com.xiaowang.fingertipdesigner.core.modules.order.entity.OrderDO;
|
||||
import com.xiaowang.fingertipdesigner.core.modules.order.entity.OrderItemDO;
|
||||
import com.xiaowang.fingertipdesigner.core.modules.product.entity.ProductDO;
|
||||
import com.xiaowang.fingertipdesigner.core.modules.shop.entity.ShopDO;
|
||||
import com.xiaowang.fingertipdesigner.core.modules.user.entity.UserDO;
|
||||
import com.xiaowang.fingertipdesigner.core.modules.artist.mapper.NailArtistInfoMapper;
|
||||
import com.xiaowang.fingertipdesigner.core.modules.planning.mapper.AppointmentReservationMapper;
|
||||
import com.xiaowang.fingertipdesigner.core.modules.artist.mapper.ArtistScheduleMapper;
|
||||
import com.xiaowang.fingertipdesigner.core.modules.order.mapper.OrderArtistReviewMapper;
|
||||
import com.xiaowang.fingertipdesigner.core.modules.order.mapper.OrderItemMapper;
|
||||
import com.xiaowang.fingertipdesigner.core.modules.order.mapper.OrderMapper;
|
||||
import com.xiaowang.fingertipdesigner.core.modules.product.mapper.ProductMapper;
|
||||
import com.xiaowang.fingertipdesigner.core.modules.shop.mapper.ShopMapper;
|
||||
import com.xiaowang.fingertipdesigner.core.modules.user.mapper.UserMapper;
|
||||
import com.xiaowang.fingertipdesigner.core.modules.artist.service.NailArtistInfoService;
|
||||
import com.xiaowang.fingertipdesigner.core.modules.file.service.ObjectStorageFileService;
|
||||
import com.xiaowang.fingertipdesigner.core.modules.file.support.ObjectStorageUrlSupport;
|
||||
import com.xiaowang.fingertipdesigner.core.modules.shop.support.UserShopBindingSupport;
|
||||
import com.xiaowang.fingertipdesigner.core.modules.artist.vo.NailArtistAvailabilityVO;
|
||||
import com.xiaowang.fingertipdesigner.core.modules.artist.vo.NailArtistProfileVO;
|
||||
import com.xiaowang.fingertipdesigner.core.modules.artist.vo.NailArtistReviewVO;
|
||||
import com.xiaowang.fingertipdesigner.core.modules.artist.vo.NailArtistWorkVO;
|
||||
import com.xiaowang.fingertipdesigner.core.modules.file.vo.ObjectStorageFileVO;
|
||||
import com.xiaowang.fingertipdesigner.core.modules.shop.vo.ShopSimpleVO;
|
||||
import org.springframework.beans.BeanUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
@@ -51,7 +51,7 @@ import java.util.Map;
|
||||
import java.util.Set;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
import com.xiaowang.yuminailcore.common.Result;
|
||||
import com.xiaowang.fingertipdesigner.core.common.Result;
|
||||
@Service
|
||||
/**
|
||||
* NailArtistInfoServiceImpl contains the concrete business logic. It validates input, calls mappers/support services, and builds return objects.
|
||||
+6
-6
@@ -1,9 +1,9 @@
|
||||
package com.xiaowang.yuminailcore.modules.artist.support;
|
||||
package com.xiaowang.fingertipdesigner.core.modules.artist.support;
|
||||
|
||||
import com.xiaowang.yuminailcore.modules.user.entity.UserDO;
|
||||
import com.xiaowang.yuminailcore.modules.artist.entity.NailArtistInfoDO;
|
||||
import com.xiaowang.yuminailcore.modules.artist.mapper.NailArtistInfoMapper;
|
||||
import com.xiaowang.yuminailcore.modules.user.mapper.UserMapper;
|
||||
import com.xiaowang.fingertipdesigner.core.modules.user.entity.UserDO;
|
||||
import com.xiaowang.fingertipdesigner.core.modules.artist.entity.NailArtistInfoDO;
|
||||
import com.xiaowang.fingertipdesigner.core.modules.artist.mapper.NailArtistInfoMapper;
|
||||
import com.xiaowang.fingertipdesigner.core.modules.user.mapper.UserMapper;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.springframework.stereotype.Component;
|
||||
import org.springframework.util.StringUtils;
|
||||
@@ -13,7 +13,7 @@ import java.util.LinkedHashSet;
|
||||
import java.util.Set;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
import com.xiaowang.yuminailcore.modules.shop.support.UserShopBindingSupport;
|
||||
import com.xiaowang.fingertipdesigner.core.modules.shop.support.UserShopBindingSupport;
|
||||
@Component
|
||||
@RequiredArgsConstructor
|
||||
/**
|
||||
+2
-2
@@ -1,11 +1,11 @@
|
||||
package com.xiaowang.yuminailcore.modules.artist.vo;
|
||||
package com.xiaowang.fingertipdesigner.core.modules.artist.vo;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
import com.xiaowang.yuminailcore.modules.order.support.OrderStatus;
|
||||
import com.xiaowang.fingertipdesigner.core.modules.order.support.OrderStatus;
|
||||
@Data
|
||||
/**
|
||||
* ArtistCalendarAppointmentVO is a response VO. Services build it and controllers return it to the frontend.
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package com.xiaowang.yuminailcore.modules.artist.vo;
|
||||
package com.xiaowang.fingertipdesigner.core.modules.artist.vo;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package com.xiaowang.yuminailcore.modules.artist.vo;
|
||||
package com.xiaowang.fingertipdesigner.core.modules.artist.vo;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package com.xiaowang.yuminailcore.modules.artist.vo;
|
||||
package com.xiaowang.fingertipdesigner.core.modules.artist.vo;
|
||||
|
||||
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
|
||||
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package com.xiaowang.yuminailcore.modules.artist.vo;
|
||||
package com.xiaowang.fingertipdesigner.core.modules.artist.vo;
|
||||
|
||||
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
|
||||
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package com.xiaowang.yuminailcore.modules.artist.vo;
|
||||
package com.xiaowang.fingertipdesigner.core.modules.artist.vo;
|
||||
|
||||
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
|
||||
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
|
||||
+14
-14
@@ -1,18 +1,18 @@
|
||||
package com.xiaowang.yuminailcore.modules.auth.controller.admin;
|
||||
package com.xiaowang.fingertipdesigner.core.modules.auth.controller.admin;
|
||||
|
||||
import com.xiaowang.yuminailcore.annotation.OperationGuard;
|
||||
import com.xiaowang.yuminailcore.common.Result;
|
||||
import com.xiaowang.yuminailcore.modules.auth.dto.LoginRequestDTO;
|
||||
import com.xiaowang.yuminailcore.modules.planning.dto.PlanningManagerRegisterDTO;
|
||||
import com.xiaowang.yuminailcore.modules.auth.dto.RefreshTokenRequestDTO;
|
||||
import com.xiaowang.yuminailcore.modules.auth.dto.SwitchShopRequestDTO;
|
||||
import com.xiaowang.yuminailcore.modules.user.service.UserService;
|
||||
import com.xiaowang.yuminailcore.modules.security.service.SecurityAuditLogService;
|
||||
import com.xiaowang.yuminailcore.support.security.RequestThrottleService;
|
||||
import com.xiaowang.yuminailcore.support.security.OperationGuardStrategy;
|
||||
import com.xiaowang.yuminailcore.utils.AccountValidationUtils;
|
||||
import com.xiaowang.yuminailcore.modules.auth.vo.LoginShopSelectionVO;
|
||||
import com.xiaowang.yuminailcore.modules.auth.vo.LoginResponseVO;
|
||||
import com.xiaowang.fingertipdesigner.core.annotation.OperationGuard;
|
||||
import com.xiaowang.fingertipdesigner.core.common.Result;
|
||||
import com.xiaowang.fingertipdesigner.core.modules.auth.dto.LoginRequestDTO;
|
||||
import com.xiaowang.fingertipdesigner.core.modules.planning.dto.PlanningManagerRegisterDTO;
|
||||
import com.xiaowang.fingertipdesigner.core.modules.auth.dto.RefreshTokenRequestDTO;
|
||||
import com.xiaowang.fingertipdesigner.core.modules.auth.dto.SwitchShopRequestDTO;
|
||||
import com.xiaowang.fingertipdesigner.core.modules.user.service.UserService;
|
||||
import com.xiaowang.fingertipdesigner.core.modules.security.service.SecurityAuditLogService;
|
||||
import com.xiaowang.fingertipdesigner.core.support.security.RequestThrottleService;
|
||||
import com.xiaowang.fingertipdesigner.core.support.security.OperationGuardStrategy;
|
||||
import com.xiaowang.fingertipdesigner.core.utils.AccountValidationUtils;
|
||||
import com.xiaowang.fingertipdesigner.core.modules.auth.vo.LoginShopSelectionVO;
|
||||
import com.xiaowang.fingertipdesigner.core.modules.auth.vo.LoginResponseVO;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
+5
-5
@@ -1,9 +1,9 @@
|
||||
package com.xiaowang.yuminailcore.modules.auth.controller.front;
|
||||
package com.xiaowang.fingertipdesigner.core.modules.auth.controller.front;
|
||||
|
||||
import com.xiaowang.yuminailcore.common.Result;
|
||||
import com.xiaowang.yuminailcore.modules.auth.dto.LoginIdentityDTO;
|
||||
import com.xiaowang.yuminailcore.modules.auth.vo.LoginIdentityVO;
|
||||
import com.xiaowang.yuminailcore.modules.auth.service.LoginIdentityService;
|
||||
import com.xiaowang.fingertipdesigner.core.common.Result;
|
||||
import com.xiaowang.fingertipdesigner.core.modules.auth.dto.LoginIdentityDTO;
|
||||
import com.xiaowang.fingertipdesigner.core.modules.auth.vo.LoginIdentityVO;
|
||||
import com.xiaowang.fingertipdesigner.core.modules.auth.service.LoginIdentityService;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package com.xiaowang.yuminailcore.modules.auth.dto;
|
||||
package com.xiaowang.fingertipdesigner.core.modules.auth.dto;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package com.xiaowang.yuminailcore.modules.auth.dto;
|
||||
package com.xiaowang.fingertipdesigner.core.modules.auth.dto;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonAlias;
|
||||
import lombok.Data;
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package com.xiaowang.yuminailcore.modules.auth.dto;
|
||||
package com.xiaowang.fingertipdesigner.core.modules.auth.dto;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
+3
-3
@@ -1,6 +1,6 @@
|
||||
package com.xiaowang.yuminailcore.modules.auth.dto;
|
||||
package com.xiaowang.fingertipdesigner.core.modules.auth.dto;
|
||||
|
||||
import com.xiaowang.yuminailcore.utils.AccountValidationUtils;
|
||||
import com.xiaowang.fingertipdesigner.core.utils.AccountValidationUtils;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
@@ -8,7 +8,7 @@ import javax.validation.constraints.NotBlank;
|
||||
import javax.validation.constraints.Pattern;
|
||||
import java.util.Map;
|
||||
|
||||
import com.xiaowang.yuminailcore.common.dto.AgreementAwareRequest;
|
||||
import com.xiaowang.fingertipdesigner.core.common.dto.AgreementAwareRequest;
|
||||
/**
|
||||
* 登录请求 DTO
|
||||
* 用于用户账号密码登录
|
||||
+2
-2
@@ -1,11 +1,11 @@
|
||||
package com.xiaowang.yuminailcore.modules.auth.dto;
|
||||
package com.xiaowang.fingertipdesigner.core.modules.auth.dto;
|
||||
|
||||
import lombok.Data;
|
||||
import javax.validation.constraints.NotBlank;
|
||||
import javax.validation.constraints.Pattern;
|
||||
import java.util.Map;
|
||||
|
||||
import com.xiaowang.yuminailcore.common.dto.AgreementAwareRequest;
|
||||
import com.xiaowang.fingertipdesigner.core.common.dto.AgreementAwareRequest;
|
||||
/**
|
||||
* 手机号验证码登录请求 DTO
|
||||
*
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package com.xiaowang.yuminailcore.modules.auth.dto;
|
||||
package com.xiaowang.fingertipdesigner.core.modules.auth.dto;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
+3
-3
@@ -1,12 +1,12 @@
|
||||
package com.xiaowang.yuminailcore.modules.auth.dto;
|
||||
package com.xiaowang.fingertipdesigner.core.modules.auth.dto;
|
||||
|
||||
import com.xiaowang.yuminailcore.utils.AccountValidationUtils;
|
||||
import com.xiaowang.fingertipdesigner.core.utils.AccountValidationUtils;
|
||||
import lombok.Data;
|
||||
import javax.validation.constraints.NotBlank;
|
||||
import javax.validation.constraints.Pattern;
|
||||
import java.util.Map;
|
||||
|
||||
import com.xiaowang.yuminailcore.common.dto.AgreementAwareRequest;
|
||||
import com.xiaowang.fingertipdesigner.core.common.dto.AgreementAwareRequest;
|
||||
/**
|
||||
* 注册请求 DTO
|
||||
*
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package com.xiaowang.yuminailcore.modules.auth.dto;
|
||||
package com.xiaowang.fingertipdesigner.core.modules.auth.dto;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
+2
-2
@@ -1,4 +1,4 @@
|
||||
package com.xiaowang.yuminailcore.modules.auth.dto;
|
||||
package com.xiaowang.fingertipdesigner.core.modules.auth.dto;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
@@ -19,7 +19,7 @@ public class SendVerificationCodeRequestDTO {
|
||||
private String phone;
|
||||
|
||||
/**
|
||||
* 业务场景编码,用来选择 YumiNail 投递 MessageHub 时的配置。
|
||||
* 业务场景编码,用来选择 FingertipDesigner 投递 MessageHub 时的配置。
|
||||
*/
|
||||
private String sceneCode;
|
||||
}
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package com.xiaowang.yuminailcore.modules.auth.dto;
|
||||
package com.xiaowang.fingertipdesigner.core.modules.auth.dto;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package com.xiaowang.yuminailcore.modules.auth.dto;
|
||||
package com.xiaowang.fingertipdesigner.core.modules.auth.dto;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
+2
-2
@@ -1,4 +1,4 @@
|
||||
package com.xiaowang.yuminailcore.modules.auth.entity;
|
||||
package com.xiaowang.fingertipdesigner.core.modules.auth.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
@@ -7,7 +7,7 @@ import lombok.EqualsAndHashCode;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
import com.xiaowang.yuminailcore.common.entity.BaseEntity;
|
||||
import com.xiaowang.fingertipdesigner.core.common.entity.BaseEntity;
|
||||
/**
|
||||
* 用户登录标识信息表 DO
|
||||
* 对应数据库表 t_login_identity
|
||||
+2
-2
@@ -1,7 +1,7 @@
|
||||
package com.xiaowang.yuminailcore.modules.auth.mapper;
|
||||
package com.xiaowang.fingertipdesigner.core.modules.auth.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.xiaowang.yuminailcore.modules.auth.entity.LoginIdentityDO;
|
||||
import com.xiaowang.fingertipdesigner.core.modules.auth.entity.LoginIdentityDO;
|
||||
|
||||
/**
|
||||
* 用户登录标识信息表 Mapper
|
||||
+4
-4
@@ -1,9 +1,9 @@
|
||||
package com.xiaowang.yuminailcore.modules.auth.service;
|
||||
package com.xiaowang.fingertipdesigner.core.modules.auth.service;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.xiaowang.yuminailcore.modules.auth.entity.LoginIdentityDO;
|
||||
import com.xiaowang.yuminailcore.modules.auth.dto.LoginIdentityDTO;
|
||||
import com.xiaowang.yuminailcore.modules.auth.vo.LoginIdentityVO;
|
||||
import com.xiaowang.fingertipdesigner.core.modules.auth.entity.LoginIdentityDO;
|
||||
import com.xiaowang.fingertipdesigner.core.modules.auth.dto.LoginIdentityDTO;
|
||||
import com.xiaowang.fingertipdesigner.core.modules.auth.vo.LoginIdentityVO;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
+2
-2
@@ -1,7 +1,7 @@
|
||||
package com.xiaowang.yuminailcore.modules.auth.service;
|
||||
package com.xiaowang.fingertipdesigner.core.modules.auth.service;
|
||||
|
||||
|
||||
import com.xiaowang.yuminailcore.common.Result;
|
||||
import com.xiaowang.fingertipdesigner.core.common.Result;
|
||||
/**
|
||||
* 验证码服务接口
|
||||
*
|
||||
+7
-7
@@ -1,19 +1,19 @@
|
||||
package com.xiaowang.yuminailcore.modules.auth.service.impl;
|
||||
package com.xiaowang.fingertipdesigner.core.modules.auth.service.impl;
|
||||
|
||||
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import com.xiaowang.yuminailcore.modules.auth.dto.LoginIdentityDTO;
|
||||
import com.xiaowang.yuminailcore.modules.auth.entity.LoginIdentityDO;
|
||||
import com.xiaowang.yuminailcore.modules.auth.mapper.LoginIdentityMapper;
|
||||
import com.xiaowang.yuminailcore.modules.auth.service.LoginIdentityService;
|
||||
import com.xiaowang.yuminailcore.modules.auth.vo.LoginIdentityVO;
|
||||
import com.xiaowang.fingertipdesigner.core.modules.auth.dto.LoginIdentityDTO;
|
||||
import com.xiaowang.fingertipdesigner.core.modules.auth.entity.LoginIdentityDO;
|
||||
import com.xiaowang.fingertipdesigner.core.modules.auth.mapper.LoginIdentityMapper;
|
||||
import com.xiaowang.fingertipdesigner.core.modules.auth.service.LoginIdentityService;
|
||||
import com.xiaowang.fingertipdesigner.core.modules.auth.vo.LoginIdentityVO;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
import com.xiaowang.yuminailcore.common.Result;
|
||||
import com.xiaowang.fingertipdesigner.core.common.Result;
|
||||
/**
|
||||
* 用户登录标识信息表 Service 实现
|
||||
* 对应数据库表 t_login_identity
|
||||
+4
-4
@@ -1,7 +1,7 @@
|
||||
package com.xiaowang.yuminailcore.modules.auth.service.impl;
|
||||
package com.xiaowang.fingertipdesigner.core.modules.auth.service.impl;
|
||||
|
||||
import com.xiaowang.yuminailcore.modules.integration.service.MessageHubClientService;
|
||||
import com.xiaowang.yuminailcore.modules.auth.service.VerificationCodeService;
|
||||
import com.xiaowang.fingertipdesigner.core.modules.integration.service.MessageHubClientService;
|
||||
import com.xiaowang.fingertipdesigner.core.modules.auth.service.VerificationCodeService;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.data.redis.core.StringRedisTemplate;
|
||||
@@ -10,7 +10,7 @@ import org.springframework.stereotype.Service;
|
||||
import java.security.SecureRandom;
|
||||
import java.time.Duration;
|
||||
|
||||
import com.xiaowang.yuminailcore.common.Result;
|
||||
import com.xiaowang.fingertipdesigner.core.common.Result;
|
||||
/**
|
||||
* 验证码服务实现。
|
||||
*/
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package com.xiaowang.yuminailcore.modules.auth.vo;
|
||||
package com.xiaowang.fingertipdesigner.core.modules.auth.vo;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package com.xiaowang.yuminailcore.modules.auth.vo;
|
||||
package com.xiaowang.fingertipdesigner.core.modules.auth.vo;
|
||||
|
||||
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
|
||||
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
|
||||
+2
-2
@@ -1,11 +1,11 @@
|
||||
package com.xiaowang.yuminailcore.modules.auth.vo;
|
||||
package com.xiaowang.fingertipdesigner.core.modules.auth.vo;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
import com.xiaowang.yuminailcore.modules.shop.vo.ShopSimpleVO;
|
||||
import com.xiaowang.fingertipdesigner.core.modules.shop.vo.ShopSimpleVO;
|
||||
/**
|
||||
* 登录页可选店铺结果。
|
||||
*/
|
||||
+7
-7
@@ -1,11 +1,11 @@
|
||||
package com.xiaowang.yuminailcore.modules.content.controller.admin;
|
||||
package com.xiaowang.fingertipdesigner.core.modules.content.controller.admin;
|
||||
|
||||
import com.xiaowang.yuminailcore.annotation.RequirePermission;
|
||||
import com.xiaowang.yuminailcore.common.Result;
|
||||
import com.xiaowang.yuminailcore.modules.user.entity.UserDO;
|
||||
import com.xiaowang.yuminailcore.modules.content.service.CommentService;
|
||||
import com.xiaowang.yuminailcore.modules.security.support.AdminScopeHelper;
|
||||
import com.xiaowang.yuminailcore.modules.content.vo.CommentVO;
|
||||
import com.xiaowang.fingertipdesigner.core.annotation.RequirePermission;
|
||||
import com.xiaowang.fingertipdesigner.core.common.Result;
|
||||
import com.xiaowang.fingertipdesigner.core.modules.user.entity.UserDO;
|
||||
import com.xiaowang.fingertipdesigner.core.modules.content.service.CommentService;
|
||||
import com.xiaowang.fingertipdesigner.core.modules.security.support.AdminScopeHelper;
|
||||
import com.xiaowang.fingertipdesigner.core.modules.content.vo.CommentVO;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
+16
-16
@@ -1,20 +1,20 @@
|
||||
package com.xiaowang.yuminailcore.modules.content.controller.front;
|
||||
package com.xiaowang.fingertipdesigner.core.modules.content.controller.front;
|
||||
|
||||
import com.xiaowang.yuminailcore.annotation.OperationGuard;
|
||||
import com.xiaowang.yuminailcore.common.Result;
|
||||
import com.xiaowang.yuminailcore.config.ObjectStorageProperties;
|
||||
import com.xiaowang.yuminailcore.modules.content.dto.CommentDTO;
|
||||
import com.xiaowang.yuminailcore.modules.content.service.CommentService;
|
||||
import com.xiaowang.yuminailcore.modules.content.vo.CommentVO;
|
||||
import com.xiaowang.yuminailcore.modules.file.dto.ChunkUploadCompleteRequestDTO;
|
||||
import com.xiaowang.yuminailcore.modules.file.dto.ChunkUploadInitRequestDTO;
|
||||
import com.xiaowang.yuminailcore.modules.file.dto.ObjectStorageFileDTO;
|
||||
import com.xiaowang.yuminailcore.modules.file.service.ChunkUploadService;
|
||||
import com.xiaowang.yuminailcore.modules.file.service.ObjectStorageFileService;
|
||||
import com.xiaowang.yuminailcore.modules.file.service.PrimaryObjectStorageService;
|
||||
import com.xiaowang.yuminailcore.modules.file.vo.ObjectStorageFileVO;
|
||||
import com.xiaowang.yuminailcore.support.id.TimeOrderedSnowflakeIdGenerator;
|
||||
import com.xiaowang.yuminailcore.support.security.UploadSecurityValidator;
|
||||
import com.xiaowang.fingertipdesigner.core.annotation.OperationGuard;
|
||||
import com.xiaowang.fingertipdesigner.core.common.Result;
|
||||
import com.xiaowang.fingertipdesigner.core.config.ObjectStorageProperties;
|
||||
import com.xiaowang.fingertipdesigner.core.modules.content.dto.CommentDTO;
|
||||
import com.xiaowang.fingertipdesigner.core.modules.content.service.CommentService;
|
||||
import com.xiaowang.fingertipdesigner.core.modules.content.vo.CommentVO;
|
||||
import com.xiaowang.fingertipdesigner.core.modules.file.dto.ChunkUploadCompleteRequestDTO;
|
||||
import com.xiaowang.fingertipdesigner.core.modules.file.dto.ChunkUploadInitRequestDTO;
|
||||
import com.xiaowang.fingertipdesigner.core.modules.file.dto.ObjectStorageFileDTO;
|
||||
import com.xiaowang.fingertipdesigner.core.modules.file.service.ChunkUploadService;
|
||||
import com.xiaowang.fingertipdesigner.core.modules.file.service.ObjectStorageFileService;
|
||||
import com.xiaowang.fingertipdesigner.core.modules.file.service.PrimaryObjectStorageService;
|
||||
import com.xiaowang.fingertipdesigner.core.modules.file.vo.ObjectStorageFileVO;
|
||||
import com.xiaowang.fingertipdesigner.core.support.id.TimeOrderedSnowflakeIdGenerator;
|
||||
import com.xiaowang.fingertipdesigner.core.support.security.UploadSecurityValidator;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package com.xiaowang.yuminailcore.modules.content.dto;
|
||||
package com.xiaowang.fingertipdesigner.core.modules.content.dto;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
+2
-2
@@ -1,11 +1,11 @@
|
||||
package com.xiaowang.yuminailcore.modules.content.entity;
|
||||
package com.xiaowang.fingertipdesigner.core.modules.content.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
import com.xiaowang.yuminailcore.common.entity.BaseEntity;
|
||||
import com.xiaowang.fingertipdesigner.core.common.entity.BaseEntity;
|
||||
/**
|
||||
* 用户评论信息表 DO
|
||||
* 对应数据库表 t_comment
|
||||
+2
-2
@@ -1,7 +1,7 @@
|
||||
package com.xiaowang.yuminailcore.modules.content.mapper;
|
||||
package com.xiaowang.fingertipdesigner.core.modules.content.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.xiaowang.yuminailcore.modules.content.entity.CommentDO;
|
||||
import com.xiaowang.fingertipdesigner.core.modules.content.entity.CommentDO;
|
||||
|
||||
/**
|
||||
* 用户评论信息表 Mapper
|
||||
+5
-5
@@ -1,13 +1,13 @@
|
||||
package com.xiaowang.yuminailcore.modules.content.service;
|
||||
package com.xiaowang.fingertipdesigner.core.modules.content.service;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.xiaowang.yuminailcore.modules.content.entity.CommentDO;
|
||||
import com.xiaowang.yuminailcore.modules.content.dto.CommentDTO;
|
||||
import com.xiaowang.yuminailcore.modules.content.vo.CommentVO;
|
||||
import com.xiaowang.fingertipdesigner.core.modules.content.entity.CommentDO;
|
||||
import com.xiaowang.fingertipdesigner.core.modules.content.dto.CommentDTO;
|
||||
import com.xiaowang.fingertipdesigner.core.modules.content.vo.CommentVO;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.xiaowang.yuminailcore.common.Result;
|
||||
import com.xiaowang.fingertipdesigner.core.common.Result;
|
||||
/**
|
||||
* 用户评论信息表 Service
|
||||
* 对应数据库表 t_comment
|
||||
+16
-16
@@ -1,21 +1,21 @@
|
||||
package com.xiaowang.yuminailcore.modules.content.service.impl;
|
||||
package com.xiaowang.fingertipdesigner.core.modules.content.service.impl;
|
||||
|
||||
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import com.xiaowang.yuminailcore.modules.content.dto.CommentDTO;
|
||||
import com.xiaowang.yuminailcore.modules.content.entity.CommentDO;
|
||||
import com.xiaowang.yuminailcore.modules.product.entity.ProductDO;
|
||||
import com.xiaowang.yuminailcore.modules.shop.entity.ShopDO;
|
||||
import com.xiaowang.yuminailcore.modules.user.entity.UserDO;
|
||||
import com.xiaowang.yuminailcore.modules.content.mapper.CommentMapper;
|
||||
import com.xiaowang.yuminailcore.modules.product.mapper.ProductMapper;
|
||||
import com.xiaowang.yuminailcore.modules.shop.mapper.ShopMapper;
|
||||
import com.xiaowang.yuminailcore.modules.user.mapper.UserMapper;
|
||||
import com.xiaowang.yuminailcore.modules.content.service.CommentService;
|
||||
import com.xiaowang.yuminailcore.modules.file.service.ObjectStorageFileService;
|
||||
import com.xiaowang.yuminailcore.modules.file.support.ObjectStorageUrlSupport;
|
||||
import com.xiaowang.yuminailcore.modules.content.vo.CommentVO;
|
||||
import com.xiaowang.yuminailcore.modules.file.vo.ObjectStorageFileVO;
|
||||
import com.xiaowang.fingertipdesigner.core.modules.content.dto.CommentDTO;
|
||||
import com.xiaowang.fingertipdesigner.core.modules.content.entity.CommentDO;
|
||||
import com.xiaowang.fingertipdesigner.core.modules.product.entity.ProductDO;
|
||||
import com.xiaowang.fingertipdesigner.core.modules.shop.entity.ShopDO;
|
||||
import com.xiaowang.fingertipdesigner.core.modules.user.entity.UserDO;
|
||||
import com.xiaowang.fingertipdesigner.core.modules.content.mapper.CommentMapper;
|
||||
import com.xiaowang.fingertipdesigner.core.modules.product.mapper.ProductMapper;
|
||||
import com.xiaowang.fingertipdesigner.core.modules.shop.mapper.ShopMapper;
|
||||
import com.xiaowang.fingertipdesigner.core.modules.user.mapper.UserMapper;
|
||||
import com.xiaowang.fingertipdesigner.core.modules.content.service.CommentService;
|
||||
import com.xiaowang.fingertipdesigner.core.modules.file.service.ObjectStorageFileService;
|
||||
import com.xiaowang.fingertipdesigner.core.modules.file.support.ObjectStorageUrlSupport;
|
||||
import com.xiaowang.fingertipdesigner.core.modules.content.vo.CommentVO;
|
||||
import com.xiaowang.fingertipdesigner.core.modules.file.vo.ObjectStorageFileVO;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.util.StringUtils;
|
||||
@@ -29,7 +29,7 @@ import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
import com.xiaowang.yuminailcore.common.Result;
|
||||
import com.xiaowang.fingertipdesigner.core.common.Result;
|
||||
/**
|
||||
* 用户评论信息表 Service 实现
|
||||
* 对应数据库表 t_comment
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package com.xiaowang.yuminailcore.modules.content.vo;
|
||||
package com.xiaowang.fingertipdesigner.core.modules.content.vo;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package com.xiaowang.yuminailcore.modules.file.config;
|
||||
package com.xiaowang.fingertipdesigner.core.modules.file.config;
|
||||
|
||||
import com.aliyun.oss.OSS;
|
||||
import com.aliyun.oss.OSSClientBuilder;
|
||||
+52
@@ -0,0 +1,52 @@
|
||||
package com.xiaowang.fingertipdesigner.core.modules.file.config;
|
||||
|
||||
import io.minio.MinioClient;
|
||||
import lombok.Data;
|
||||
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
|
||||
import org.springframework.boot.context.properties.ConfigurationProperties;
|
||||
import org.springframework.context.annotation.Bean;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
import org.springframework.util.StringUtils;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
|
||||
import javax.validation.constraints.Min;
|
||||
import javax.validation.constraints.NotNull;
|
||||
|
||||
@Data
|
||||
@Configuration
|
||||
@Validated
|
||||
@ConfigurationProperties(prefix = "minio")
|
||||
public class MinioStorageConfig {
|
||||
|
||||
@NotNull
|
||||
private Boolean enabled;
|
||||
|
||||
private String endpoint;
|
||||
|
||||
private String bucketName;
|
||||
|
||||
private String accessKey;
|
||||
|
||||
private String secretKey;
|
||||
|
||||
@NotNull
|
||||
private Boolean privateBucket;
|
||||
|
||||
@NotNull
|
||||
@Min(1)
|
||||
private Integer signedUrlExpireMinutes;
|
||||
|
||||
@Bean
|
||||
@ConditionalOnProperty(prefix = "minio", name = "enabled", havingValue = "true")
|
||||
public MinioClient minioClient() {
|
||||
if (!StringUtils.hasText(endpoint)
|
||||
|| !StringUtils.hasText(accessKey)
|
||||
|| !StringUtils.hasText(secretKey)) {
|
||||
throw new IllegalStateException("MinIO is enabled but endpoint/accessKey/secretKey is incomplete");
|
||||
}
|
||||
return MinioClient.builder()
|
||||
.endpoint(endpoint)
|
||||
.credentials(accessKey, secretKey)
|
||||
.build();
|
||||
}
|
||||
}
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package com.xiaowang.yuminailcore.modules.file.config;
|
||||
package com.xiaowang.fingertipdesigner.core.modules.file.config;
|
||||
|
||||
import com.qiniu.common.Zone;
|
||||
import com.qiniu.storage.BucketManager;
|
||||
+8
-8
@@ -1,12 +1,12 @@
|
||||
package com.xiaowang.yuminailcore.modules.file.controller.front;
|
||||
package com.xiaowang.fingertipdesigner.core.modules.file.controller.front;
|
||||
|
||||
import com.xiaowang.yuminailcore.common.Result;
|
||||
import com.xiaowang.yuminailcore.modules.product.mapper.EffectDiagramMapper;
|
||||
import com.xiaowang.yuminailcore.modules.product.mapper.ProductMapper;
|
||||
import com.xiaowang.yuminailcore.modules.shop.mapper.ShopMapper;
|
||||
import com.xiaowang.yuminailcore.modules.file.service.ObjectStorageFileService;
|
||||
import com.xiaowang.yuminailcore.modules.file.support.ObjectStorageUrlSupport;
|
||||
import com.xiaowang.yuminailcore.modules.file.vo.ObjectStorageFileVO;
|
||||
import com.xiaowang.fingertipdesigner.core.common.Result;
|
||||
import com.xiaowang.fingertipdesigner.core.modules.product.mapper.EffectDiagramMapper;
|
||||
import com.xiaowang.fingertipdesigner.core.modules.product.mapper.ProductMapper;
|
||||
import com.xiaowang.fingertipdesigner.core.modules.shop.mapper.ShopMapper;
|
||||
import com.xiaowang.fingertipdesigner.core.modules.file.service.ObjectStorageFileService;
|
||||
import com.xiaowang.fingertipdesigner.core.modules.file.support.ObjectStorageUrlSupport;
|
||||
import com.xiaowang.fingertipdesigner.core.modules.file.vo.ObjectStorageFileVO;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.springframework.util.StringUtils;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
+36
-28
@@ -1,20 +1,21 @@
|
||||
package com.xiaowang.yuminailcore.modules.file.controller.front;
|
||||
package com.xiaowang.fingertipdesigner.core.modules.file.controller.front;
|
||||
|
||||
import com.xiaowang.yuminailcore.annotation.OperationGuard;
|
||||
import com.xiaowang.yuminailcore.config.ObjectStorageProperties;
|
||||
import com.xiaowang.yuminailcore.common.Result;
|
||||
import com.xiaowang.yuminailcore.modules.file.dto.ChunkUploadCompleteRequestDTO;
|
||||
import com.xiaowang.yuminailcore.modules.file.dto.ChunkUploadInitRequestDTO;
|
||||
import com.xiaowang.yuminailcore.modules.file.dto.ObjectStorageFileDTO;
|
||||
import com.xiaowang.yuminailcore.modules.file.service.ChunkUploadService;
|
||||
import com.xiaowang.yuminailcore.modules.file.service.ObjectStorageFileService;
|
||||
import com.xiaowang.yuminailcore.modules.file.service.PrimaryObjectStorageService;
|
||||
import com.xiaowang.yuminailcore.modules.file.support.ObjectStorageUrlSupport;
|
||||
import com.xiaowang.yuminailcore.support.id.TimeOrderedSnowflakeIdGenerator;
|
||||
import com.xiaowang.yuminailcore.support.security.OperationGuardStrategy;
|
||||
import com.xiaowang.yuminailcore.support.security.UploadSecurityValidator;
|
||||
import com.xiaowang.yuminailcore.modules.file.vo.ChunkUploadSessionVO;
|
||||
import com.xiaowang.yuminailcore.modules.file.vo.ObjectStorageFileVO;
|
||||
import com.xiaowang.fingertipdesigner.core.annotation.OperationGuard;
|
||||
import com.xiaowang.fingertipdesigner.core.config.ObjectStorageProperties;
|
||||
import com.xiaowang.fingertipdesigner.core.common.Result;
|
||||
import com.xiaowang.fingertipdesigner.core.modules.file.dto.ChunkUploadCompleteRequestDTO;
|
||||
import com.xiaowang.fingertipdesigner.core.modules.file.dto.ChunkUploadInitRequestDTO;
|
||||
import com.xiaowang.fingertipdesigner.core.modules.file.dto.ObjectStorageFileDTO;
|
||||
import com.xiaowang.fingertipdesigner.core.modules.file.dto.ObjectStorageUploadOutcome;
|
||||
import com.xiaowang.fingertipdesigner.core.modules.file.service.ChunkUploadService;
|
||||
import com.xiaowang.fingertipdesigner.core.modules.file.service.ObjectStorageFileService;
|
||||
import com.xiaowang.fingertipdesigner.core.modules.file.service.ObjectStorageOrchestrationService;
|
||||
import com.xiaowang.fingertipdesigner.core.modules.file.support.ObjectStorageUrlSupport;
|
||||
import com.xiaowang.fingertipdesigner.core.support.id.TimeOrderedSnowflakeIdGenerator;
|
||||
import com.xiaowang.fingertipdesigner.core.support.security.OperationGuardStrategy;
|
||||
import com.xiaowang.fingertipdesigner.core.support.security.UploadSecurityValidator;
|
||||
import com.xiaowang.fingertipdesigner.core.modules.file.vo.ChunkUploadSessionVO;
|
||||
import com.xiaowang.fingertipdesigner.core.modules.file.vo.ObjectStorageFileVO;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
@@ -46,9 +47,9 @@ public class ObjectStorageFileController {
|
||||
*/
|
||||
private final ObjectStorageFileService objectStorageFileService;
|
||||
/**
|
||||
* Variable `primaryObjectStorageService`: Spring-injected collaborator used by this class to finish database access, validation, or downstream calls.
|
||||
* Variable `objectStorageOrchestrationService`: Spring-injected collaborator used by this class to finish database access, validation, or downstream calls.
|
||||
*/
|
||||
private final PrimaryObjectStorageService primaryObjectStorageService;
|
||||
private final ObjectStorageOrchestrationService objectStorageOrchestrationService;
|
||||
/**
|
||||
* Variable `chunkUploadService`: Spring-injected collaborator used by this class to finish database access, validation, or downstream calls.
|
||||
*/
|
||||
@@ -102,7 +103,7 @@ public class ObjectStorageFileController {
|
||||
String fileExtension = originalFilename.substring(originalFilename.lastIndexOf("."));
|
||||
String objectName = snowflakeIdGenerator.nextIdString() + fileExtension;
|
||||
|
||||
String fileUrl = primaryObjectStorageService.uploadStream(
|
||||
ObjectStorageUploadOutcome uploadOutcome = objectStorageOrchestrationService.uploadPrimary(
|
||||
inputStream,
|
||||
preparedUploadFile.getFileSize(),
|
||||
preparedUploadFile.getContentType(),
|
||||
@@ -111,16 +112,17 @@ public class ObjectStorageFileController {
|
||||
|
||||
ObjectStorageFileDTO dto = new ObjectStorageFileDTO();
|
||||
dto.setFileName(originalFilename);
|
||||
dto.setFileUrl(fileUrl);
|
||||
dto.setFileUrl(uploadOutcome.getPrimaryUrl());
|
||||
dto.setObjectName(objectName);
|
||||
dto.setPrimaryProvider(objectStorageProperties.getPrimaryProvider());
|
||||
dto.setPrimaryUrl(fileUrl);
|
||||
dto.setBackupProvider(objectStorageProperties.getBackupProvider());
|
||||
dto.setPrimaryProvider(uploadOutcome.getPrimaryProvider());
|
||||
dto.setPrimaryUrl(uploadOutcome.getPrimaryUrl());
|
||||
dto.setBackupProvider(String.join(",", objectStorageProperties.getReplicaRequiredProviders()));
|
||||
dto.setContentType(preparedUploadFile.getContentType());
|
||||
dto.setFileSize(preparedUploadFile.getFileSize());
|
||||
dto.setPrimaryUploadStatus(1);
|
||||
dto.setBackupUploadStatus(0);
|
||||
dto.setBackupRetryCount(0);
|
||||
dto.setUploadAttempts(uploadOutcome.getAttempts());
|
||||
dto.setStatus(1);
|
||||
|
||||
Long fileId = objectStorageFileService.createObjectStorageFile(dto);
|
||||
@@ -159,20 +161,26 @@ public class ObjectStorageFileController {
|
||||
String fileExtension = originalFilename.substring(originalFilename.lastIndexOf("."));
|
||||
String objectName = snowflakeIdGenerator.nextIdString() + fileExtension;
|
||||
|
||||
String fileUrl = primaryObjectStorageService.uploadFile(file, objectName);
|
||||
ObjectStorageUploadOutcome uploadOutcome = objectStorageOrchestrationService.uploadPrimary(
|
||||
file.getInputStream(),
|
||||
file.getSize(),
|
||||
file.getContentType(),
|
||||
objectName
|
||||
);
|
||||
|
||||
ObjectStorageFileDTO dto = new ObjectStorageFileDTO();
|
||||
dto.setFileName(originalFilename);
|
||||
dto.setFileUrl(fileUrl);
|
||||
dto.setFileUrl(uploadOutcome.getPrimaryUrl());
|
||||
dto.setObjectName(objectName);
|
||||
dto.setPrimaryProvider(objectStorageProperties.getPrimaryProvider());
|
||||
dto.setPrimaryUrl(fileUrl);
|
||||
dto.setBackupProvider(objectStorageProperties.getBackupProvider());
|
||||
dto.setPrimaryProvider(uploadOutcome.getPrimaryProvider());
|
||||
dto.setPrimaryUrl(uploadOutcome.getPrimaryUrl());
|
||||
dto.setBackupProvider(String.join(",", objectStorageProperties.getReplicaRequiredProviders()));
|
||||
dto.setContentType(file.getContentType());
|
||||
dto.setFileSize(file.getSize());
|
||||
dto.setPrimaryUploadStatus(1);
|
||||
dto.setBackupUploadStatus(0);
|
||||
dto.setBackupRetryCount(0);
|
||||
dto.setUploadAttempts(uploadOutcome.getAttempts());
|
||||
dto.setStatus(1);
|
||||
|
||||
Long fileId = objectStorageFileService.createObjectStorageFile(dto);
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package com.xiaowang.yuminailcore.modules.file.dto;
|
||||
package com.xiaowang.fingertipdesigner.core.modules.file.dto;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user