7001ca854c
Queuing Changes and Cfg Testing * staarting * staarting * startedpush * note * save * mocking * removederrs * fixtests * cleanuperrs * newenvsetup * preppingtests * queue * mmovetocfgpassunittests * sortoutconfig * passinginteg * deps * fixtests
27 lines
360 B
Go
27 lines
360 B
Go
package documentclean
|
|
|
|
import (
|
|
"errors"
|
|
|
|
"github.com/google/uuid"
|
|
)
|
|
|
|
type Create struct {
|
|
ID uuid.UUID `json:"id" validate:"required,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
|
|
}
|