You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

18 lines
1.5 KiB

package com.mydreamjob.job.dto;
import io.swagger.v3.oas.annotations.media.Schema;
import com.fasterxml.jackson.annotation.JsonInclude;
import java.math.BigDecimal;
/** 与静态图片、JS API 或原生 SDK 解耦的位置响应。 */
@Schema(description = "岗位实际工作地点;仅 CONFIRMED 位置用于展示确认点位。UNSET 时坐标、坐标系、POI 均为 null。")
@JsonInclude(JsonInclude.Include.ALWAYS)
public record JobMapLocationView(
@Schema(requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = "AMAP", description = "地图提供方,固定 AMAP") String provider,
@Schema(requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = {"UNSET", "PENDING_CONFIRMATION", "CONFIRMED"}, description = "企业位置确认状态") String status,
@Schema(types = {"number", "null"}, minimum = "-180", maximum = "180", multipleOf = 0.000001, description = "经度,最多 6 位小数") BigDecimal longitude,
@Schema(types = {"number", "null"}, minimum = "-90", maximum = "90", multipleOf = 0.000001, description = "纬度,最多 6 位小数") BigDecimal latitude,
@Schema(types = {"string", "null"}, pattern = "^GCJ02$", description = "坐标系,已设置时为 GCJ02") String coordinateSystem,
@Schema(types = {"string", "null"}, maxLength = 80, description = "高德地点 ID") String poiId,
@Schema(types = {"string", "null"}, maxLength = 120, description = "地点名称") String poiName) {
}