更改目录结构

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>

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package me.zhengjie.annotation;
package cn.ysk.cashier.annotation;
import java.lang.annotation.*;

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package me.zhengjie.annotation;
package cn.ysk.cashier.annotation;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;

View File

@@ -13,9 +13,10 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package me.zhengjie.annotation;
package cn.ysk.cashier.annotation;
import cn.ysk.cashier.aspect.LimitType;
import me.zhengjie.aspect.LimitType;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package me.zhengjie.annotation;
package cn.ysk.cashier.annotation;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package me.zhengjie.annotation.rest;
package cn.ysk.cashier.annotation.rest;
import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
@@ -22,7 +22,7 @@ import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import me.zhengjie.annotation.AnonymousAccess;
import cn.ysk.cashier.annotation.AnonymousAccess;
import org.springframework.core.annotation.AliasFor;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package me.zhengjie.annotation.rest;
package cn.ysk.cashier.annotation.rest;
import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
@@ -22,7 +22,7 @@ import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import me.zhengjie.annotation.AnonymousAccess;
import cn.ysk.cashier.annotation.AnonymousAccess;
import org.springframework.core.annotation.AliasFor;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package me.zhengjie.annotation.rest;
package cn.ysk.cashier.annotation.rest;
import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
@@ -22,7 +22,7 @@ import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import me.zhengjie.annotation.AnonymousAccess;
import cn.ysk.cashier.annotation.AnonymousAccess;
import org.springframework.core.annotation.AliasFor;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package me.zhengjie.annotation.rest;
package cn.ysk.cashier.annotation.rest;
import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
@@ -22,7 +22,7 @@ import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import me.zhengjie.annotation.AnonymousAccess;
import cn.ysk.cashier.annotation.AnonymousAccess;
import org.springframework.core.annotation.AliasFor;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package me.zhengjie.annotation.rest;
package cn.ysk.cashier.annotation.rest;
import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
@@ -22,7 +22,7 @@ import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import me.zhengjie.annotation.AnonymousAccess;
import cn.ysk.cashier.annotation.AnonymousAccess;
import org.springframework.core.annotation.AliasFor;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

View File

@@ -13,13 +13,13 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package me.zhengjie.aspect;
package cn.ysk.cashier.aspect;
import cn.ysk.cashier.exception.BadRequestException;
import cn.ysk.cashier.utils.StringUtils;
import com.google.common.collect.ImmutableList;
import me.zhengjie.annotation.Limit;
import me.zhengjie.exception.BadRequestException;
import me.zhengjie.utils.RequestHolder;
import me.zhengjie.utils.StringUtils;
import cn.ysk.cashier.annotation.Limit;
import cn.ysk.cashier.utils.RequestHolder;
import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.annotation.Around;
import org.aspectj.lang.annotation.Aspect;
@@ -48,7 +48,7 @@ public class LimitAspect {
this.redisTemplate = redisTemplate;
}
@Pointcut("@annotation(me.zhengjie.annotation.Limit)")
@Pointcut("@annotation(cn.ysk.cashier.annotation.Limit)")
public void pointcut() {
}

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package me.zhengjie.aspect;
package cn.ysk.cashier.aspect;
/**
* 限流枚举

View File

@@ -1,4 +1,4 @@
package me.zhengjie.base;
package cn.ysk.cashier.base;
import lombok.Getter;
import lombok.Setter;

View File

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

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package me.zhengjie.base;
package cn.ysk.cashier.base;
import java.util.List;

View File

@@ -13,9 +13,9 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package me.zhengjie.config;
package cn.ysk.cashier.config;
import me.zhengjie.utils.SecurityUtils;
import cn.ysk.cashier.utils.SecurityUtils;
import org.springframework.data.domain.AuditorAware;
import org.springframework.stereotype.Component;
import java.util.Optional;

View File

@@ -13,10 +13,9 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package me.zhengjie.config;
package cn.ysk.cashier.config;
import lombok.Data;
import me.zhengjie.utils.StringUtils;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

View File

@@ -13,9 +13,9 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package me.zhengjie.config;
package cn.ysk.cashier.config;
import me.zhengjie.utils.SecurityUtils;
import cn.ysk.cashier.utils.SecurityUtils;
import org.springframework.security.core.GrantedAuthority;
import org.springframework.stereotype.Service;
import java.util.Arrays;

View File

@@ -13,10 +13,10 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package me.zhengjie.config;
package cn.ysk.cashier.config;
import lombok.Data;
import me.zhengjie.utils.ElAdminConstant;
import cn.ysk.cashier.utils.ElAdminConstant;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

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 cn.hutool.core.lang.Assert;
import com.alibaba.fastjson.JSON;
@@ -81,17 +81,17 @@ public class RedisConfig extends CachingConfigurerSupport {
template.setValueSerializer(fastJsonRedisSerializer);
template.setHashValueSerializer(fastJsonRedisSerializer);
// fastjson 升级到 1.2.83 后需要指定序列化白名单
ParserConfig.getGlobalInstance().addAccept("me.zhengjie.domain");
ParserConfig.getGlobalInstance().addAccept("me.zhengjie.service.dto");
ParserConfig.getGlobalInstance().addAccept("cn.ysk.cashier.pojo");
ParserConfig.getGlobalInstance().addAccept("cn.ysk.cashier.service");
// 模块内的实体类
ParserConfig.getGlobalInstance().addAccept("me.zhengjie.modules.mnt.domain");
ParserConfig.getGlobalInstance().addAccept("me.zhengjie.modules.quartz.domain");
ParserConfig.getGlobalInstance().addAccept("me.zhengjie.modules.system.domain");
// ParserConfig.getGlobalInstance().addAccept("cn.ysk.cashier.mnt.domain");
// ParserConfig.getGlobalInstance().addAccept("cn.ysk.cashier.quartz.domain");
// ParserConfig.getGlobalInstance().addAccept("cn.ysk.cashier.system.domain");
// 模块内的 Dto
ParserConfig.getGlobalInstance().addAccept("me.zhengjie.modules.mnt.service.dto");
ParserConfig.getGlobalInstance().addAccept("me.zhengjie.modules.quartz.service.dto");
ParserConfig.getGlobalInstance().addAccept("me.zhengjie.modules.security.service.dto");
ParserConfig.getGlobalInstance().addAccept("me.zhengjie.modules.system.service.dto");
ParserConfig.getGlobalInstance().addAccept("cn.ysk.cashier.mnt");
ParserConfig.getGlobalInstance().addAccept("cn.ysk.cashier.quartz");
ParserConfig.getGlobalInstance().addAccept("cn.ysk.cashier.config");
// ParserConfig.getGlobalInstance().addAccept("cn.ysk.cashier.system.service.dto");
// key的序列化采用StringRedisSerializer
template.setKeySerializer(new StringRedisSerializer());
template.setHashKeySerializer(new StringRedisSerializer());

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 lombok.Data;
import org.springframework.beans.factory.annotation.Value;

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 cn.hutool.core.collection.CollUtil;
import com.fasterxml.classmate.TypeResolver;

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package me.zhengjie.exception;
package cn.ysk.cashier.exception;
/**
* 统一关于错误配置信息 异常

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package me.zhengjie.exception;
package cn.ysk.cashier.exception;
import lombok.Getter;
import org.springframework.http.HttpStatus;

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package me.zhengjie.exception;
package cn.ysk.cashier.exception;
import org.springframework.util.StringUtils;

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package me.zhengjie.exception;
package cn.ysk.cashier.exception;
import org.springframework.util.StringUtils;

View File

@@ -1,4 +1,4 @@
package me.zhengjie.exception;
package cn.ysk.cashier.exception;
import lombok.Getter;
import org.springframework.http.HttpStatus;

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package me.zhengjie.exception.handler;
package cn.ysk.cashier.exception.handler;
import com.fasterxml.jackson.annotation.JsonFormat;
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.exception.handler;
package cn.ysk.cashier.exception.handler;
import lombok.extern.slf4j.Slf4j;
import me.zhengjie.exception.BadRequestException;
import me.zhengjie.exception.EntityExistException;
import me.zhengjie.exception.EntityNotFoundException;
import me.zhengjie.utils.ThrowableUtil;
import cn.ysk.cashier.exception.BadRequestException;
import cn.ysk.cashier.exception.EntityExistException;
import cn.ysk.cashier.exception.EntityNotFoundException;
import cn.ysk.cashier.utils.ThrowableUtil;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.security.authentication.BadCredentialsException;

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;
/**
* @author: liaojinlong

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package me.zhengjie.utils;
package cn.ysk.cashier.utils;
/**
* @author: liaojinlong

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 java.io.Closeable;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package me.zhengjie.utils;
package cn.ysk.cashier.utils;
import java.time.*;
import java.time.format.DateTimeFormatter;

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,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 javax.crypto.Cipher;
import javax.crypto.SecretKey;

View File

@@ -13,13 +13,13 @@
* 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.hutool.core.io.IoUtil;
import cn.hutool.core.util.IdUtil;
import cn.hutool.poi.excel.BigExcelWriter;
import cn.hutool.poi.excel.ExcelUtil;
import me.zhengjie.exception.BadRequestException;
import cn.ysk.cashier.exception.BadRequestException;
import org.apache.poi.util.IOUtils;
import org.apache.poi.xssf.streaming.SXSSFSheet;
import org.slf4j.Logger;

View File

@@ -1,4 +1,4 @@
package me.zhengjie.utils;
package cn.ysk.cashier.utils;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONArray;

View File

@@ -1,4 +1,4 @@
package me.zhengjie.utils;
package cn.ysk.cashier.utils;
import cn.hutool.core.util.ObjectUtil;

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 org.springframework.data.domain.Page;
import java.util.*;

View File

@@ -1,4 +1,4 @@
package me.zhengjie.utils;
package cn.ysk.cashier.utils;
import java.util.regex.Matcher;
import java.util.regex.Pattern;

View File

@@ -13,14 +13,14 @@
* 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.hutool.core.collection.CollUtil;
import cn.hutool.core.collection.CollectionUtil;
import cn.hutool.core.util.ObjectUtil;
import lombok.extern.slf4j.Slf4j;
import me.zhengjie.annotation.DataPermission;
import me.zhengjie.annotation.Query;
import cn.ysk.cashier.annotation.DataPermission;
import cn.ysk.cashier.annotation.Query;
import javax.persistence.criteria.*;
import java.lang.reflect.Field;
import java.util.*;

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.google.common.collect.Lists;
import com.google.common.collect.Sets;

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 org.springframework.web.context.request.RequestContextHolder;
import org.springframework.web.context.request.ServletRequestAttributes;

View File

@@ -1,4 +1,4 @@
package me.zhengjie.utils;
package cn.ysk.cashier.utils;
import cn.hutool.core.date.DateUtil;
import com.alibaba.fastjson.JSON;

View File

@@ -1,4 +1,4 @@
package me.zhengjie.utils;
package cn.ysk.cashier.utils;
import org.apache.commons.codec.binary.Base64;
import javax.crypto.Cipher;

View File

@@ -13,14 +13,14 @@
* 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.hutool.json.JSONArray;
import cn.hutool.json.JSONObject;
import cn.hutool.json.JSONUtil;
import cn.ysk.cashier.exception.BadRequestException;
import cn.ysk.cashier.utils.enums.DataScopeEnum;
import lombok.extern.slf4j.Slf4j;
import me.zhengjie.exception.BadRequestException;
import me.zhengjie.utils.enums.DataScopeEnum;
import org.springframework.http.HttpStatus;
import org.springframework.security.core.Authentication;
import org.springframework.security.core.context.SecurityContextHolder;

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 lombok.extern.slf4j.Slf4j;
import org.springframework.beans.BeansException;

View File

@@ -13,16 +13,14 @@
* 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.hutool.http.HttpUtil;
import cn.hutool.json.JSONObject;
import cn.hutool.json.JSONUtil;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONArray;
import lombok.extern.slf4j.Slf4j;
import me.zhengjie.config.ElAdminProperties;
import cn.ysk.cashier.config.ElAdminProperties;
import net.dreamlu.mica.ip2region.core.Ip2regionSearcher;
import net.dreamlu.mica.ip2region.core.IpInfo;
import nl.basjes.parse.useragent.UserAgent;
@@ -33,11 +31,6 @@ import java.net.NetworkInterface;
import java.net.UnknownHostException;
import java.util.*;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONArray;
import java.util.List;
/**
* @author Zheng Jie
* 字符串工具类, 继承org.apache.commons.lang3.StringUtils类

View File

@@ -1,4 +1,4 @@
package me.zhengjie.utils;
package cn.ysk.cashier.utils;
import java.util.concurrent.CompletableFuture;

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 java.io.PrintWriter;
import java.io.StringWriter;

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 cn.hutool.json.JSONArray;
import java.io.BufferedReader;

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.hutool.core.lang.Validator;
import cn.hutool.core.util.ObjectUtil;
import me.zhengjie.exception.BadRequestException;
import cn.ysk.cashier.exception.BadRequestException;
/**
* 验证工具

View File

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

View File

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

View File

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

View File

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

View File

@@ -1,4 +1,4 @@
package me.zhengjie.utils;
package cn.ysk.cashier.utils;
import org.junit.jupiter.api.Test;

View File

@@ -1,8 +1,8 @@
package me.zhengjie.utils;
package cn.ysk.cashier.utils;
import org.junit.jupiter.api.Test;
import static me.zhengjie.utils.EncryptUtils.*;
import static cn.ysk.cashier.utils.EncryptUtils.*;
import static org.junit.jupiter.api.Assertions.assertEquals;
public class EncryptUtilsTest {

View File

@@ -1,9 +1,9 @@
package me.zhengjie.utils;
package cn.ysk.cashier.utils;
import org.junit.jupiter.api.Test;
import org.springframework.mock.web.MockMultipartFile;
import static me.zhengjie.utils.FileUtil.*;
import static cn.ysk.cashier.utils.FileUtil.*;
import static org.junit.jupiter.api.Assertions.assertEquals;
public class FileUtilTest {

View File

@@ -1,4 +1,4 @@
package me.zhengjie.utils;
package cn.ysk.cashier.utils;
import org.junit.jupiter.api.Test;
import org.springframework.mock.web.MockHttpServletRequest;
@@ -6,11 +6,11 @@ import org.springframework.mock.web.MockHttpServletRequest;
import java.text.SimpleDateFormat;
import java.util.Date;
import static me.zhengjie.utils.StringUtils.getIp;
import static me.zhengjie.utils.StringUtils.getWeekDay;
import static me.zhengjie.utils.StringUtils.toCamelCase;
import static me.zhengjie.utils.StringUtils.toCapitalizeCamelCase;
import static me.zhengjie.utils.StringUtils.toUnderScoreCase;
import static cn.ysk.cashier.utils.StringUtils.getIp;
import static cn.ysk.cashier.utils.StringUtils.getWeekDay;
import static cn.ysk.cashier.utils.StringUtils.toCamelCase;
import static cn.ysk.cashier.utils.StringUtils.toCapitalizeCamelCase;
import static cn.ysk.cashier.utils.StringUtils.toUnderScoreCase;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertNull;

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>
@@ -18,7 +18,7 @@
<dependencies>
<dependency>
<groupId>me.zhengjie</groupId>
<groupId>cn.ysk.cashier</groupId>
<artifactId>eladmin-common</artifactId>
<version>2.6</version>
</dependency>

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.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import me.zhengjie.utils.GenUtil;
import cn.ysk.cashier.utils.GenUtil;
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.Getter;

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,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.ColumnInfo;
import cn.ysk.cashier.domain.ColumnInfo;
import org.springframework.data.jpa.repository.JpaRepository;
import java.util.List;

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.GenConfig;
import cn.ysk.cashier.domain.GenConfig;
import org.springframework.data.jpa.repository.JpaRepository;
/**

View File

@@ -13,13 +13,13 @@
* 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.domain.GenConfig;
import cn.ysk.cashier.service.GenConfigService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import me.zhengjie.domain.GenConfig;
import me.zhengjie.service.GenConfigService;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.validation.annotation.Validated;

View File

@@ -13,16 +13,16 @@
* 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.domain.ColumnInfo;
import cn.ysk.cashier.exception.BadRequestException;
import cn.ysk.cashier.service.GenConfigService;
import cn.ysk.cashier.service.GeneratorService;
import cn.ysk.cashier.utils.PageUtil;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import me.zhengjie.domain.ColumnInfo;
import me.zhengjie.exception.BadRequestException;
import me.zhengjie.service.GenConfigService;
import me.zhengjie.service.GeneratorService;
import me.zhengjie.utils.PageUtil;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;

View File

@@ -13,9 +13,9 @@
* 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.GenConfig;
import cn.ysk.cashier.domain.GenConfig;
/**
* @author Zheng Jie

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 me.zhengjie.domain.GenConfig;
import me.zhengjie.domain.ColumnInfo;
import cn.ysk.cashier.domain.GenConfig;
import cn.ysk.cashier.domain.ColumnInfo;
import org.springframework.http.ResponseEntity;
import org.springframework.scheduling.annotation.Async;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.List;

View File

@@ -13,13 +13,12 @@
* 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 lombok.RequiredArgsConstructor;
import me.zhengjie.domain.GenConfig;
import me.zhengjie.repository.GenConfigRepository;
import me.zhengjie.service.GenConfigService;
import me.zhengjie.utils.StringUtils;
import cn.ysk.cashier.domain.GenConfig;
import cn.ysk.cashier.repository.GenConfigRepository;
import cn.ysk.cashier.service.GenConfigService;
import org.springframework.stereotype.Service;
import java.io.File;

View File

@@ -13,22 +13,22 @@
* 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.collection.CollectionUtil;
import cn.hutool.core.util.ObjectUtil;
import cn.hutool.core.util.ZipUtil;
import lombok.RequiredArgsConstructor;
import me.zhengjie.domain.GenConfig;
import me.zhengjie.domain.ColumnInfo;
import me.zhengjie.domain.vo.TableInfo;
import me.zhengjie.exception.BadRequestException;
import me.zhengjie.repository.ColumnInfoRepository;
import me.zhengjie.service.GeneratorService;
import me.zhengjie.utils.FileUtil;
import me.zhengjie.utils.GenUtil;
import me.zhengjie.utils.PageUtil;
import me.zhengjie.utils.StringUtils;
import cn.ysk.cashier.domain.GenConfig;
import cn.ysk.cashier.domain.ColumnInfo;
import cn.ysk.cashier.domain.vo.TableInfo;
import cn.ysk.cashier.exception.BadRequestException;
import cn.ysk.cashier.repository.ColumnInfoRepository;
import cn.ysk.cashier.service.GeneratorService;
import cn.ysk.cashier.utils.FileUtil;
import cn.ysk.cashier.utils.GenUtil;
import cn.ysk.cashier.utils.PageUtil;
import cn.ysk.cashier.utils.StringUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.http.HttpStatus;

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 org.apache.commons.configuration.*;
import org.slf4j.Logger;

View File

@@ -13,13 +13,13 @@
* 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.hutool.core.util.StrUtil;
import cn.hutool.extra.template.*;
import cn.ysk.cashier.domain.ColumnInfo;
import cn.ysk.cashier.domain.GenConfig;
import lombok.extern.slf4j.Slf4j;
import me.zhengjie.domain.GenConfig;
import me.zhengjie.domain.ColumnInfo;
import org.springframework.util.ObjectUtils;
import java.io.File;
@@ -29,7 +29,7 @@ import java.io.Writer;
import java.time.LocalDate;
import java.util.*;
import static me.zhengjie.utils.FileUtil.SYS_TEM_DIR;
import static cn.ysk.cashier.utils.FileUtil.SYS_TEM_DIR;
/**
* 代码生成

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>
@@ -14,7 +14,7 @@
<dependencies>
<dependency>
<groupId>me.zhengjie</groupId>
<groupId>cn.ysk.cashier</groupId>
<artifactId>eladmin-common</artifactId>
<version>2.6</version>
</dependency>

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package me.zhengjie.annotation;
package cn.ysk.cashier.annotation;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;

View File

@@ -13,15 +13,15 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package me.zhengjie.aspect;
package cn.ysk.cashier.aspect;
import cn.ysk.cashier.domain.Log;
import cn.ysk.cashier.service.LogService;
import cn.ysk.cashier.utils.RequestHolder;
import cn.ysk.cashier.utils.SecurityUtils;
import cn.ysk.cashier.utils.StringUtils;
import cn.ysk.cashier.utils.ThrowableUtil;
import lombok.extern.slf4j.Slf4j;
import me.zhengjie.domain.Log;
import me.zhengjie.service.LogService;
import me.zhengjie.utils.RequestHolder;
import me.zhengjie.utils.SecurityUtils;
import me.zhengjie.utils.StringUtils;
import me.zhengjie.utils.ThrowableUtil;
import org.aspectj.lang.JoinPoint;
import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.annotation.AfterThrowing;
@@ -51,7 +51,7 @@ public class LogAspect {
/**
* 配置切入点
*/
@Pointcut("@annotation(me.zhengjie.annotation.Log)")
@Pointcut("@annotation(cn.ysk.cashier.annotation.Log)")
public void logPointcut() {
// 该方法无方法体,主要为了让同类中其他方法使用此切入点
}

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 lombok.Getter;
import lombok.NoArgsConstructor;

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.Log;
import cn.ysk.cashier.domain.Log;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Modifying;

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.service.LogService;
import cn.ysk.cashier.service.dto.LogQueryCriteria;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import me.zhengjie.annotation.Log;
import me.zhengjie.service.LogService;
import me.zhengjie.service.dto.LogQueryCriteria;
import me.zhengjie.utils.SecurityUtils;
import cn.ysk.cashier.utils.SecurityUtils;
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.Log;
import me.zhengjie.service.dto.LogQueryCriteria;
import cn.ysk.cashier.service.dto.LogQueryCriteria;
import cn.ysk.cashier.domain.Log;
import org.aspectj.lang.ProceedingJoinPoint;
import org.springframework.data.domain.Pageable;
import org.springframework.scheduling.annotation.Async;

View File

@@ -13,7 +13,7 @@
* 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.io.Serializable;

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,7 +13,7 @@
* 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.io.Serializable;

View File

@@ -13,20 +13,21 @@
* 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.lang.Dict;
import cn.hutool.core.util.ObjectUtil;
import cn.hutool.json.JSONObject;
import cn.hutool.json.JSONUtil;
import cn.ysk.cashier.domain.Log;
import cn.ysk.cashier.repository.LogRepository;
import cn.ysk.cashier.service.LogService;
import cn.ysk.cashier.service.dto.LogQueryCriteria;
import cn.ysk.cashier.service.mapstruct.LogErrorMapper;
import cn.ysk.cashier.service.mapstruct.LogSmallMapper;
import cn.ysk.cashier.utils.*;
import lombok.RequiredArgsConstructor;
import me.zhengjie.domain.Log;
import me.zhengjie.repository.LogRepository;
import me.zhengjie.service.LogService;
import me.zhengjie.service.dto.LogQueryCriteria;
import me.zhengjie.service.mapstruct.LogErrorMapper;
import me.zhengjie.service.mapstruct.LogSmallMapper;
import me.zhengjie.utils.*;
import cn.ysk.cashier.utils.*;
import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.reflect.MethodSignature;
import org.springframework.data.domain.Page;
@@ -82,7 +83,7 @@ public class LogServiceImpl implements LogService {
}
MethodSignature signature = (MethodSignature) joinPoint.getSignature();
Method method = signature.getMethod();
me.zhengjie.annotation.Log aopLog = method.getAnnotation(me.zhengjie.annotation.Log.class);
cn.ysk.cashier.annotation.Log aopLog = method.getAnnotation(cn.ysk.cashier.annotation.Log.class);
// 方法路径
String methodName = joinPoint.getTarget().getClass().getName() + "." + signature.getName() + "()";

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.domain.Log;
import me.zhengjie.service.dto.LogErrorDTO;
import cn.ysk.cashier.base.BaseMapper;
import cn.ysk.cashier.domain.Log;
import cn.ysk.cashier.service.dto.LogErrorDTO;
import org.mapstruct.Mapper;
import org.mapstruct.ReportingPolicy;

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.domain.Log;
import me.zhengjie.service.dto.LogSmallDTO;
import cn.ysk.cashier.base.BaseMapper;
import cn.ysk.cashier.domain.Log;
import cn.ysk.cashier.service.dto.LogSmallDTO;
import org.mapstruct.Mapper;
import org.mapstruct.ReportingPolicy;

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,12 +21,12 @@
<dependencies>
<!-- 代码生成模块 -->
<dependency>
<groupId>me.zhengjie</groupId>
<groupId>cn.ysk.cashier</groupId>
<artifactId>eladmin-generator</artifactId>
<version>2.6</version>
<exclusions>
<exclusion>
<groupId>me.zhengjie</groupId>
<groupId>cn.ysk.cashier</groupId>
<artifactId>eladmin-common</artifactId>
</exclusion>
</exclusions>
@@ -34,7 +34,7 @@
<!-- tools 模块包含了 common 和 logging 模块 -->
<dependency>
<groupId>me.zhengjie</groupId>
<groupId>cn.ysk.cashier</groupId>
<artifactId>eladmin-tools</artifactId>
<version>2.6</version>
</dependency>

View File

@@ -7,4 +7,4 @@ for file in $baseDir/libs/*.jar
do
cp=$cp:$file
done
java -cp $cp me.zhengjie.AppRun >>stdout.out 2>&1 &
java -cp $cp cn.ysk.cashier.AppRun >>stdout.out 2>&1 &

View File

@@ -13,16 +13,14 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package me.zhengjie;
package cn.ysk.cashier;
import io.swagger.annotations.Api;
import me.zhengjie.annotation.rest.AnonymousGetMapping;
import me.zhengjie.utils.SpringContextHolder;
import cn.ysk.cashier.annotation.rest.AnonymousGetMapping;
import cn.ysk.cashier.utils.SpringContextHolder;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.ApplicationPidFileWriter;
import org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory;
import org.springframework.boot.web.servlet.server.ServletWebServerFactory;
import org.springframework.context.annotation.Bean;
import org.springframework.data.jpa.repository.config.EnableJpaAuditing;
import org.springframework.scheduling.annotation.EnableAsync;

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 com.alibaba.fastjson.serializer.SerializerFeature;
import com.alibaba.fastjson.support.config.FastJsonConfig;

View File

@@ -1,4 +1,4 @@
package me.zhengjie.config;
package cn.ysk.cashier.config;
import org.springframework.context.annotation.Configuration;
import com.fasterxml.jackson.core.JsonGenerator;

View File

@@ -1,4 +1,4 @@
package me.zhengjie.config;
package cn.ysk.cashier.config;
import org.apache.catalina.connector.Connector;
import org.springframework.boot.web.embedded.tomcat.TomcatConnectorCustomizer;

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.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

View File

@@ -1,4 +1,4 @@
package me.zhengjie.config;
package cn.ysk.cashier.config;
import com.alibaba.fastjson.serializer.SerializerFeature;
import com.alibaba.fastjson.support.config.FastJsonConfig;

View File

@@ -1,4 +1,4 @@
package me.zhengjie.interceptor;
package cn.ysk.cashier.config.interceptor;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;

View File

@@ -1,4 +1,4 @@
package me.zhengjie.interceptor;
package cn.ysk.cashier.config.interceptor;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;

View File

@@ -13,10 +13,10 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package me.zhengjie.modules.security.config;
package cn.ysk.cashier.config.security.config;
import me.zhengjie.modules.security.config.bean.LoginProperties;
import me.zhengjie.modules.security.config.bean.SecurityProperties;
import cn.ysk.cashier.config.security.config.bean.LoginProperties;
import cn.ysk.cashier.config.security.config.bean.SecurityProperties;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

View File

@@ -13,15 +13,19 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package me.zhengjie.modules.security.config;
package cn.ysk.cashier.config.security.config;
import cn.ysk.cashier.config.security.security.JwtAccessDeniedHandler;
import cn.ysk.cashier.config.security.security.JwtAuthenticationEntryPoint;
import cn.ysk.cashier.config.security.security.TokenConfigurer;
import cn.ysk.cashier.config.security.security.TokenProvider;
import lombok.RequiredArgsConstructor;
import me.zhengjie.annotation.AnonymousAccess;
import me.zhengjie.modules.security.config.bean.SecurityProperties;
import me.zhengjie.modules.security.security.*;
import me.zhengjie.modules.security.service.OnlineUserService;
import me.zhengjie.modules.security.service.UserCacheManager;
import me.zhengjie.utils.enums.RequestMethodEnum;
import cn.ysk.cashier.annotation.AnonymousAccess;
import cn.ysk.cashier.config.security.config.bean.SecurityProperties;
import cn.ysk.cashier.config.security.service.OnlineUserService;
import cn.ysk.cashier.config.security.service.UserCacheManager;
import cn.ysk.cashier.utils.enums.RequestMethodEnum;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

View File

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

Some files were not shown because too many files have changed in this diff Show More