package viewmodel import "encoding/json" type BizObjectAttrInfo struct { BizId int64 `json:"bizId" xorm:"'biz_id' bigint pk comment('Biz ID') "` ObjectId int64 `json:"objectId" xorm:"'object_id' bigint pk comment('Object ID') "` ObjectCode string `json:"objectCode" xorm:"'object_code' varchar(127) comment('ObjectCode') "` AttrId int64 `json:"attrId" xorm:"'attr_id' bigint pk comment('Attr ID') "` AttrType int64 `json:"attrType" xorm:"'attr_type' bigint comment('Type') "` AttrTitle string `json:"attrTitle" xorm:"'attr_title' varchar(127) comment('AttrTitle') "` AttrCode string `json:"attrCode" xorm:"'attr_code' varchar(127) comment('AttrCode') "` MappingCode string `json:"mappingCode" xorm:"'mapping_code' varchar(127) comment('MappingCode') "` AttrLength int64 `json:"attrLength" xorm:"'attr_length' bigint comment('AttrLength') "` AttrDecimals int64 `json:"attrDecimals" xorm:"'attr_decimals' bigint comment('AttrDecimals') "` Comment string `json:"comment" xorm:"'comment' varchar(255) comment('描述') "` IsNotNull int64 `json:"isNotNull" xorm:"'is_not_null' int comment('是否可修改') "` SortNo int64 `json:"sortNo" xorm:"'sort_no' int comment('是否可修改') "` RuleId int64 `json:"ruleId" xorm:"'rule_id' int comment('Rule ID') "` } func (t *BizObjectAttrInfo) TableName() string { return "biz_object_attr" } func (t *BizObjectAttrInfo) MarshalBinary() (data []byte, err error){ return json.Marshal(t) } func (t *BizObjectAttrInfo) UnmarshalBinary(data []byte) (err error){ return json.Unmarshal(data, t) }