package com.xunhong.erp.turbo.api.rbac.dto.cmd;

import com.alibaba.cola.dto.Command;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.List;

@Data
@Schema(title = "角色新增")
@EqualsAndHashCode(callSuper = true)
public class RoleCreateCmd extends Command {

	@Schema(title = "平台id", requiredMode = Schema.RequiredMode.REQUIRED, type = "string")
	private Long platformId;

	@Schema(title = "角色标识", requiredMode = Schema.RequiredMode.REQUIRED)
	private String slug;

	@Schema(title = "角色名称", requiredMode = Schema.RequiredMode.REQUIRED)
	private String name;

	@Schema(title = "角色类型", requiredMode = Schema.RequiredMode.REQUIRED)
	private String type;

	@Schema(title = "角色详情", type = "string")
	private String description;

	@Schema(title = "角色id", requiredMode = Schema.RequiredMode.REQUIRED)
	private List<Long> menuId;
}

