entity.go 255 B

123456789101112131415
  1. package entity
  2. import (
  3. "git.sxidc.com/go-framework/baize/framwork/domain"
  4. )
  5. type Entity interface {
  6. domain.Object
  7. GenerateID() error
  8. GetID() string
  9. CheckFieldID(domainCNName string) error
  10. ForCreate() error
  11. ForDelete() error
  12. ForUpdate() error
  13. }