package com.xindazhou.vehicle.controller.admin.vehicle.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;

/**
 * 分类管理保存 Request VO
 *
 * @author xindazhou
 */
@Schema(description = "管理后台 - 分类管理保存 Request VO")
@Data
public class VehicleCategorySaveReqVO {

    @Schema(description = "ID", example = "1")
    private Long id;

    @Schema(description = "图标", example = "https://example.com/icon.png")
    private String icon;

    @Schema(description = "分类名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "使用指南")
    @NotBlank(message = "分类名称不能为空")
    private String name;

    @Schema(description = "分类代码", example = "guide")
    private String code;

    @Schema(description = "分类类型", example = "guide")
    private String categoryType;

    @Schema(description = "是否显示：0-不显示，1-显示", example = "1")
    private Integer isDisplay;

    @Schema(description = "排序", example = "1")
    private Integer sort;

}

