123456789101112131415161718192021222324252627282930313233 |
- package warehouse
- type Lift struct {
- ID int `json:"id"`
- Address string `json:"address"`
- Disabled bool `json:"disabled"`
- Auto bool `json:"auto"`
- Name string `json:"name"`
- SID int `json:"sid"`
- Brand string `json:"brand"`
- SN string `json:"sn"`
- Load int `json:"load"`
- Net int `json:"net"`
- Addr string `json:"addr"`
- Status int `json:"status"`
- Floor int `json:"floor"`
- }
- func (w *Warehouse) IsLiftInFloor(sn string, floor int) bool {
- return false
- }
- func (w *Warehouse) GetLiftByAddr(adds *Addr) *Lift {
- return nil
- }
- func (lf *Lift) IsReady() bool {
- return lf.Status == Ready
- }
- func (lf *Lift) run() {
- lf.Status = Running
- }
|