This commit is contained in:
sxu 2025-03-14 14:41:09 +08:00
parent e4d8dc7cad
commit 9f1f526a9f
2 changed files with 13 additions and 0 deletions

View File

@ -1,5 +1,6 @@
package net.xnzn.framework.id;
import lombok.Generated;
import org.springframework.boot.context.properties.ConfigurationProperties;
@ConfigurationProperties(
@ -11,30 +12,37 @@ public class IdProperties {
private String key = "worker_id_sequence";
private String workspace;
@Generated
public Boolean getEnabled() {
return this.enabled;
}
@Generated
public String getKey() {
return this.key;
}
@Generated
public String getWorkspace() {
return this.workspace;
}
@Generated
public void setEnabled(final Boolean enabled) {
this.enabled = enabled;
}
@Generated
public void setKey(final String key) {
this.key = key;
}
@Generated
public void setWorkspace(final String workspace) {
this.workspace = workspace;
}
@Generated
public boolean equals(final Object o) {
if (o == this) {
return true;
@ -84,10 +92,12 @@ public class IdProperties {
}
}
@Generated
protected boolean canEqual(final Object other) {
return other instanceof IdProperties;
}
@Generated
public int hashCode() {
int PRIME = true;
int result = 1;
@ -100,6 +110,7 @@ public class IdProperties {
return result;
}
@Generated
public String toString() {
Boolean var10000 = this.getEnabled();
return "IdProperties(enabled=" + var10000 + ", key=" + this.getKey() + ", workspace=" + this.getWorkspace() + ")";

View File

@ -10,6 +10,7 @@ import java.nio.charset.StandardCharsets;
import java.util.Collection;
import java.util.Iterator;
import java.util.UUID;
import lombok.Generated;
import org.apache.commons.io.FileUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
@ -33,6 +34,7 @@ import org.springframework.util.CollectionUtils;
matchIfMissing = true
)
public class IdWorkAutoConfiguration {
@Generated
private static final Logger log = LoggerFactory.getLogger(IdWorkAutoConfiguration.class);
private final IdProperties idProperties;