Search in sources :

Example 1 with WxconfigWarpper

use of com.ikoori.vip.server.modular.biz.warpper.WxconfigWarpper in project vip by guangdada.

the class WxConfigController method list.

/**
 * 获取公众号管理列表
 */
@RequestMapping(value = "/list", method = RequestMethod.POST)
@Permission
@ResponseBody
public Object list(String appid) {
    Page<WxConfig> page = new PageFactory<WxConfig>().defaultPage();
    List<Map<String, Object>> result = wxConfigDao.getWxConfigList(page, appid, page.getOrderByField(), page.isAsc());
    page.setRecords((List<WxConfig>) new WxconfigWarpper(result).warp());
    return super.packForBT(page);
}
Also used : WxConfig(com.ikoori.vip.common.persistence.model.WxConfig) WxconfigWarpper(com.ikoori.vip.server.modular.biz.warpper.WxconfigWarpper) Map(java.util.Map) Permission(com.ikoori.vip.common.annotion.Permission) RequestMapping(org.springframework.web.bind.annotation.RequestMapping) ResponseBody(org.springframework.web.bind.annotation.ResponseBody)

Aggregations

Permission (com.ikoori.vip.common.annotion.Permission)1 WxConfig (com.ikoori.vip.common.persistence.model.WxConfig)1 WxconfigWarpper (com.ikoori.vip.server.modular.biz.warpper.WxconfigWarpper)1 Map (java.util.Map)1 RequestMapping (org.springframework.web.bind.annotation.RequestMapping)1 ResponseBody (org.springframework.web.bind.annotation.ResponseBody)1