object_info.go 920 B

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