getRolesByNamesAndSource
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
package com.cool.store.controller.webb;
|
||||
|
||||
import com.cool.store.response.ResponseResult;
|
||||
import com.cool.store.service.SysRoleService;
|
||||
import io.swagger.annotations.Api;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
@RestController
|
||||
@RequestMapping("/pc/sysRole")
|
||||
@Api(tags = "角色信息")
|
||||
@Slf4j
|
||||
public class SysRoleController {
|
||||
@Autowired
|
||||
private SysRoleService sysRoleService;
|
||||
|
||||
@GetMapping(path = "/getXfsgRoles")
|
||||
public ResponseResult<Map<String, Long>> getXfsgRoles() {
|
||||
return ResponseResult.success(sysRoleService.getXfsgRoles());
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user