| 12345678910111213141516171819202122232425262728293031323334 |
- package viewmodels
- import "encoding/json"
- type ModelObjectAttrInfo struct {
- ModelId int64 `json:"modelId" xorm:"'model_id' bigint pk comment('主键ID') "`
- ObjectId int64 `json:"objectId" xorm:"'object_id' bigint pk comment('主键ID') "`
- ObjectCode string `json:"objectCode" xorm:"'object_code' varchar(127) comment('ObjectCode') "`
- AttrId int64 `json:"attrId" xorm:"'attr_id' bigint pk comment('主键ID') "`
- AttrTitle string `json:"attrTitle" xorm:"'attr_title' varchar(127) comment('AttrTitle') "`
- AttrCode string `json:"attrCode" xorm:"'attr_code' varchar(127) comment('AttrCode') "`
- JsonCode string `json:"jsonCode" xorm:"'json_code' varchar(127) comment('JsonCode') "`
- StructCode string `json:"structCode" xorm:"'struct_code' varchar(127) comment('StructCode') "`
- AttrType int64 `json:"attrType" xorm:"'attr_type' bigint comment('Type') "`
- 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('描述') "`
- IsFixed int64 `json:"isFixed" xorm:"'is_fixed' int comment('是否可修改') "`
- IsNotNull int64 `json:"isNotNull" xorm:"'is_not_null' int comment('是否可修改') "`
- IsPKey int64 `json:"isPKey" xorm:"'is_pkey' int comment('是否可修改') "`
- SortNo int64 `json:"sortNo" xorm:"'sort_no' int comment('是否可修改') "`
- }
- func (t *ModelObjectAttrInfo) TableName() string {
- return "ds_object_attr"
- }
- func (t *ModelObjectAttrInfo) MarshalBinary() (data []byte, err error){
- return json.Marshal(t)
- }
- func (t *ModelObjectAttrInfo) UnmarshalBinary(data []byte) (err error){
- return json.Unmarshal(data, t)
- }
|