getRolesByNamesAndSource

This commit is contained in:
wangxiaopeng
2024-04-03 09:34:25 +08:00
parent eb7439a1f7
commit c3ea635620
6 changed files with 61 additions and 1 deletions

View File

@@ -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());
}
}