You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

39 lines
1.0 KiB

9 months ago
/**
* 增加${comment}
<#list params as param>
* @param ${param.key} ${param.comment}
</#list>
*/
@Before({POST.class})
@JwtCheckInterface({})
public void add${beanNameWithoutT}(${fullParameters}){
${daoName}.add${beanNameWithoutT}(${parameters});
renderJson(RetKit.renderSuccess());
9 months ago
}
/**
* 删除${comment}
<#list params as param>
* @param ${param.key} ${param.comment}
</#list>
*/
@Before({POST.class})
@JwtCheckInterface({})
@IsNumericInterface({"${key}"})
public void del${beanNameWithoutT}ById(${key_type} ${key}){
${daoName}.del${beanNameWithoutT}ById(${key});
renderJson(RetKit.renderSuccess());
9 months ago
}
/**修改${comment}
<#list params as param>
* @param ${param.key} ${param.comment}
</#list>
*/
@Before({POST.class})
@JwtCheckInterface({})
@IsNumericInterface({${key})
public void update${beanNameWithoutT}ById(${key_type} ${key} , ${fullParameters}){
${daoName}.update${beanNameWithoutT}ById(${key} , ${parameters});
renderJson(RetKit.renderSuccess());
9 months ago
}