package com.xindazhou.vehicle.api.dto.bind;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import jakarta.validation.constraints.NotNull;

/**
 * 车辆绑定 Request DTO
 *
 * @author xindazhou
 */
@Schema(description = "RPC 服务 - 车辆绑定 Request DTO")
@Data
public class VehicleBindReqDTO {

    @Schema(description = "车辆编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotNull(message = "车辆编号不能为空")
    private Long vehicleId;

    @Schema(description = "用户编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024")
    @NotNull(message = "用户编号不能为空")
    private Long userId;

    @Schema(description = "用户类型：1-会员用户(MEMBER), 2-管理员用户(ADMIN)", requiredMode = Schema.RequiredMode.REQUIRED, example = "1",
            allowableValues = {"1", "2"})
    @NotNull(message = "用户类型不能为空")
    private Integer userType;

    @Schema(description = "绑定类型：OWNER-车主, DRIVER-驾驶员, TEMPORARY-临时", example = "OWNER",
            allowableValues = {"OWNER", "DRIVER", "TEMPORARY"})
    private String bindType;

    @Schema(description = "备注", example = "主车辆")
    private String remark;

}

