what is the point of id here? I suppose seatNumber could be a unique identifier. So why need to design an extra field called id here?
'''
type Seat struct {
ID string
SeatNumber string
Type SeatType
Price float64
status SeatStatus
mu sync.Mutex
}
func NewSeat(id, seatNumber string, seatType SeatType, price float64) *Seat {
return &Seat{
ID: id,
SeatNumber: seatNumber,
Type: seatType,
Price: price,
status: StatusAvailable,
}
}
'''