更改目录结构

This commit is contained in:
liuyingfang
2024-03-02 18:31:44 +08:00
parent 8f7acca8e6
commit 0a70a66807
603 changed files with 2256 additions and 6114 deletions

View File

@@ -4,7 +4,7 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<artifactId>eladmin</artifactId>
<groupId>me.zhengjie</groupId>
<groupId>cn.ysk.cashier</groupId>
<version>2.6</version>
</parent>
<modelVersion>4.0.0</modelVersion>
@@ -21,7 +21,7 @@
<dependencies>
<!-- 同时需要common模块和logging模块只需要引入logging模块即可 -->
<dependency>
<groupId>me.zhengjie</groupId>
<groupId>cn.ysk.cashier</groupId>
<artifactId>eladmin-logging</artifactId>
<version>2.6</version>
</dependency>
@@ -34,7 +34,7 @@
</dependency>
<dependency>
<groupId>me.zhengjie</groupId>
<groupId>cn.ysk.cashier</groupId>
<artifactId>oss-service</artifactId>
<version>2.6</version>
</dependency>
@@ -45,7 +45,7 @@
<version>${alipay.version}</version>
</dependency>
<dependency>
<groupId>me.zhengjie</groupId>
<groupId>cn.ysk.cashier</groupId>
<artifactId>oss-service</artifactId>
<version>2.6</version>
<scope>compile</scope>

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package me.zhengjie.config;
package cn.ysk.cashier.config;
import org.springframework.boot.web.servlet.MultipartConfigFactory;
import org.springframework.context.annotation.Bean;

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package me.zhengjie.domain;
package cn.ysk.cashier.domain;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package me.zhengjie.domain;
package cn.ysk.cashier.domain;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

View File

@@ -13,13 +13,13 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package me.zhengjie.domain;
package cn.ysk.cashier.domain;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import cn.hutool.core.bean.BeanUtil;
import cn.hutool.core.bean.copier.CopyOptions;
import me.zhengjie.base.BaseEntity;
import cn.ysk.cashier.base.BaseEntity;
import javax.persistence.*;
import java.io.Serializable;

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package me.zhengjie.domain;
package cn.ysk.cashier.domain;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package me.zhengjie.domain;
package cn.ysk.cashier.domain;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package me.zhengjie.domain.vo;
package cn.ysk.cashier.domain.vo;
import lombok.AllArgsConstructor;
import lombok.Data;

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package me.zhengjie.domain.vo;
package cn.ysk.cashier.domain.vo;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

View File

@@ -13,9 +13,9 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package me.zhengjie.repository;
package cn.ysk.cashier.repository;
import me.zhengjie.domain.AlipayConfig;
import cn.ysk.cashier.domain.AlipayConfig;
import org.springframework.data.jpa.repository.JpaRepository;
/**

View File

@@ -13,9 +13,9 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package me.zhengjie.repository;
package cn.ysk.cashier.repository;
import me.zhengjie.domain.EmailConfig;
import cn.ysk.cashier.domain.EmailConfig;
import org.springframework.data.jpa.repository.JpaRepository;
/**

View File

@@ -13,9 +13,9 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package me.zhengjie.repository;
package cn.ysk.cashier.repository;
import me.zhengjie.domain.LocalStorage;
import cn.ysk.cashier.domain.LocalStorage;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

View File

@@ -13,9 +13,9 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package me.zhengjie.repository;
package cn.ysk.cashier.repository;
import me.zhengjie.domain.QiniuConfig;
import cn.ysk.cashier.domain.QiniuConfig;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;

View File

@@ -13,9 +13,9 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package me.zhengjie.repository;
package cn.ysk.cashier.repository;
import me.zhengjie.domain.QiniuContent;
import cn.ysk.cashier.domain.QiniuContent;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

View File

@@ -13,20 +13,20 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package me.zhengjie.rest;
package cn.ysk.cashier.rest;
import cn.ysk.cashier.annotation.Log;
import cn.ysk.cashier.annotation.rest.AnonymousGetMapping;
import cn.ysk.cashier.domain.AlipayConfig;
import cn.ysk.cashier.domain.vo.TradeVo;
import cn.ysk.cashier.service.AliPayService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import me.zhengjie.annotation.AnonymousAccess;
import me.zhengjie.annotation.Log;
import me.zhengjie.annotation.rest.AnonymousGetMapping;
import me.zhengjie.domain.vo.TradeVo;
import me.zhengjie.domain.AlipayConfig;
import me.zhengjie.utils.AliPayStatusEnum;
import me.zhengjie.utils.AlipayUtils;
import me.zhengjie.service.AliPayService;
import cn.ysk.cashier.annotation.AnonymousAccess;
import cn.ysk.cashier.utils.AliPayStatusEnum;
import cn.ysk.cashier.utils.AlipayUtils;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.validation.annotation.Validated;

View File

@@ -13,15 +13,15 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package me.zhengjie.rest;
package cn.ysk.cashier.rest;
import cn.ysk.cashier.annotation.Log;
import cn.ysk.cashier.domain.EmailConfig;
import cn.ysk.cashier.domain.vo.EmailVo;
import cn.ysk.cashier.service.EmailService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import me.zhengjie.annotation.Log;
import me.zhengjie.domain.vo.EmailVo;
import me.zhengjie.domain.EmailConfig;
import me.zhengjie.service.EmailService;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.validation.annotation.Validated;

View File

@@ -13,15 +13,15 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package me.zhengjie.rest;
package cn.ysk.cashier.rest;
import cn.ysk.cashier.annotation.Log;
import cn.ysk.cashier.domain.LocalStorage;
import cn.ysk.cashier.exception.BadRequestException;
import cn.ysk.cashier.service.LocalStorageService;
import cn.ysk.cashier.service.dto.LocalStorageQueryCriteria;
import cn.ysk.cashier.utils.FileUtil;
import lombok.RequiredArgsConstructor;
import me.zhengjie.annotation.Log;
import me.zhengjie.domain.LocalStorage;
import me.zhengjie.exception.BadRequestException;
import me.zhengjie.service.LocalStorageService;
import me.zhengjie.service.dto.LocalStorageQueryCriteria;
import me.zhengjie.utils.FileUtil;
import org.springframework.data.domain.Pageable;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;

View File

@@ -13,17 +13,17 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package me.zhengjie.rest;
package cn.ysk.cashier.rest;
import cn.ysk.cashier.annotation.Log;
import cn.ysk.cashier.domain.QiniuConfig;
import cn.ysk.cashier.domain.QiniuContent;
import cn.ysk.cashier.service.QiNiuService;
import cn.ysk.cashier.service.dto.QiniuQueryCriteria;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import me.zhengjie.annotation.Log;
import me.zhengjie.domain.QiniuConfig;
import me.zhengjie.domain.QiniuContent;
import me.zhengjie.service.dto.QiniuQueryCriteria;
import me.zhengjie.service.QiNiuService;
import org.springframework.data.domain.Pageable;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;

View File

@@ -13,10 +13,10 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package me.zhengjie.service;
package cn.ysk.cashier.service;
import me.zhengjie.domain.vo.TradeVo;
import me.zhengjie.domain.AlipayConfig;
import cn.ysk.cashier.domain.AlipayConfig;
import cn.ysk.cashier.domain.vo.TradeVo;
/**
* @author Zheng Jie

View File

@@ -13,10 +13,10 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package me.zhengjie.service;
package cn.ysk.cashier.service;
import me.zhengjie.domain.vo.EmailVo;
import me.zhengjie.domain.EmailConfig;
import cn.ysk.cashier.domain.EmailConfig;
import cn.ysk.cashier.domain.vo.EmailVo;
/**
* @author Zheng Jie

View File

@@ -13,11 +13,11 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package me.zhengjie.service;
package cn.ysk.cashier.service;
import me.zhengjie.domain.LocalStorage;
import me.zhengjie.service.dto.LocalStorageDto;
import me.zhengjie.service.dto.LocalStorageQueryCriteria;
import cn.ysk.cashier.domain.LocalStorage;
import cn.ysk.cashier.service.dto.LocalStorageDto;
import cn.ysk.cashier.service.dto.LocalStorageQueryCriteria;
import org.springframework.data.domain.Pageable;
import org.springframework.web.multipart.MultipartFile;
import javax.servlet.http.HttpServletResponse;

View File

@@ -13,12 +13,12 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package me.zhengjie.service;
package cn.ysk.cashier.service;
import cn.ysk.cashier.domain.QiniuConfig;
import cn.ysk.cashier.domain.QiniuContent;
import cn.ysk.cashier.service.dto.QiniuQueryCriteria;
import com.dianguang.cloud.ossservice.config.CloudStorageConfig;
import me.zhengjie.domain.QiniuConfig;
import me.zhengjie.domain.QiniuContent;
import me.zhengjie.service.dto.QiniuQueryCriteria;
import org.springframework.data.domain.Pageable;
import org.springframework.web.multipart.MultipartFile;

View File

@@ -13,11 +13,11 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package me.zhengjie.service.dto;
package cn.ysk.cashier.service.dto;
import lombok.Getter;
import lombok.Setter;
import me.zhengjie.base.BaseDTO;
import cn.ysk.cashier.base.BaseDTO;
import java.io.Serializable;
/**

View File

@@ -13,13 +13,13 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package me.zhengjie.service.dto;
package cn.ysk.cashier.service.dto;
import lombok.Data;
import java.sql.Timestamp;
import java.util.List;
import me.zhengjie.annotation.Query;
import cn.ysk.cashier.annotation.Query;
/**
* @author Zheng Jie

View File

@@ -13,10 +13,10 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package me.zhengjie.service.dto;
package cn.ysk.cashier.service.dto;
import lombok.Data;
import me.zhengjie.annotation.Query;
import cn.ysk.cashier.annotation.Query;
import java.sql.Timestamp;
import java.util.List;

View File

@@ -13,10 +13,10 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package me.zhengjie.service.dto;
package cn.ysk.cashier.service.dto;
import lombok.Data;
import me.zhengjie.annotation.Query;
import cn.ysk.cashier.annotation.Query;
import java.sql.Timestamp;
import java.util.List;

View File

@@ -13,18 +13,18 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package me.zhengjie.service.impl;
package cn.ysk.cashier.service.impl;
import cn.ysk.cashier.domain.AlipayConfig;
import cn.ysk.cashier.domain.vo.TradeVo;
import cn.ysk.cashier.exception.BadRequestException;
import com.alipay.api.AlipayClient;
import com.alipay.api.DefaultAlipayClient;
import com.alipay.api.request.AlipayTradePagePayRequest;
import com.alipay.api.request.AlipayTradeWapPayRequest;
import lombok.RequiredArgsConstructor;
import me.zhengjie.domain.vo.TradeVo;
import me.zhengjie.domain.AlipayConfig;
import me.zhengjie.exception.BadRequestException;
import me.zhengjie.repository.AliPayRepository;
import me.zhengjie.service.AliPayService;
import cn.ysk.cashier.repository.AliPayRepository;
import cn.ysk.cashier.service.AliPayService;
import org.springframework.cache.annotation.CacheConfig;
import org.springframework.cache.annotation.CachePut;
import org.springframework.cache.annotation.Cacheable;

View File

@@ -13,17 +13,17 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package me.zhengjie.service.impl;
package cn.ysk.cashier.service.impl;
import cn.hutool.extra.mail.Mail;
import cn.hutool.extra.mail.MailAccount;
import cn.ysk.cashier.domain.EmailConfig;
import cn.ysk.cashier.domain.vo.EmailVo;
import cn.ysk.cashier.exception.BadRequestException;
import lombok.RequiredArgsConstructor;
import me.zhengjie.domain.EmailConfig;
import me.zhengjie.domain.vo.EmailVo;
import me.zhengjie.exception.BadRequestException;
import me.zhengjie.repository.EmailRepository;
import me.zhengjie.service.EmailService;
import me.zhengjie.utils.EncryptUtils;
import cn.ysk.cashier.repository.EmailRepository;
import cn.ysk.cashier.service.EmailService;
import cn.ysk.cashier.utils.EncryptUtils;
import org.springframework.cache.annotation.CacheConfig;
import org.springframework.cache.annotation.CachePut;
import org.springframework.cache.annotation.Cacheable;

View File

@@ -13,19 +13,20 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package me.zhengjie.service.impl;
package cn.ysk.cashier.service.impl;
import cn.hutool.core.util.ObjectUtil;
import cn.ysk.cashier.domain.LocalStorage;
import cn.ysk.cashier.exception.BadRequestException;
import cn.ysk.cashier.utils.*;
import lombok.RequiredArgsConstructor;
import me.zhengjie.config.FileProperties;
import me.zhengjie.domain.LocalStorage;
import me.zhengjie.service.dto.LocalStorageDto;
import me.zhengjie.service.dto.LocalStorageQueryCriteria;
import me.zhengjie.service.mapstruct.LocalStorageMapper;
import me.zhengjie.exception.BadRequestException;
import me.zhengjie.utils.*;
import me.zhengjie.repository.LocalStorageRepository;
import me.zhengjie.service.LocalStorageService;
import cn.ysk.cashier.config.FileProperties;
import cn.ysk.cashier.service.dto.LocalStorageDto;
import cn.ysk.cashier.service.dto.LocalStorageQueryCriteria;
import cn.ysk.cashier.service.mapstruct.LocalStorageMapper;
import cn.ysk.cashier.utils.*;
import cn.ysk.cashier.repository.LocalStorageRepository;
import cn.ysk.cashier.service.LocalStorageService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import java.io.File;

View File

@@ -13,33 +13,29 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package me.zhengjie.service.impl;
package cn.ysk.cashier.service.impl;
import cn.hutool.core.util.ObjectUtil;
import com.alibaba.fastjson.JSON;
import cn.ysk.cashier.domain.QiniuConfig;
import cn.ysk.cashier.exception.BadRequestException;
import com.dianguang.cloud.ossservice.config.CloudStorageConfig;
import com.dianguang.cloud.ossservice.service.OSSFactory;
import com.qiniu.common.QiniuException;
import com.qiniu.http.Response;
import com.qiniu.storage.BucketManager;
import com.qiniu.storage.Configuration;
import com.qiniu.storage.UploadManager;
import com.qiniu.storage.model.DefaultPutRet;
import com.qiniu.storage.model.FileInfo;
import com.qiniu.util.Auth;
import lombok.RequiredArgsConstructor;
import me.zhengjie.domain.QiniuConfig;
import me.zhengjie.domain.QiniuContent;
import me.zhengjie.repository.QiniuContentRepository;
import me.zhengjie.service.dto.QiniuQueryCriteria;
import me.zhengjie.utils.QiNiuUtil;
import me.zhengjie.exception.BadRequestException;
import me.zhengjie.repository.QiNiuConfigRepository;
import me.zhengjie.service.QiNiuService;
import me.zhengjie.utils.FileUtil;
import me.zhengjie.utils.PageUtil;
import me.zhengjie.utils.QueryHelp;
import me.zhengjie.utils.ValidationUtil;
import cn.ysk.cashier.domain.QiniuContent;
import cn.ysk.cashier.repository.QiniuContentRepository;
import cn.ysk.cashier.service.dto.QiniuQueryCriteria;
import cn.ysk.cashier.utils.QiNiuUtil;
import cn.ysk.cashier.repository.QiNiuConfigRepository;
import cn.ysk.cashier.service.QiNiuService;
import cn.ysk.cashier.utils.FileUtil;
import cn.ysk.cashier.utils.PageUtil;
import cn.ysk.cashier.utils.QueryHelp;
import cn.ysk.cashier.utils.ValidationUtil;
import org.apache.commons.io.FilenameUtils;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.cache.annotation.CacheConfig;

View File

@@ -13,11 +13,11 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package me.zhengjie.service.mapstruct;
package cn.ysk.cashier.service.mapstruct;
import me.zhengjie.base.BaseMapper;
import me.zhengjie.service.dto.LocalStorageDto;
import me.zhengjie.domain.LocalStorage;
import cn.ysk.cashier.base.BaseMapper;
import cn.ysk.cashier.domain.LocalStorage;
import cn.ysk.cashier.service.dto.LocalStorageDto;
import org.mapstruct.Mapper;
import org.mapstruct.ReportingPolicy;

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package me.zhengjie.utils;
package cn.ysk.cashier.utils;
/**
* 支付状态

View File

@@ -13,11 +13,11 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package me.zhengjie.utils;
package cn.ysk.cashier.utils;
import cn.ysk.cashier.domain.AlipayConfig;
import com.alipay.api.AlipayApiException;
import com.alipay.api.internal.util.AlipaySignature;
import me.zhengjie.domain.AlipayConfig;
import org.springframework.stereotype.Component;
import javax.servlet.http.HttpServletRequest;
import java.text.SimpleDateFormat;

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package me.zhengjie.utils;
package cn.ysk.cashier.utils;
import com.qiniu.storage.Region;
import java.text.SimpleDateFormat;