ignore文件

This commit is contained in:
JinLu.Yin
2022-05-06 16:45:41 +08:00
parent 13c2a6bd40
commit e2cfc00ac5
350 changed files with 41884 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
package com.ktg.common.enums;
/**
* 操作状态
*
* @author ruoyi
*
*/
public enum BusinessStatus
{
/**
* 成功
*/
SUCCESS,
/**
* 失败
*/
FAIL,
}

View File

@@ -0,0 +1,59 @@
package com.ktg.common.enums;
/**
* 业务操作类型
*
* @author ruoyi
*/
public enum BusinessType
{
/**
* 其它
*/
OTHER,
/**
* 新增
*/
INSERT,
/**
* 修改
*/
UPDATE,
/**
* 删除
*/
DELETE,
/**
* 授权
*/
GRANT,
/**
* 导出
*/
EXPORT,
/**
* 导入
*/
IMPORT,
/**
* 强退
*/
FORCE,
/**
* 生成代码
*/
GENCODE,
/**
* 清空数据
*/
CLEAN,
}

View File

@@ -0,0 +1,44 @@
package com.ktg.common.enums;
public enum CycleMethodMnum {
CYCLE_METHOD_YEAR("YEAR","按年"),
CYCLE_METHOD_MONTH("MONTH","按月"),
CYCLE_METHOD_DAY("DAY","按日"),
CYCLE_METHOD_HOUR("HOUR","按小时"),
CYCLE_METHOD_MINUTE("MINUTE","按分钟"),
CYCLE_METHOD_OTHER("OTHER","其他");
private String code;
private String name;
CycleMethodMnum(String code,String name){
this.code=code;
this.name=name;
}
public String getCode() {
return code;
}
public void setCode(String code) {
this.code = code;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public static CycleMethodMnum getByCode(String code){
for(CycleMethodMnum value : CycleMethodMnum.values()){
if(value.getCode().equals(code)){
return value;
}
}
return CYCLE_METHOD_OTHER;
}
}

View File

@@ -0,0 +1,19 @@
package com.ktg.common.enums;
/**
* 数据源
*
* @author ruoyi
*/
public enum DataSourceType
{
/**
* 主库
*/
MASTER,
/**
* 从库
*/
SLAVE
}

View File

@@ -0,0 +1,36 @@
package com.ktg.common.enums;
import java.util.HashMap;
import java.util.Map;
import org.springframework.lang.Nullable;
/**
* 请求方式
*
* @author ruoyi
*/
public enum HttpMethod
{
GET, HEAD, POST, PUT, PATCH, DELETE, OPTIONS, TRACE;
private static final Map<String, HttpMethod> mappings = new HashMap<>(16);
static
{
for (HttpMethod httpMethod : values())
{
mappings.put(httpMethod.name(), httpMethod);
}
}
@Nullable
public static HttpMethod resolve(@Nullable String method)
{
return (method != null ? mappings.get(method) : null);
}
public boolean matches(String method)
{
return (this == resolve(method));
}
}

View File

@@ -0,0 +1,20 @@
package com.ktg.common.enums;
/**
* 限流类型
*
* @author ruoyi
*/
public enum LimitType
{
/**
* 默认策略全局限流
*/
DEFAULT,
/**
* 根据请求者IP进行限流
*/
IP
}

View File

@@ -0,0 +1,24 @@
package com.ktg.common.enums;
/**
* 操作人类别
*
* @author ruoyi
*/
public enum OperatorType
{
/**
* 其它
*/
OTHER,
/**
* 后台用户
*/
MANAGE,
/**
* 手机端用户
*/
MOBILE
}

View File

@@ -0,0 +1,42 @@
package com.ktg.common.enums;
public enum PartTypeEnum {
PART_TYPE_INPUTCHAR("INPUTCHAR","传入字符",0),
PART_TYPE_NOWDATE("NOWDATE","当前日期",1),
PART_TYPE_FIXCHAR("FIXCHAR","固定字符",2),
PART_TYPE_SERIALNO("SERIALNO","流水号",3),
PART_TYPE_OTHER("OTHER","其他",99);
private final String code;
private final String name;
private final Integer beanIndex;
PartTypeEnum(String code,String name,Integer beanIndex){
this.code = code;
this.name = name;
this.beanIndex = beanIndex;
}
public String getCode() {
return code;
}
public String getName() {
return name;
}
public Integer getBeanIndex() {
return beanIndex;
}
public static PartTypeEnum getByCode(String code){
for(PartTypeEnum value: PartTypeEnum.values()){
if(value.getCode().equals(code)){
return value;
}
}
return PART_TYPE_OTHER;
}
}

View File

@@ -0,0 +1,30 @@
package com.ktg.common.enums;
/**
* 用户状态
*
* @author ruoyi
*/
public enum UserStatus
{
OK("0", "正常"), DISABLE("1", "停用"), DELETED("2", "删除");
private final String code;
private final String info;
UserStatus(String code, String info)
{
this.code = code;
this.info = info;
}
public String getCode()
{
return code;
}
public String getInfo()
{
return info;
}
}