package configuration import ( "git.sxidc.com/go-tools/utils/strutils" "git.sxidc.com/service-supports/fserr" ) const ( tableName = "configurations" ) type Entity struct { Group string `sqlmapping:"column:group;key;notUpdate;" sqlresult:"column:group;"` Value string `sqlmapping:"column:value;notUpdate;" sqlresult:"column:value;"` } func (e *Entity) DomainCNName() string { return "配置" } func (e *Entity) CheckKeyFields() error { if strutils.IsStringEmpty(e.Group) { return fserr.New("没有传递配置组") } return nil }