codegen_render_mapper
Renders MyBatis XML or MapStruct mapper files from database table context, supporting multiple templates including MybatisPlus-Mixed and useMapStruct.
Instructions
渲染 MyBatis XML mapper 或 MapStruct mapper。适用模板: Default(mapper.xml) / MybatisPlus-Mixed(mapper) / 含 useMapStruct(mapstruct_mapper)。sb35-java21 分类不需要 mapper,会返回空 files 列表。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| context | Yes | 从 codegen_build_context 返回的完整模板上下文 dict。包含 className/columns/primaryKeyType/templateCategory 等字段。LLM 应原样传递,可在传入前修改字段以重新渲染。 |