@RequestMapping(value = "/getlistdata", method = RequestMethod.GET) @ResponseBody public String getlist( @RequestParam(defaultValue = "1") Integer page, @RequestParam(defaultValue = "12") Integer size, String search) { return RequestResult.success(service.findPage(page, size, search)).toJson(); }
@RequestMapping(value = "/{id}", method = RequestMethod.DELETE) public @ResponseBody String delete(@PathVariable String id) { service.logicDelete(id); return RequestResult.success(null).toJson(); }
/** * 用于获取总店下的分店 * * @param shopId * @return */ @RequestMapping(value = "/getShop", method = RequestMethod.GET) @ResponseBody public String getShop(String shopId) { return RequestResult.success(service.findOne(shopId)).toJson(); }