com.macro.mall.model.UmsRole Java Examples

The following examples show how to use com.macro.mall.model.UmsRole. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: UmsAdminController.java    From mall with Apache License 2.0 5 votes vote down vote up
@ApiOperation("获取指定用户的角色")
@RequestMapping(value = "/role/{adminId}", method = RequestMethod.GET)
@ResponseBody
public CommonResult<List<UmsRole>> getRoleList(@PathVariable Long adminId) {
    List<UmsRole> roleList = adminService.getRoleList(adminId);
    return CommonResult.success(roleList);
}
 
Example #2
Source File: UmsRoleController.java    From macrozheng with Apache License 2.0 5 votes vote down vote up
@ApiOperation("添加角色")
@RequestMapping(value = "/create", method = RequestMethod.POST)
@ResponseBody
public CommonResult create(@RequestBody UmsRole role) {
    int count = roleService.create(role);
    if (count > 0) {
        return CommonResult.success(count);
    }
    return CommonResult.failed();
}
 
Example #3
Source File: UmsRoleController.java    From macrozheng with Apache License 2.0 5 votes vote down vote up
@ApiOperation("修改角色")
@RequestMapping(value = "/update/{id}", method = RequestMethod.POST)
@ResponseBody
public CommonResult update(@PathVariable Long id, @RequestBody UmsRole role) {
    int count = roleService.update(id, role);
    if (count > 0) {
        return CommonResult.success(count);
    }
    return CommonResult.failed();
}
 
Example #4
Source File: UmsRoleController.java    From macrozheng with Apache License 2.0 5 votes vote down vote up
@ApiOperation("获取所有角色")
@RequestMapping(value = "/list", method = RequestMethod.GET)
@ResponseBody
public Object list() {
    List<UmsRole> roleList = roleService.list();
    return CommonResult.success(roleList);
}
 
Example #5
Source File: UmsAdminController.java    From macrozheng with Apache License 2.0 5 votes vote down vote up
@ApiOperation("获取指定用户的角色")
@RequestMapping(value = "/role/{adminId}", method = RequestMethod.GET)
@ResponseBody
public CommonResult<List<UmsRole>> getRoleList(@PathVariable Long adminId) {
    List<UmsRole> roleList = adminService.getRoleList(adminId);
    return CommonResult.success(roleList);
}
 
Example #6
Source File: UmsRoleController.java    From macrozheng-mall with MIT License 5 votes vote down vote up
@ApiOperation("添加角色")
@RequestMapping(value = "/create", method = RequestMethod.POST)
@ResponseBody
public Object create(@RequestBody UmsRole role) {
    int count = roleService.create(role);
    if(count>0){
        return new CommonResult().success(count);
    }
    return new CommonResult().failed();
}
 
Example #7
Source File: UmsRoleController.java    From macrozheng-mall with MIT License 5 votes vote down vote up
@ApiOperation("修改角色")
@RequestMapping(value = "/update/{id}", method = RequestMethod.POST)
@ResponseBody
public Object update(@PathVariable Long id, @RequestBody UmsRole role) {
    int count = roleService.update(id,role);
    if(count>0){
        return new CommonResult().success(count);
    }
    return new CommonResult().failed();
}
 
Example #8
Source File: UmsAdminController.java    From mall-swarm with Apache License 2.0 5 votes vote down vote up
@ApiOperation("获取指定用户的角色")
@RequestMapping(value = "/role/{adminId}", method = RequestMethod.GET)
@ResponseBody
public CommonResult<List<UmsRole>> getRoleList(@PathVariable Long adminId) {
    List<UmsRole> roleList = adminService.getRoleList(adminId);
    return CommonResult.success(roleList);
}
 
Example #9
Source File: UmsAdminController.java    From macrozheng-mall with MIT License 5 votes vote down vote up
@ApiOperation("获取指定用户的角色")
@RequestMapping(value = "/role/{adminId}",method = RequestMethod.GET)
@ResponseBody
public Object getRoleList(@PathVariable Long adminId){
    List<UmsRole> roleList = adminService.getRoleList(adminId);
    return new CommonResult().success(roleList);
}
 
Example #10
Source File: UmsRoleController.java    From macrozheng-mall with MIT License 5 votes vote down vote up
@ApiOperation("获取所有角色")
@RequestMapping(value = "/list",method = RequestMethod.GET)
@ResponseBody
public Object list(){
    List<UmsRole> roleList = roleService.list();
    return new CommonResult().success(roleList);
}
 
Example #11
Source File: UmsRoleService.java    From mall with Apache License 2.0 2 votes vote down vote up
/**
 * 添加角色
 */
int create(UmsRole role);
 
Example #12
Source File: UmsRoleService.java    From macrozheng-mall with MIT License 2 votes vote down vote up
/**
 * 获取角色列表
 */
List<UmsRole> list();
 
Example #13
Source File: UmsAdminRoleRelationDao.java    From macrozheng-mall with MIT License 2 votes vote down vote up
/**
 * 获取用于所有角色
 */
List<UmsRole> getRoleList(@Param("adminId") Long adminId);
 
Example #14
Source File: UmsRoleService.java    From mall-swarm with Apache License 2.0 2 votes vote down vote up
/**
 * 分页获取角色列表
 */
List<UmsRole> list(String keyword, Integer pageSize, Integer pageNum);
 
Example #15
Source File: UmsRoleService.java    From mall-swarm with Apache License 2.0 2 votes vote down vote up
/**
 * 获取所有角色列表
 */
List<UmsRole> list();
 
Example #16
Source File: UmsRoleService.java    From mall-swarm with Apache License 2.0 2 votes vote down vote up
/**
 * 修改角色信息
 */
int update(Long id, UmsRole role);
 
Example #17
Source File: UmsAdminRoleRelationDao.java    From mall-swarm with Apache License 2.0 2 votes vote down vote up
/**
 * 获取用于所有角色
 */
List<UmsRole> getRoleList(@Param("adminId") Long adminId);
 
Example #18
Source File: UmsRoleService.java    From mall-swarm with Apache License 2.0 2 votes vote down vote up
/**
 * 添加角色
 */
int create(UmsRole role);
 
Example #19
Source File: UmsAdminService.java    From mall-swarm with Apache License 2.0 2 votes vote down vote up
/**
 * 获取用户对于角色
 */
List<UmsRole> getRoleList(Long adminId);
 
Example #20
Source File: UmsAdminService.java    From macrozheng-mall with MIT License 2 votes vote down vote up
/**
 * 获取用户对于角色
 */
List<UmsRole> getRoleList(Long adminId);
 
Example #21
Source File: UmsAdminRoleRelationDao.java    From mall with Apache License 2.0 2 votes vote down vote up
/**
 * 获取用于所有角色
 */
List<UmsRole> getRoleList(@Param("adminId") Long adminId);
 
Example #22
Source File: UmsRoleService.java    From mall with Apache License 2.0 2 votes vote down vote up
/**
 * 修改角色信息
 */
int update(Long id, UmsRole role);
 
Example #23
Source File: UmsAdminRoleRelationDao.java    From macrozheng with Apache License 2.0 2 votes vote down vote up
/**
 * 获取用于所有角色
 */
List<UmsRole> getRoleList(@Param("adminId") Long adminId);
 
Example #24
Source File: UmsRoleService.java    From mall with Apache License 2.0 2 votes vote down vote up
/**
 * 获取所有角色列表
 */
List<UmsRole> list();
 
Example #25
Source File: UmsRoleService.java    From macrozheng with Apache License 2.0 2 votes vote down vote up
/**
 * 添加角色
 */
int create(UmsRole role);
 
Example #26
Source File: UmsRoleService.java    From macrozheng with Apache License 2.0 2 votes vote down vote up
/**
 * 修改角色信息
 */
int update(Long id, UmsRole role);
 
Example #27
Source File: UmsRoleService.java    From macrozheng with Apache License 2.0 2 votes vote down vote up
/**
 * 获取角色列表
 */
List<UmsRole> list();
 
Example #28
Source File: UmsAdminService.java    From macrozheng with Apache License 2.0 2 votes vote down vote up
/**
 * 获取用户对于角色
 */
List<UmsRole> getRoleList(Long adminId);
 
Example #29
Source File: UmsAdminService.java    From mall with Apache License 2.0 2 votes vote down vote up
/**
 * 获取用户对于角色
 */
List<UmsRole> getRoleList(Long adminId);
 
Example #30
Source File: UmsRoleService.java    From mall with Apache License 2.0 2 votes vote down vote up
/**
 * 分页获取角色列表
 */
List<UmsRole> list(String keyword, Integer pageSize, Integer pageNum);