# getJavaData **Repository Path**: null_577_9236/get-java-data ## Basic Information - **Project Name**: getJavaData - **Description**: No description available - **Primary Language**: NodeJS - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-09-23 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README src="https://user-images.githubusercontent.com/17680888/39081119-3057bbe2-456e-11e8-862c-646133ad4b43.png" # 快速获取Java实体类字段 ## 快速开始 ```console $ git clone https://gitee.com/null_577_9236/get-java-data.git $ cd get-java-data $ npm install $ npm run start :: 转译前文件默认src/files目录,而转译后的文件默认在dist目录. ``` ### 示例 ##### 默认 ```javascript getJavaData(); ``` ##### 自定义格式转换 ```javascript getJavaData({ format (data) { // 处理自定义格式 return '' // 处理好之后的格式,String类型 } }); ``` ### Props Prop | Type | Optional | Default | Description ---------------------- | ------- | -------- | ------------------------------ | ----------- input | Object | Yes | {} | 输入项配置 input.path | string | Yes | 'src/files' | 输入项的路径配置 output | Object | Yes | {} | 输出项配置 output.path | string | Yes | 'dist' | 输出项配置路径配置 tpl | Object | Yes | {} | 模板配置 tpl.filepath | string | Yes | 'src/template' | 模板文件目录 enableDefaultFormat | boolean | Yes | true | 是否启用默认格式转换 enableDefaultFormat | boolean | Yes | true | 是否启用去重复 format | Function | Yes | - | 自定义格式转换钩子函数