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 UserRoleUpdateCmd extends Command {
	@Schema(title = "用户ID", type = "string", requiredMode = Schema.RequiredMode.REQUIRED)
	private Long userId;

	@Schema(title = "角色ID")
	private List<Long> roleIdList;

	/**
	 * 是否覆盖
	 */
	@Schema(title = "是否覆盖", type = "boolean", requiredMode = Schema.RequiredMode.REQUIRED)
	private Boolean cover;
}
