mirror of
https://github.com/lacerta-doc/Lacerta.git
synced 2026-11-02 11:37:37 +00:00
メソッド追加
This commit is contained in:
1 file changed
+13
@@ -149,4 +149,17 @@ public class DocumentMeta {
|
|||||||
this.tags = tags;
|
this.tags = tags;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* updatedAtを現在時刻に設定する
|
||||||
|
*/
|
||||||
|
public void setUpdatedAtNow() {
|
||||||
|
this.updatedAt = new Date();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* createdAtを現在時刻に設定する
|
||||||
|
*/
|
||||||
|
public void setCreatedAtNow() {
|
||||||
|
this.createdAt = new Date();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user