Search in sources :

Example 6 with SysRole

use of com.ngtesting.platform.entity.SysRole in project ngtesting-platform by aaronchen2k.

the class SysRoleServiceImpl method disable.

@Override
public boolean disable(Long id) {
    SysRole po = (SysRole) get(SysRole.class, id);
    po.setDisabled(!po.getDisabled());
    saveOrUpdate(po);
    return true;
}
Also used : SysRole(com.ngtesting.platform.entity.SysRole)

Aggregations

SysRole (com.ngtesting.platform.entity.SysRole)6 RoleVo (com.ngtesting.platform.vo.RoleVo)3 JSONObject (com.alibaba.fastjson.JSONObject)2 AuthPassport (com.ngtesting.platform.util.AuthPassport)2 UserVo (com.ngtesting.platform.vo.UserVo)2 HashMap (java.util.HashMap)2 RequestMapping (org.springframework.web.bind.annotation.RequestMapping)2 ResponseBody (org.springframework.web.bind.annotation.ResponseBody)2 LinkedList (java.util.LinkedList)1