From 426a3534c847a23c88371b9d18d31d4b79431fab Mon Sep 17 00:00:00 2001 From: r-ca Date: Mon, 29 Jan 2024 05:29:13 +0900 Subject: [PATCH] =?UTF-8?q?Vcs=E6=9B=B4=E6=96=B0=E5=AE=9F=E8=A3=85=20WIP?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../one/nem/lacerta/vcs/impl/LacertaVcsImpl.java | 13 +++++++++++++ 1 file changed, 13 insertions(+) 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 5e193bcd..de0b3fd2 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 @@ -41,7 +41,20 @@ public class LacertaVcsImpl implements LacertaVcs { @Override public void updatePage(int index, String fileName) { + logger.debug(TAG, "updatePage"); + // UpdatePage + UpdatePage updatePage = new UpdatePage(index, fileName); + updatePage.setActionType(ActionType.UPDATE_PAGE); + + VcsLogEntity vcsLogEntity = new VcsLogEntity(); + vcsLogEntity.id = UUID.randomUUID().toString(); + vcsLogEntity.documentId = documentId; + vcsLogEntity.branchName = "master"; + vcsLogEntity.createdAt = new java.util.Date(); + vcsLogEntity.actionType = ActionType.UPDATE_PAGE.getValue(); + vcsLogEntity.action = JsonUtils.toJson(updatePage); + database.vcsLogDao().insert(vcsLogEntity); } @Override