object_data_info.go 1.1 KB

1234567891011121314151617
  1. package viewmodels
  2. type ObjectDataInfo struct {
  3. ModelId int64 `json:"modelId" xorm:"'model_id' bigint pk comment('主键ID') "`
  4. ModelTitle string `json:"modelTitle" xorm:"'model_title' varchar(127) comment('Model Title')"`
  5. ObjectId int64 `json:"objectId" xorm:"'object_id' bigint pk comment('主键ID') "`
  6. ObjectType int64 `json:"objectType" xorm:"'object_type' bigint comment('Type') "`
  7. ObjectTitle string `json:"objectTitle" xorm:"'object_title' varchar(127) comment('模型名称') "`
  8. ObjectCode string `json:"objectCode" xorm:"'object_code' varchar(127) comment('模型名称') "`
  9. Comment string `json:"comment" xorm:"'comment' varchar(255) comment('描述') "`
  10. IsFixed int64 `json:"isFixed" xorm:"'is_fixed' int comment('是否可修改') "`
  11. Attrs []ObjectAttrInfo `json:"attrs"`
  12. }
  13. func (t *ObjectDataInfo) TableName() string {
  14. return "ds_object"
  15. }