package entity import "git.sxidc.com/go-tools/utils/strutils" type Base struct { ID string `sqlmapping:"column:id;key;" sqlresult:"column:id;"` } func (e *Base) DomainCNName() string { panic("领域实体没有实现DomainCNName接口") } func (e *Base) DomainCamelName() string { panic("领域实体没有实现DomainCamelName接口") } func (e *Base) GenerateID() error { e.ID = strutils.SimpleUUID() return nil } func (e *Base) GetID() string { return e.ID }