mirror of
https://github.com/lacerta-doc/Lacerta.git
synced 2024-11-25 17:23:16 +00:00
Vcs更新実装 WIP
This commit is contained in:
parent
1e046e7b9e
commit
426a3534c8
|
@ -41,7 +41,20 @@ public class LacertaVcsImpl implements LacertaVcs {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void updatePage(int index, String fileName) {
|
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
|
@Override
|
||||||
|
|
Loading…
Reference in New Issue
Block a user