package cn.cordys.crm.system.dto.field;

import cn.cordys.common.constants.EnumValue;
import cn.cordys.crm.system.constants.LocationScope;
import cn.cordys.crm.system.dto.field.base.BaseField;
import com.fasterxml.jackson.annotation.JsonTypeName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

@Data
@JsonTypeName(value = "LOCATION")
@EqualsAndHashCode(callSuper = true)
public class LocationField extends BaseField {

    @Schema(description = "地址范围")
    @EnumValue(enumClass = LocationScope.class)
    private String scope;

    @Schema(description = "地址类型|格式")
    private String locationType;
}
