mirror of
https://github.com/lacerta-doc/Lacerta.git
synced 2024-11-26 17:53:14 +00:00
メソッド追加
This commit is contained in:
parent
c875ba5e54
commit
8c21d0db04
|
@ -149,4 +149,17 @@ public class DocumentMeta {
|
|||
this.tags = tags;
|
||||
}
|
||||
|
||||
/**
|
||||
* updatedAtを現在時刻に設定する
|
||||
*/
|
||||
public void setUpdatedAtNow() {
|
||||
this.updatedAt = new Date();
|
||||
}
|
||||
|
||||
/**
|
||||
* createdAtを現在時刻に設定する
|
||||
*/
|
||||
public void setCreatedAtNow() {
|
||||
this.createdAt = new Date();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user