优化注释

v1.4.1
hiparker 4 years ago
parent 4e2965ceda
commit 07cb28b484

@ -16,36 +16,37 @@
package org.opsli.plugins.cache; package org.opsli.plugins.cache;
/** /**
* @BelongsProject: opsli-boot * EhCache
* @BelongsPackage: org.opsli.plugins.cache *
* @Author: Parker * @author Parker
* @CreateTime: 2020-09-16 19:19 * @date 2020-09-16 11:47
* @Description: EhCache
*/ */
public interface EhCachePlugin { public interface EhCachePlugin {
/** /**
* *
* @param cacheName * @param cacheName
* @param key * @param key Key
* @param value * @param value
* @return * @return boolean
*/ */
boolean put(String cacheName, String key, Object value); boolean put(String cacheName, String key, Object value);
/** /**
* *
* @param cacheName * @param cacheName
* @param key * @param key Key
* @return * @param vClass Class
* @return V
*/ */
<V> V get(String cacheName, String key ,Class<V> vClass); <V> V get(String cacheName, String key, Class<V> vClass);
/** /**
* *
* @param cacheName * @param cacheName
* @param key * @param key Key
* @return boolean
*/ */
boolean delete(String cacheName, String key); boolean delete(String cacheName, String key);

@ -20,11 +20,10 @@ import org.springframework.cache.annotation.EnableCaching;
import org.springframework.context.annotation.Configuration; import org.springframework.context.annotation.Configuration;
/** /**
* @BelongsProject: opsli-boot * EhCache
* @BelongsPackage: org.opsli.plugins.cache.conf *
* @Author: Parker * @author Parker
* @CreateTime: 2020-09-16 21:35 * @date 2020-09-16 11:47
* @Description: EhCache
*/ */
@Configuration @Configuration
@EnableCaching @EnableCaching

@ -18,11 +18,10 @@ package org.opsli.plugins.cache.msg;
import org.opsli.common.base.msg.BaseMsg; import org.opsli.common.base.msg.BaseMsg;
/** /**
* @BelongsProject: opsli-boot * Ehcache
* @BelongsPackage: org.opsli.plugins.mail.msg *
* @Author: Parker * @author Parker
* @CreateTime: 2020-09-13 19:54 * @date 2020-09-16 11:47
* @Description:
*/ */
public enum EhCacheMsg implements BaseMsg { public enum EhCacheMsg implements BaseMsg {

@ -27,11 +27,10 @@ import org.springframework.stereotype.Service;
/** /**
* @BelongsProject: opsli-boot * EhCachePlugin
* @BelongsPackage: org.opsli.plugins.cache.service *
* @Author: Parker * @author Parker
* @CreateTime: 2020-09-16 21:08 * @date 2020-09-16 11:47
* @Description: EhCachePlugin
*/ */
@Slf4j @Slf4j
@Service @Service

@ -44,7 +44,9 @@ import java.util.List;
* easyExcelpoi3.17 * easyExcelpoi3.17
* BeanCopy ExcelException * BeanCopy ExcelException
* java * java
* @author parker *
* @author Parker
* @date 2020-09-16 11:47
*/ */
@Slf4j @Slf4j
public class ExcelPlugin { public class ExcelPlugin {
@ -249,7 +251,7 @@ public class ExcelPlugin {
* @param excelListener new ExcelListener() * @param excelListener new ExcelListener()
*/ */
private ExcelReader getReader(MultipartFile excel, private ExcelReader getReader(MultipartFile excel,
ExcelListener excelListener) throws ExcelPluginException{ ExcelListener<?> excelListener) throws ExcelPluginException{
String fileName = excel.getOriginalFilename(); String fileName = excel.getOriginalFilename();
if (fileName == null ) { if (fileName == null ) {
// 文件格式错误 // 文件格式错误

@ -19,9 +19,10 @@ import org.apache.poi.ss.usermodel.IndexedColors;
import java.lang.annotation.*; import java.lang.annotation.*;
/** /**
* Created Date by 2020/5/9 0009. *
* *
* @author Parker * @author Parker
* @date 2020-09-16 11:47
*/ */
@Documented @Documented
@Retention(RetentionPolicy.RUNTIME) @Retention(RetentionPolicy.RUNTIME)

@ -21,11 +21,10 @@ import org.apache.poi.ss.usermodel.IndexedColors;
import java.lang.annotation.*; import java.lang.annotation.*;
/** /**
* Created Date by 2020/5/9 0009.
*
* Excel * Excel
* *
* @author parker * @author Parker
* @date 2020-09-16 11:47
*/ */
@Documented @Documented
@Retention(RetentionPolicy.RUNTIME) @Retention(RetentionPolicy.RUNTIME)

@ -18,13 +18,10 @@ package org.opsli.plugins.excel.annotation;
import java.lang.annotation.*; import java.lang.annotation.*;
/** /**
* @BelongsProject: opsli-boot * Excel
* @BelongsPackage: org.opsli.common.annotation
* @Author: Parker
* @CreateTime: 2020-09-16 16:36
* @Description:
* *
* @author Parker
* @date 2020-09-16 11:47
*/ */
@Retention(RetentionPolicy.RUNTIME) @Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.FIELD) @Target(ElementType.FIELD)
@ -33,10 +30,7 @@ public @interface ExcelInfo {
/** 字典类型 code */ /** 字典类型 code */
String dictType() default ""; String dictType() default "";
/** 字段反射类型 */
//Class<?> reflectFieldType() default Class.class;
/** 字段反射名称 */
//String reflectFieldName() default "";
/** 字段样式 */ /** 字段样式 */
CellStyleFormat cellStyleFormat() default @CellStyleFormat(); CellStyleFormat cellStyleFormat() default @CellStyleFormat();

@ -19,10 +19,10 @@ import org.opsli.common.base.msg.BaseMsg;
import org.opsli.common.exception.ServiceException; import org.opsli.common.exception.ServiceException;
/** /**
* Created Date by 2020/5/9 0009.
*
* Excel * Excel
*
* @author Parker * @author Parker
* @date 2020-09-16 11:47
*/ */
public class ExcelPluginException extends ServiceException { public class ExcelPluginException extends ServiceException {

@ -25,12 +25,13 @@ import java.io.OutputStream;
import java.util.List; import java.util.List;
/** /**
* ExcelWriterFactory * Excel
* *
* @author parker * @author Parker
* @date 2020-09-16 11:47
*/ */
public class ExcelWriterFactory extends ExcelWriter { public class ExcelWriterFactory extends ExcelWriter {
private OutputStream outputStream; private final OutputStream outputStream;
private int sheetNo = 1; private int sheetNo = 1;
public ExcelWriterFactory(OutputStream outputStream, ExcelTypeEnum typeEnum) { public ExcelWriterFactory(OutputStream outputStream, ExcelTypeEnum typeEnum) {

@ -27,7 +27,9 @@ import java.util.List;
/** /**
* Excel * Excel
* @author parker *
* @author Parker
* @date 2020-09-16 11:47
*/ */
@Slf4j @Slf4j
public abstract class BatchExcelListener<T> extends AnalysisEventListener<T> { public abstract class BatchExcelListener<T> extends AnalysisEventListener<T> {

@ -28,7 +28,9 @@ import java.util.List;
/** /**
* Excel * Excel
* @author parker *
* @author Parker
* @date 2020-09-16 11:47
*/ */
@Slf4j @Slf4j
public class ExcelListener<T> extends AnalysisEventListener<T> { public class ExcelListener<T> extends AnalysisEventListener<T> {

@ -18,11 +18,10 @@ package org.opsli.plugins.excel.msg;
import org.opsli.common.base.msg.BaseMsg; import org.opsli.common.base.msg.BaseMsg;
/** /**
* @BelongsProject: opsli-boot * Excel
* @BelongsPackage: org.opsli.plugins.mail.msg *
* @Author: Parker * @author Parker
* @CreateTime: 2020-09-13 19:54 * @date 2020-09-16 11:47
* @Description: Excel
*/ */
public enum ExcelMsg implements BaseMsg { public enum ExcelMsg implements BaseMsg {

@ -18,18 +18,17 @@ package org.opsli.plugins.redis;
import org.opsli.plugins.redis.lock.RedisLock; import org.opsli.plugins.redis.lock.RedisLock;
/** /**
* @BelongsProject: opsli-boot * Redis
* @BelongsPackage: org.opsli.plugins.redis *
* @Author: Parker * @author Parker
* @CreateTime: 2020-09-16 11:47 * @date 2020-09-16 11:47
* @Description: Redis
*/ */
public interface RedisLockPlugins { public interface RedisLockPlugins {
/** /**
* *
* @param redisLock redis * @param redisLock redis
* @return * @return RedisLock
*/ */
RedisLock tryLock(RedisLock redisLock); RedisLock tryLock(RedisLock redisLock);
@ -37,7 +36,7 @@ public interface RedisLockPlugins {
/** /**
* *
* @param redisLock redis * @param redisLock redis
* @return * @return boolean
*/ */
boolean unLock(RedisLock redisLock); boolean unLock(RedisLock redisLock);
} }

@ -35,10 +35,10 @@ import java.nio.charset.StandardCharsets;
import java.util.List; import java.util.List;
/** /**
* @Author parker
*
* Redis * Redis
* *
* @author Parker
* @date 2020-09-16 11:47
*/ */
@Slf4j @Slf4j
@Configuration @Configuration

@ -19,11 +19,10 @@ import org.opsli.common.base.msg.BaseMsg;
import org.opsli.common.exception.ServiceException; import org.opsli.common.exception.ServiceException;
/** /**
* @BelongsProject: opsli-boot * Redis
* @BelongsPackage: org.opsli.plugins.mail.exception *
* @Author: Parker * @author Parker
* @CreateTime: 2020-09-14 18:44 * @date 2020-09-16 11:47
* @Description: Redis
*/ */
public class RedisPluginException extends ServiceException { public class RedisPluginException extends ServiceException {

@ -19,11 +19,10 @@ package org.opsli.plugins.redis.lock;
import java.util.concurrent.atomic.AtomicInteger; import java.util.concurrent.atomic.AtomicInteger;
/** /**
* @BelongsProject: opsli-boot * Redis
* @BelongsPackage: org.opsli.plugins.redis.lock *
* @Author: Parker * @author Parker
* @CreateTime: 2020-09-16 00:51 * @date 2020-09-16 11:47
* @Description: Redis
*/ */
public class RedisLock { public class RedisLock {

@ -28,11 +28,7 @@ import java.util.Collections;
import java.util.List; import java.util.List;
/** /**
* @BelongsProject: opsli-boot * Redis
* @BelongsPackage: org.opsli.plugins.redis.lock
* @Author: Parker
* @CreateTime: 2020-09-16 11:49
* @Description: Redis
* *
* ===================== Redis ===================== * ===================== Redis =====================
* *
@ -47,6 +43,8 @@ import java.util.List;
* 2 * 2
* 3线使keytairput * 3线使keytairput
* *
* @author Parker
* @date 2020-09-16 11:47
*/ */
@Slf4j @Slf4j
@Service @Service

@ -18,11 +18,10 @@ package org.opsli.plugins.redis.msg;
import org.opsli.common.base.msg.BaseMsg; import org.opsli.common.base.msg.BaseMsg;
/** /**
* @BelongsProject: opsli-boot * Redis
* @BelongsPackage: org.opsli.plugins.mail.msg *
* @Author: Parker * @author Parker
* @CreateTime: 2020-09-13 19:54 * @date 2020-09-16 11:47
* @Description: Redis
*/ */
public enum RedisMsg implements BaseMsg { public enum RedisMsg implements BaseMsg {

@ -21,13 +21,12 @@ import lombok.experimental.Accessors;
import org.opsli.common.enums.SystemInfo; import org.opsli.common.enums.SystemInfo;
/** /**
* @author parker
* @date 2020-09-13
*
* 广 * 广
* *
* 广 * 广
* *
* @author Parker
* @date 2020-09-16 11:47
*/ */
@Data @Data
@Accessors(chain = true) @Accessors(chain = true)

@ -18,11 +18,10 @@ package org.opsli.plugins.redis.pushsub.entity;
import java.io.Serializable; import java.io.Serializable;
/** /**
* @BelongsProject: opsli-boot * Redis
* @BelongsPackage: org.opsli.plugins.redis.entity *
* @Author: Parker * @author Parker
* @CreateTime: 2020-09-15 14:50 * @date 2020-09-16 11:47
* @Description: Redis
*/ */
public interface RedisPushSubMessage extends Serializable { public interface RedisPushSubMessage extends Serializable {

@ -22,7 +22,9 @@ import java.util.concurrent.ConcurrentMap;
/** /**
* *
* @author parker *
* @author Parker
* @date 2020-09-16 11:47
*/ */
public class RedisScriptCache { public class RedisScriptCache {

@ -17,11 +17,10 @@ package org.opsli.plugins.redis.scripts.enums;
/** /**
* @BelongsProject: opsli-boot * Redis
* @BelongsPackage: org.opsli.plugins.redis.enums *
* @Author: Parker * @author Parker
* @CreateTime: 2020-09-14 21:56 * @date 2020-09-16 11:47
* @Description: Redis
*/ */
public enum RedisScriptsEnum { public enum RedisScriptsEnum {

@ -18,11 +18,10 @@ package org.opsli.plugins.waf.msg;
import org.opsli.common.base.msg.BaseMsg; import org.opsli.common.base.msg.BaseMsg;
/** /**
* @BelongsProject: opsli-boot *
* @BelongsPackage: org.opsli.plugins.mail.msg *
* @Author: Parker * @author Parker
* @CreateTime: 2020-09-13 19:54 * @date 2020-09-16
* @Description: Excel
*/ */
public enum WafMsg implements BaseMsg { public enum WafMsg implements BaseMsg {

@ -9,7 +9,7 @@ import org.springframework.boot.context.properties.ConfigurationProperties;
import java.util.Set; import java.util.Set;
/** /**
* *
* *
* @author Parker * @author Parker
* @date 2020-12-19 * @date 2020-12-19

Loading…
Cancel
Save