mirror of
https://gitee.com/ssssssss-team/magic-boot.git
synced 2025-01-20 04:22:49 +08:00
30 lines
745 B
Plaintext
30 lines
745 B
Plaintext
{
|
|
"properties" : { },
|
|
"id" : "c86e4f8fd4bc4d63bfaec8a53ea333cf",
|
|
"script" : null,
|
|
"groupId" : "4f0230049d7e4f39b1e0897cc0f46f9a",
|
|
"name" : "删除",
|
|
"createTime" : null,
|
|
"updateTime" : 1641218486141,
|
|
"lock" : "0",
|
|
"method" : "POST",
|
|
"path" : "/delete",
|
|
"parameters" : [ ],
|
|
"option" : "[]",
|
|
"requestBody" : "",
|
|
"headers" : [ ],
|
|
"paths" : [ ],
|
|
"responseBody" : null,
|
|
"description" : null,
|
|
"requestBodyDefinition" : null,
|
|
"responseBodyDefinition" : null,
|
|
"optionMap" : { }
|
|
}
|
|
================================
|
|
import org.ssssssss.magicapi.cache.SqlCache
|
|
|
|
for(userId in id.split(',')){
|
|
SqlCache.delete(`permissions:${userId}`)
|
|
db.table("sys_user").logic().where().eq("id",userId).delete();
|
|
}
|
|
return true |