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

import com.xunhong.erp.turbo.api.infra.dto.enums.CategoryTypeEnum;
import com.xunhong.erp.turbo.base.dto.Command;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;


@Data
@Schema(title = "分类创建")
@EqualsAndHashCode(callSuper = true)
public class CategoryCreateCmd extends Command {

	@Schema(title = "分类类型", example = "视频")
	private CategoryTypeEnum type;

	@Schema(title = "分类名称", example = "名称")
	private String name;

	@Schema(title = "上级分类id", example = "名称", type = "string")
	private Long pid;

	@Schema(title = "排序", example = "排序")
	private Integer sort;
}
