func (r *GormWorkItemTypeRepository) List(ctx context.Context, spaceID uuid.UUID, start *int, limit *int) ([]WorkItemType, error) {
	// Currently we don't implement filtering here, so leave this empty
	// TODO: (kwk) implement criteria parsing just like for work items
	var rows []WorkItemType
	db := r.db.Where("space_id = ?", spaceID)
	if start != nil {
		db = db.Offset(*start)
	}
	if limit != nil {
		db = db.Limit(*limit)
	}
	if err := db.Find(&rows).Error; err != nil {
		return nil, errs.WithStack(err)
	}
	return rows, nil
}
// List returns work item types selected by the given criteria.Expression, starting with start (zero-based) and returning at most "limit" item types
List returns work item types selected by the given criteria.Expression, starting with start (zero-based) and returning at most "limit" item types
// List returns work item types selected by the given criteria . Expression starting with start ( zero - based ) and returning at most " limit " item types
func (r *GormWorkItemTypeRepository) List(ctx context.Context, spaceID uuid.UUID, start *int, limit *int) ([]WorkItemType, error) {
	var rows []WorkItemType
	db := r.db.Where("space_id = ?", spaceID)
	if start != nil {
		db = db.Offset(*start)
	}
	if limit != nil {
		db = db.Limit(*limit)
	}
	if err := db.Find(&rows).Error; err != nil {
		return nil, errs.WithStack(err)
	}
	return rows, nil
}
func ( r * GormWorkItemTypeRepository ) List ( ctx context . Context , spaceID uuid . UUID , start * int , limit * int ) ( [ ] WorkItemType , error ) { var rows [ ] WorkItemType db := r . db . Where ( " " , spaceID ) if start != nil { db = db . Offset ( * start ) } if limit != nil { db = db . Limit ( * limit ) } if err := db . Find ( & rows ) . Error ; err != nil { return nil , errs . WithStack ( err ) } return rows , nil }
List returns work item types selected by the given criteria.Expression, starting with start (zero-based) and returning at most "limit" item types
List returns work item types selected by the given criteria . Expression starting with start ( zero - based ) and returning at most " limit " item types
// Currently we don't implement filtering here, so leave this empty // TODO: (kwk) implement criteria parsing just like for work items