feat: 权限作用域(Scopes)结构化枚举类与字典接口
This commit is contained in:
@@ -9,6 +9,7 @@ import com.iot.gateway.mapper.OpenClientMapper;
|
||||
import io.swagger.v3.oas.annotations.Operation;
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import java.security.SecureRandom;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.UUID;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
@@ -35,6 +36,12 @@ public class OpenClientAdminController {
|
||||
|
||||
private static final SecureRandom RANDOM = new SecureRandom();
|
||||
|
||||
@Operation(summary = "获取所有可授权的作用域 (Scopes) 枚举字典列表")
|
||||
@GetMapping("/scopes")
|
||||
public Result<List<Map<String, Object>>> listScopes() {
|
||||
return Result.success(com.iot.gateway.oauth.OpenScopeEnum.toList());
|
||||
}
|
||||
|
||||
@Operation(summary = "三方应用凭据分页列表")
|
||||
@GetMapping("/page")
|
||||
public Result<Page<OpenClient>> page(
|
||||
|
||||
Reference in New Issue
Block a user