-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b38257e
commit cab10ca
Showing
15 changed files
with
255 additions
and
39 deletions.
There are no files selected for viewing
21 changes: 21 additions & 0 deletions
21
...modules/passiflora-common/src/main/java/com/zerolinck/passiflora/common/util/SetUtil.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,21 @@ | ||
package com.zerolinck.passiflora.common.util; | ||
|
||
import java.util.HashSet; | ||
import java.util.Set; | ||
|
||
/** | ||
* @author linck | ||
* @since 2024-06-29 | ||
*/ | ||
public class SetUtil { | ||
|
||
/** | ||
* 返回 set2 相对于 set1 多出的值 | ||
*/ | ||
public static Set<String> differenceSet2FromSet1(Set<String> set1, Set<String> set2) { | ||
Set<String> difference = new HashSet<>(set2); | ||
difference.removeAll(set1); | ||
return difference; | ||
} | ||
|
||
} |
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
26 changes: 26 additions & 0 deletions
26
...el/src/main/java/com/zerolinck/passiflora/model/system/dto/PositionPermissionSaveDto.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,26 @@ | ||
package com.zerolinck.passiflora.model.system.dto; | ||
|
||
import io.swagger.v3.oas.annotations.media.Schema; | ||
import jakarta.validation.constraints.NotBlank; | ||
import lombok.Data; | ||
import org.hibernate.validator.constraints.Length; | ||
|
||
import java.util.List; | ||
|
||
/** | ||
* @author linck | ||
* @since 2024-06-29 | ||
*/ | ||
@Data | ||
public class PositionPermissionSaveDto { | ||
|
||
@Schema(description = "职位ID", maxLength = 20) | ||
@Length( | ||
max = 20, | ||
message = "职位ID长度不能大于20" | ||
) | ||
@NotBlank(message = "职位ID不能为空") | ||
private String positionId; | ||
|
||
private List<String> permissionIds; | ||
} |
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
Oops, something went wrong.