package org.dromara.knowledge.version;

import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

@Slf4j
@Component
public class DefaultVersionManager implements VersionManager {
    @Override
    public String createVersion(String knowledgeId, String remark) {
        String versionId = java.util.UUID.randomUUID().toString();
        log.info("创建知识库版本: {} remark={}", versionId, remark);
        return versionId;
    }

    @Override
    public boolean rollback(String knowledgeId, String versionId) {
        log.info("回滚知识库 {} 到版本 {}", knowledgeId, versionId);
        return true;
    }
}

