自动生成的代码,controller里面的addDo()和editDo()方法都有这个注解
@At("/addDo")
@Ok("json")
@RequiresPermissions("platform.message.add")
@SLog(tag = "消息表", msg = "${args[0].id}")
public Object addDo(@Param("..")Message message, HttpServletRequest req) {
try {
messageService.insert(message);
return Result.success("system.success");
} catch (Exception e) {
return Result.error("system.error");
}
}