| | |
| | | package com.xiaopeng.api.dto.account; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.EnumValue; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | |
| | | @ApiModelProperty(value = "纬度") |
| | | private double longitude; |
| | | |
| | | @ApiModelProperty(value = "纬度") |
| | | @ApiModelProperty(value = "状态:0在线,1空闲,2上班中") |
| | | private Integer status; |
| | | |
| | | @ApiModelProperty(value = "距离,这个是mongoDB查询时填充") |
| | | private double distance; |
| | | |
| | | |
| | | @ApiModelProperty(value = "状态;在线 , 上班中 , 空闲") |
| | | private Long status; |
| | | |
| | | enum Status { |
| | | online("在线"),working("上班中"),idle("空闲"); |
| | | |
| | | String label; |
| | | |
| | | Status(String label) { |
| | | this.label = label; |
| | | } |
| | | } |
| | | } |