implements Updatable, Deletable
This commit is contained in:
@ -5,13 +5,15 @@ import com.imyeyu.java.ref.Ref;
|
||||
import com.imyeyu.spring.annotation.table.AutoUUID;
|
||||
import com.imyeyu.spring.annotation.table.Id;
|
||||
import com.imyeyu.spring.entity.Creatable;
|
||||
import com.imyeyu.spring.entity.Deletable;
|
||||
import com.imyeyu.spring.entity.IDEntity;
|
||||
import com.imyeyu.spring.entity.Updatable;
|
||||
|
||||
/**
|
||||
* @author 夜雨
|
||||
* @since 2025-10-17 15:21
|
||||
*/
|
||||
public class Multilingual extends Language implements IDEntity<String>, Creatable {
|
||||
public class Multilingual extends Language implements IDEntity<String>, Creatable, Updatable, Deletable {
|
||||
|
||||
@Id
|
||||
@AutoUUID
|
||||
@ -19,6 +21,10 @@ public class Multilingual extends Language implements IDEntity<String>, Creatabl
|
||||
|
||||
protected Long createdAt;
|
||||
|
||||
protected Long updatedAt;
|
||||
|
||||
protected Long deletedAt;
|
||||
|
||||
/**
|
||||
* 获取指定语言值
|
||||
*
|
||||
@ -52,4 +58,24 @@ public class Multilingual extends Language implements IDEntity<String>, Creatabl
|
||||
public void setCreatedAt(Long createdAt) {
|
||||
this.createdAt = createdAt;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Long getUpdatedAt() {
|
||||
return updatedAt;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setUpdatedAt(Long updatedAt) {
|
||||
this.updatedAt = updatedAt;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Long getDeletedAt() {
|
||||
return deletedAt;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setDeletedAt(Long deletedAt) {
|
||||
this.deletedAt = deletedAt;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user