migrate from github

This commit is contained in:
2026-07-15 22:42:31 +08:00
commit 3ad559f05e
262 changed files with 21637 additions and 0 deletions
@@ -0,0 +1,31 @@
package doc_container_mapper
import (
"github.com/XingfenD/yoresee_doc/internal/dto"
"github.com/XingfenD/yoresee_doc/internal/model"
pb "github.com/XingfenD/yoresee_doc/pkg/gen/yoresee_doc/v1"
)
type ownAdapter struct{}
func (ownAdapter) Name() string {
return string(dto.ContainerType_Own)
}
func (ownAdapter) ProtoType() pb.CreateDocumentContainerType {
return pb.CreateDocumentContainerType_CREATE_DOCUMENT_CONTAINER_TYPE_OWN
}
func (ownAdapter) DTOType() dto.ContainerType {
return dto.ContainerType_Own
}
func (ownAdapter) ModelType() model.ContainerType {
return model.ContainerType_Own
}
func (ownAdapter) RequiresKnowledgeBaseID() bool {
return false
}
func init() { RegisterMapper(ownAdapter{}) }