package identity import ( "git.sxidc.com/go-framework/baize/framework/core/domain" "git.sxidc.com/go-framework/baize/framework/core/domain/entity" ) const ( FieldName = "Name" ) var ( ColumnName = domain.ColumnName(FieldName) ) var fieldMap = map[string]string{ FieldName: "身份名称", } type Entity struct { entity.Base Name string `sqlmapping:"column:name" sqlresult:"column:name" check:"required,lte=128,when=create/update"` StudentIDs []string `sqlmapping:"-" sqlresult:"-"` entity.TimeFields } func (e *Entity) DomainCNName() string { return "身份" } func (e *Entity) DomainCamelName() string { return "Identity" } func (e *Entity) GetFieldMap() map[string]string { return fieldMap }