mirror of
https://github.com/lacerta-doc/Lacerta.git
synced 2024-11-22 16:03:15 +00:00
仮の実装を追加
This commit is contained in:
parent
52894cf19c
commit
9a35c218b3
|
@ -1,10 +1,13 @@
|
||||||
package one.nem.lacerta.vcs.impl;
|
package one.nem.lacerta.vcs.impl;
|
||||||
|
|
||||||
|
import java.util.UUID;
|
||||||
|
|
||||||
import javax.inject.Inject;
|
import javax.inject.Inject;
|
||||||
|
|
||||||
import dagger.assisted.Assisted;
|
import dagger.assisted.Assisted;
|
||||||
import dagger.assisted.AssistedInject;
|
import dagger.assisted.AssistedInject;
|
||||||
import one.nem.lacerta.source.database.LacertaDatabase;
|
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.utils.LacertaLogger;
|
||||||
import one.nem.lacerta.vcs.LacertaVcs;
|
import one.nem.lacerta.vcs.LacertaVcs;
|
||||||
|
|
||||||
|
@ -34,7 +37,14 @@ public class LacertaVcsImpl implements LacertaVcs {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void insertPage(int index, String fileName) {
|
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
|
@Override
|
||||||
|
|
Loading…
Reference in New Issue
Block a user