package structs import "time" type Robot struct { Id string Type uint8 Name string Status uint8 Address string `gorm:"-"` CurrentJobId string CurrentTask string LastTaskAt time.Time `gorm:"-"` ConnectedAt time.Time `gorm:"-"` CreatedAt time.Time } type UnauthorizedRobot struct { Id string Type uint8 Address string ConnectedAt time.Time CreatedAt time.Time } // swagger:model FirstRequestBody type FirstRequestBody struct { // robot id Id string // robot type Type uint8 // used firmware version of the robot FirmwareVersion string // connected modul like a gripper //ConnectedModul uint8 } // swagger:model StatusResponse type StatusResponse struct { Status string } // swagger:model GetRobotsResponse type GetRobotsResponse struct { Robots []Robot UnauthorizedRobots []UnauthorizedRobot } type RobotIdParams struct { RobotId string } type RobotNameParams struct { RobotName string }