package cn.iocoder.yudao.module.system.controller.admin.biz.vo;

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

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * @Author: jinyd
 * @CreateTime: 2024/10/15  16:08
 * @Description:
 * @Version: 4.0
 */


@Schema(description = "管理后台 - 设备分类新增/修改 Request VO")
@Data
public class DeviceCategorySaveReqVO {

    @Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "14584")
    private Long id;

    @Schema(description = "类型名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "张三")
    @NotEmpty(message = "类型名称不能为空")
    private String name;

    @Schema(description = "状态，0-禁用，1-开启", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
    @NotNull(message = "状态，状态，0-禁用，1-开启不能为空")
    private Integer status;

    @Schema(description = "类型，0-健康，1-监控，2-睡眠，3-跌倒，4-安防，5-腕表，6-环境", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
    @NotNull(message = "类型，0-健康，1-监控，2-睡眠，3-跌倒，4-安防，5-腕表，6-环境不能为空")
    private Integer type;

    @Schema(description = "备注", requiredMode = Schema.RequiredMode.REQUIRED, example = "随便")
    @NotEmpty(message = "备注不能为空")
    private String remark;

}
