@RequestMapping(value = "save", method = RequestMethod.POST) public @ResponseBody TransactionCategoryDO save( @CookieValue("ukey") String ukey, @RequestBody TransactionCategoryDO transactionCategory) { return controller.save(transactionCategory); }
@RequestMapping(value = "delete", method = RequestMethod.POST) public @ResponseBody void delete(@CookieValue("ukey") String ukey, @RequestParam("id") Long id) { controller.delete(ukey, id); }
@RequestMapping(value = "findById", method = RequestMethod.POST) public @ResponseBody TransactionCategoryDO findById( @CookieValue("ukey") String ukey, @RequestParam("id") Long id) { return controller.findById(ukey, id); }