package cn.stylefeng.team.meta.modular.service;

import cn.stylefeng.team.generator.api.pojo.generator.result.CommonGenerateResult;
import cn.stylefeng.team.generator.api.pojo.template.GeneratorTemplateGroup;
import cn.stylefeng.team.meta.api.entity.MetaModel;
import cn.stylefeng.team.meta.api.pojo.MetaModelCreatSqlDTO;
import cn.stylefeng.team.meta.modular.pojo.request.MetaModelRequest;

import java.util.List;

public interface CreateTableGenerateService {

    List<MetaModelCreatSqlDTO> getBusinessMetaModelFieldInfoList(MetaModelRequest metaModelRequest);

    List<MetaModelCreatSqlDTO> getMetaModelFieldInfoList(List<Long> metaModelIdList, List<MetaModel> metaModelList);

    List<CommonGenerateResult> codeGenerate(GeneratorTemplateGroup templateGroup,
                                            List<MetaModelCreatSqlDTO> modelFieldInfoList);

}
