object_info.go 1.0 KB

12345678910111213141516
  1. package viewmodels
  2. type ObjectInfo struct {
  3. ModelId int64 `json:"modelId" xorm:"'model_id' bigint pk comment('Model 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('Object ID') "`
  6. ObjectType int64 `json:"objectType" xorm:"'object_type' bigint comment('Object Type') "`
  7. ObjectTitle string `json:"objectTitle" xorm:"'object_title' varchar(127) comment('Object Title') "`
  8. ObjectCode string `json:"objectCode" xorm:"'object_code' varchar(127) comment('Object Code') "`
  9. Comment string `json:"comment" xorm:"'comment' varchar(255) comment('Comment') "`
  10. IsFixed int64 `json:"isFixed" xorm:"'is_fixed' int comment('Is Fixed?') "`
  11. }
  12. func (t *ObjectInfo) TableName() string {
  13. return "ds_object"
  14. }