Search in sources :

Example 1 with WxConfig

use of com.ikoori.vip.common.persistence.model.WxConfig in project vip by guangdada.

the class WxConfigController method wxConfigUpdate.

/**
 * 跳转到修改公众号管理
 */
@Permission
@RequestMapping("/wxConfig_update/{wxConfigId}")
public String wxConfigUpdate(@PathVariable Integer wxConfigId, Model model) {
    WxConfig wxConfig = wxConfigMapper.selectById(wxConfigId);
    model.addAttribute(wxConfig);
    return PREFIX + "wxConfig_edit.html";
}
Also used : WxConfig(com.ikoori.vip.common.persistence.model.WxConfig) Permission(com.ikoori.vip.common.annotion.Permission) RequestMapping(org.springframework.web.bind.annotation.RequestMapping)

Example 2 with WxConfig

use of com.ikoori.vip.common.persistence.model.WxConfig 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)

Example 3 with WxConfig

use of com.ikoori.vip.common.persistence.model.WxConfig in project vip by guangdada.

the class WxConfigController method detail.

/**
 * 公众号管理详情
 */
@Permission
@RequestMapping(value = "/detail/{wxConfigId}")
@ResponseBody
public Object detail(@PathVariable Long wxConfigId, Model model) {
    WxConfig wxConfig = wxConfigMapper.selectById(wxConfigId);
    model.addAttribute(wxConfig);
    return PREFIX + "wxConfig_edit.html";
}
Also used : WxConfig(com.ikoori.vip.common.persistence.model.WxConfig) 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)3 WxConfig (com.ikoori.vip.common.persistence.model.WxConfig)3 RequestMapping (org.springframework.web.bind.annotation.RequestMapping)3 ResponseBody (org.springframework.web.bind.annotation.ResponseBody)2 WxconfigWarpper (com.ikoori.vip.server.modular.biz.warpper.WxconfigWarpper)1 Map (java.util.Map)1