类注解模板
/**
* @version V1.0
* @Title:
* @ClassName: ${PACKAGE_NAME} ${NAME}
* @Description:
* @Copyright 2021-2024 公司名称(公司网址) - Powered By 研发中心
* @author: name
* @date: ${DATE} ${TIME}
*/
方法注解模板
*
* @Author name
* @Description
* @Date $date$ $time$ $param$
* @Return $return$
**/
param脚本
groovyScript("def result = '';def params = \"${_1}\".replaceAll('[\\\\[|\\\\]|\\\\s]', '').split(',').toList(); for(i = 0; i < params.size(); i++) {if(params[i] != '')result+='* @Param ' + params[i] + ((i < params.size() - 1) ? '\\r\\n ' : '')}; return result == '' ? null : '\\r\\n ' + result", methodParameters())
return脚本
groovyScript("return \"${_1}\" == 'void' ? null : '\\r\\n * @return ' + \"${_1}\"", methodReturnType())