From 9a35c218b3f514ac536f3b9430f2d6f0d81560ab Mon Sep 17 00:00:00 2001 From: r-ca Date: Sun, 14 Jan 2024 15:09:56 +0900 Subject: [PATCH] =?UTF-8?q?=E4=BB=AE=E3=81=AE=E5=AE=9F=E8=A3=85=E3=82=92?= =?UTF-8?q?=E8=BF=BD=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../one/nem/lacerta/vcs/impl/LacertaVcsImpl.java | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/vcs/src/main/java/one/nem/lacerta/vcs/impl/LacertaVcsImpl.java b/vcs/src/main/java/one/nem/lacerta/vcs/impl/LacertaVcsImpl.java index 8db98566..0a20e5e3 100644 --- a/vcs/src/main/java/one/nem/lacerta/vcs/impl/LacertaVcsImpl.java +++ b/vcs/src/main/java/one/nem/lacerta/vcs/impl/LacertaVcsImpl.java @@ -1,10 +1,13 @@ package one.nem.lacerta.vcs.impl; +import java.util.UUID; + import javax.inject.Inject; import dagger.assisted.Assisted; import dagger.assisted.AssistedInject; import one.nem.lacerta.source.database.LacertaDatabase; +import one.nem.lacerta.source.database.entity.VcsLogEntity; import one.nem.lacerta.utils.LacertaLogger; import one.nem.lacerta.vcs.LacertaVcs; @@ -34,7 +37,14 @@ public class LacertaVcsImpl implements LacertaVcs { @Override public void insertPage(int index, String fileName) { - + logger.debug(TAG, "insertPage"); + VcsLogEntity vcsLogEntity = new VcsLogEntity(); + vcsLogEntity.id = UUID.randomUUID().toString(); + vcsLogEntity.documentId = documentId; + vcsLogEntity.branchName = "master"; + vcsLogEntity.createdAt = new java.util.Date(); + vcsLogEntity.action = "placeholder"; + database.vcsLogDao().insert(vcsLogEntity); } @Override