Files
2026-07-15 22:42:31 +08:00

35 lines
653 B
Go

package template_container_mapper
import (
"github.com/XingfenD/yoresee_doc/internal/dto"
pb "github.com/XingfenD/yoresee_doc/pkg/gen/yoresee_doc/v1"
)
type ownAdapter struct{}
func (ownAdapter) Name() string {
return "own"
}
func (ownAdapter) ProtoType() pb.CreateTemplateContainer {
return pb.CreateTemplateContainer_OWN_TEMPLATE
}
func (ownAdapter) DTOType() dto.TemplateContainer {
return dto.TemplateContainerOwn
}
func (ownAdapter) Scope() string {
return "private"
}
func (ownAdapter) IsPublic() bool {
return false
}
func (ownAdapter) RequiresKnowledgeBaseID() bool {
return false
}
func init() { RegisterMapper(ownAdapter{}) }