{ "properties" : { }, "id" : "5f05c02a8f60480c8c81f0cac54800df", "script" : null, "groupId" : "4f0230049d7e4f39b1e0897cc0f46f9a", "name" : "获取用户信息", "createTime" : null, "updateTime" : 1643710783720, "lock" : "0", "method" : "GET", "path" : "/info", "parameters" : [ ], "option" : "[]", "requestBody" : "{}", "headers" : [ ], "paths" : [ ], "responseBody" : "{\n \"code\": 402,\n \"message\": \"凭证已过期\",\n \"data\": null,\n \"timestamp\": 1643710751531,\n \"executeTime\": null\n}", "description" : null, "requestBodyDefinition" : null, "responseBodyDefinition" : { "name" : "", "value" : "", "description" : "", "required" : false, "dataType" : "Object", "type" : null, "defaultValue" : null, "validateType" : "", "error" : "", "expression" : "", "children" : [ { "name" : "code", "value" : "402", "description" : "", "required" : false, "dataType" : "Integer", "type" : null, "defaultValue" : null, "validateType" : "", "error" : "", "expression" : "", "children" : [ ] }, { "name" : "message", "value" : "凭证已过期", "description" : "", "required" : false, "dataType" : "String", "type" : null, "defaultValue" : null, "validateType" : "", "error" : "", "expression" : "", "children" : [ ] }, { "name" : "data", "value" : "null", "description" : "", "required" : false, "dataType" : "Object", "type" : null, "defaultValue" : null, "validateType" : "", "error" : "", "expression" : "", "children" : [ ] }, { "name" : "timestamp", "value" : "1643710751531", "description" : "", "required" : false, "dataType" : "Long", "type" : null, "defaultValue" : null, "validateType" : "", "error" : "", "expression" : "", "children" : [ ] }, { "name" : "executeTime", "value" : "null", "description" : "", "required" : false, "dataType" : "Object", "type" : null, "defaultValue" : null, "validateType" : "", "error" : "", "expression" : "", "children" : [ ] } ] }, "optionMap" : { } } ================================ import 'cn.dev33.satoken.stp.StpUtil'; import "@post:/security/permissions" as authoritiesList; var user = db.table("sys_user").where().eq("id",StpUtil.getLoginId()).selectOne() user.authorities = authoritiesList() return user