-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
perf($MyBatisPlus): enable logic delete
[skip ci]
- Loading branch information
Johnny Miller (锺俊)
committed
Jan 13, 2021
1 parent
31564ca
commit e48fafa
Showing
2 changed files
with
45 additions
and
0 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
42 changes: 42 additions & 0 deletions
42
common/src/main/java/com/jmsoftware/maf/common/domain/DeleteField.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,42 @@ | ||
package com.jmsoftware.maf.common.domain; | ||
|
||
import lombok.Getter; | ||
import lombok.extern.slf4j.Slf4j; | ||
|
||
/** | ||
* Description: DeleteField, change description here. | ||
* | ||
* @author 钟俊 (zhongjun), email: [email protected], date: 1/13/2021 6:32 PM | ||
*/ | ||
@Slf4j | ||
@Getter | ||
public enum DeleteField { | ||
/** | ||
* Not deleted | ||
*/ | ||
NOT_DELETED((byte) 0, "not deleted"), | ||
/** | ||
* Deleted | ||
*/ | ||
DELETED((byte) 1, "deleted"); | ||
|
||
/** | ||
* The Value. | ||
*/ | ||
private final Byte value; | ||
/** | ||
* The Description. | ||
*/ | ||
private final String description; | ||
|
||
/** | ||
* Instantiates a new Delete field. | ||
* | ||
* @param value the value | ||
* @param description the description | ||
*/ | ||
DeleteField(Byte value, String description) { | ||
this.value = value; | ||
this.description = description; | ||
} | ||
} |