package cn.stylefeng.team.generator.api.pojo.generator.backend;

import cn.stylefeng.roses.kernel.rule.annotation.ChineseDescription;
import cn.stylefeng.team.generator.api.pojo.generator.BaseGeneratorRequest;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotEmpty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.List;

@Data
@EqualsAndHashCode(callSuper = true)
public class BackendGeneratorRequest extends BaseGeneratorRequest {

    @ChineseDescription("项目包名称")
    @NotBlank(message = "项目包名称不能为空")
    private String packageName;

    @ChineseDescription("元数据模型id的列表")
    @NotEmpty(message = "元数据模型id的列表不能为空")
    private List<Long> metaModelIdList;

    public @interface singleMode {
    }

}
