0ac5ff9e15
Test Query * depstextandclean * startedcleaningresult * resulttidyup * roundone * cleaning * unsyncedquery * startedtestsandsimplification * api * querytests * resultprocessortests * unittests * cleanup
33 lines
472 B
Go
33 lines
472 B
Go
package documenttext
|
|
|
|
import (
|
|
"errors"
|
|
|
|
"github.com/google/uuid"
|
|
)
|
|
|
|
type Service struct {
|
|
}
|
|
|
|
func New() *Service {
|
|
return &Service{}
|
|
}
|
|
|
|
func (s *Service) IsValidVersion(v int32) error {
|
|
if v <= 0 {
|
|
return errors.New("document clean code version must be > 0")
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
type IsExtractedParams struct {
|
|
DocumentID uuid.UUID
|
|
MinCleanVersion int32
|
|
MinTextVersion int32
|
|
}
|
|
|
|
func (s *Service) IsExtracted(params *IsExtractedParams) error {
|
|
return nil
|
|
}
|