-
Notifications
You must be signed in to change notification settings - Fork 104
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #30 from lijiahangmax/dev
Dev
- Loading branch information
Showing
125 changed files
with
4,129 additions
and
857 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...a/com/orion/ops/constant/AuditStatus.java → ...rion/ops/constant/common/AuditStatus.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...va/com/orion/ops/constant/EnableType.java → ...orion/ops/constant/common/EnableType.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...on/ops/constant/ExceptionHandlerType.java → ...constant/common/ExceptionHandlerType.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...va/com/orion/ops/constant/SerialType.java → ...orion/ops/constant/common/SerialType.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...ava/com/orion/ops/constant/StainCode.java → .../orion/ops/constant/common/StainCode.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package com.orion.ops.constant; | ||
package com.orion.ops.constant.common; | ||
|
||
/** | ||
* ANSI 高亮颜色转义码 | ||
|
53 changes: 53 additions & 0 deletions
53
orion-ops-api/orion-ops-common/src/main/java/com/orion/ops/constant/common/TreeMoveType.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
package com.orion.ops.constant.common; | ||
|
||
import lombok.AllArgsConstructor; | ||
import lombok.Getter; | ||
|
||
/** | ||
* 树移动类型 | ||
* | ||
* @author Jiahang Li | ||
* @version 1.0.0 | ||
* @since 2022/9/28 17:42 | ||
*/ | ||
@Getter | ||
@AllArgsConstructor | ||
public enum TreeMoveType { | ||
|
||
/** | ||
* 移动到内层 上面 | ||
*/ | ||
IN_TOP(1), | ||
|
||
/** | ||
* 移动到内层 下面 | ||
*/ | ||
IN_BOTTOM(2), | ||
|
||
/** | ||
* 移动到节点 上面 | ||
*/ | ||
PREV(3), | ||
|
||
/** | ||
* 移动到节点 下面 | ||
*/ | ||
NEXT(4), | ||
|
||
; | ||
|
||
private final Integer type; | ||
|
||
public static TreeMoveType of(Integer type) { | ||
if (type == null) { | ||
return null; | ||
} | ||
for (TreeMoveType value : values()) { | ||
if (value.type.equals(type)) { | ||
return value; | ||
} | ||
} | ||
return null; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 34 additions & 0 deletions
34
orion-ops-api/orion-ops-dao/src/main/java/com/orion/ops/dao/MachineGroupDAO.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
package com.orion.ops.dao; | ||
|
||
import com.baomidou.mybatisplus.core.mapper.BaseMapper; | ||
import com.orion.ops.entity.domain.MachineGroupDO; | ||
import org.apache.ibatis.annotations.Param; | ||
|
||
/** | ||
* <p> | ||
* 机器分组 Mapper 接口 | ||
* </p> | ||
* | ||
* @author Jiahang Li | ||
* @since 2022-09-23 | ||
*/ | ||
public interface MachineGroupDAO extends BaseMapper<MachineGroupDO> { | ||
|
||
/** | ||
* 增加排序值 | ||
* | ||
* @param parentId parentId | ||
* @param greaterSort > sort | ||
* @return effect | ||
*/ | ||
Integer incrementSort(@Param("parentId") Long parentId, @Param("greaterSort") Integer greaterSort); | ||
|
||
/** | ||
* 增加最大 sort | ||
* | ||
* @param parentId parentId | ||
* @return sort | ||
*/ | ||
Integer getMaxSort(@Param("parentId") Long parentId); | ||
|
||
} |
16 changes: 16 additions & 0 deletions
16
orion-ops-api/orion-ops-dao/src/main/java/com/orion/ops/dao/MachineGroupRelDAO.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package com.orion.ops.dao; | ||
|
||
import com.baomidou.mybatisplus.core.mapper.BaseMapper; | ||
import com.orion.ops.entity.domain.MachineGroupRelDO; | ||
|
||
/** | ||
* <p> | ||
* 机器分组关联表 Mapper 接口 | ||
* </p> | ||
* | ||
* @author Jiahang Li | ||
* @since 2022-09-23 | ||
*/ | ||
public interface MachineGroupRelDAO extends BaseMapper<MachineGroupRelDO> { | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.