func (fprp *FloorPlanReferencePoint) FromRows(rows *sql.Rows) error {
	var scanfprp struct {
		ID         int
		CreateTime sql.NullTime
		UpdateTime sql.NullTime
		X          sql.NullInt64
		Y          sql.NullInt64
		Latitude   sql.NullFloat64
		Longitude  sql.NullFloat64
	}
	// the order here should be the same as in the `floorplanreferencepoint.Columns`.
	if err := rows.Scan(
		&scanfprp.ID,
		&scanfprp.CreateTime,
		&scanfprp.UpdateTime,
		&scanfprp.X,
		&scanfprp.Y,
		&scanfprp.Latitude,
		&scanfprp.Longitude,
	); err != nil {
		return err
	}
	fprp.ID = strconv.Itoa(scanfprp.ID)
	fprp.CreateTime = scanfprp.CreateTime.Time
	fprp.UpdateTime = scanfprp.UpdateTime.Time
	fprp.X = int(scanfprp.X.Int64)
	fprp.Y = int(scanfprp.Y.Int64)
	fprp.Latitude = scanfprp.Latitude.Float64
	fprp.Longitude = scanfprp.Longitude.Float64
	return nil
}
// FromRows scans the sql response data into FloorPlanReferencePoint.
FromRows scans the sql response data into FloorPlanReferencePoint.
// FromRows scans the sql response data into FloorPlanReferencePoint .
func (fprp *FloorPlanReferencePoint) FromRows(rows *sql.Rows) error {
	var scanfprp struct {
		ID         int
		CreateTime sql.NullTime
		UpdateTime sql.NullTime
		X          sql.NullInt64
		Y          sql.NullInt64
		Latitude   sql.NullFloat64
		Longitude  sql.NullFloat64
	}
	if err := rows.Scan(
		&scanfprp.ID,
		&scanfprp.CreateTime,
		&scanfprp.UpdateTime,
		&scanfprp.X,
		&scanfprp.Y,
		&scanfprp.Latitude,
		&scanfprp.Longitude,
	); err != nil {
		return err
	}
	fprp.ID = strconv.Itoa(scanfprp.ID)
	fprp.CreateTime = scanfprp.CreateTime.Time
	fprp.UpdateTime = scanfprp.UpdateTime.Time
	fprp.X = int(scanfprp.X.Int64)
	fprp.Y = int(scanfprp.Y.Int64)
	fprp.Latitude = scanfprp.Latitude.Float64
	fprp.Longitude = scanfprp.Longitude.Float64
	return nil
}
func ( fprp * FloorPlanReferencePoint ) FromRows ( rows * sql . Rows ) error { var scanfprp struct { ID int CreateTime sql . NullTime UpdateTime sql . NullTime X sql . NullInt64 Y sql . NullInt64 Latitude sql . NullFloat64 Longitude sql . NullFloat64 } if err := rows . Scan ( & scanfprp . ID , & scanfprp . CreateTime , & scanfprp . UpdateTime , & scanfprp . X , & scanfprp . Y , & scanfprp . Latitude , & scanfprp . Longitude , ) ; err != nil { return err } fprp . ID = strconv . Itoa ( scanfprp . ID ) fprp . CreateTime = scanfprp . CreateTime . Time fprp . UpdateTime = scanfprp . UpdateTime . Time fprp . X = int ( scanfprp . X . Int64 ) fprp . Y = int ( scanfprp . Y . Int64 ) fprp . Latitude = scanfprp . Latitude . Float64 fprp . Longitude = scanfprp . Longitude . Float64 return nil }
FromRows scans the sql response data into FloorPlanReferencePoint.
FromRows scans the sql response data into FloorPlanReferencePoint .
// the order here should be the same as in the `floorplanreferencepoint.Columns`.