package com.bcxin.tenant.open.domains.services.commands;

import com.bcxin.tenant.open.infrastructures.commands.CommandAbstract;
import lombok.Getter;

/**
 * 修改坐标命令
 */
@Getter
public class UpdateLatLonCommand extends CommandAbstract {
    private final String employeeId;
    private final double latitude;
    private final double longitude;

    public UpdateLatLonCommand(String employeeId, double latitude, double longitude) {
        this.employeeId = employeeId;
        this.latitude = latitude;
        this.longitude = longitude;
    }

    public static UpdateLatLonCommand create(String employeeId, double latitude, double longitude) {
        return new UpdateLatLonCommand(employeeId, latitude, longitude);
    }
}
