Files
query-orchestration/internal/document/clean/service.go
T

27 lines
360 B
Go
Raw Normal View History

2025-01-23 14:56:20 +00:00
package documentclean
import (
"errors"
"github.com/google/uuid"
)
type Create struct {
ID uuid.UUID `json:"id" validate:"required,uuid"`
}
2025-01-23 14:56:20 +00:00
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
}