entity.go 304 B

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