| | |
| | | package com.zy.acs.manager.core.domain; |
| | | |
| | | |
| | | import com.zy.acs.manager.core.domain.type.DirectionType; |
| | | import com.zy.acs.manager.core.domain.type.CodeDirectionType; |
| | | import lombok.Data; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * Created by vincent on 2026/1/14 |
| | |
| | | @Data |
| | | public class DirectionDto { |
| | | |
| | | private DirectionType direction; |
| | | private Double angle; |
| | | |
| | | private Boolean enabled; |
| | | |
| | | public static List<DirectionDto> initCodeDirections() { |
| | | List<DirectionDto> list = new ArrayList<>(); |
| | | DirectionDto northDto = new DirectionDto(); |
| | | northDto.setAngle(CodeDirectionType.NORTH.angle); |
| | | northDto.setEnabled(true); |
| | | list.add(northDto); |
| | | |
| | | DirectionDto eastDto = new DirectionDto(); |
| | | eastDto.setAngle(CodeDirectionType.EAST.angle); |
| | | eastDto.setEnabled(true); |
| | | list.add(eastDto); |
| | | |
| | | DirectionDto southDto = new DirectionDto(); |
| | | southDto.setAngle(CodeDirectionType.SOUTH.angle); |
| | | southDto.setEnabled(true); |
| | | list.add(southDto); |
| | | |
| | | DirectionDto westDto = new DirectionDto(); |
| | | westDto.setAngle(CodeDirectionType.WEST.angle); |
| | | westDto.setEnabled(true); |
| | | list.add(westDto); |
| | | |
| | | return list; |
| | | } |
| | | |
| | | } |