magic-boot/data/magic-api/api/后台/用户管理/删除.ms

30 lines
745 B
Plaintext
Raw Normal View History

2021-10-24 20:09:53 +08:00
{
"properties" : { },
"id" : "c86e4f8fd4bc4d63bfaec8a53ea333cf",
"script" : null,
"groupId" : "4f0230049d7e4f39b1e0897cc0f46f9a",
"name" : "删除",
"createTime" : null,
2022-01-04 14:56:52 +08:00
"updateTime" : 1641218486141,
2021-10-24 20:09:53 +08:00
"lock" : "0",
"method" : "POST",
"path" : "/delete",
"parameters" : [ ],
"option" : "[]",
"requestBody" : "",
"headers" : [ ],
"paths" : [ ],
"responseBody" : null,
"description" : null,
"requestBodyDefinition" : null,
"responseBodyDefinition" : null,
"optionMap" : { }
}
================================
2022-01-04 14:56:52 +08:00
import org.ssssssss.magicapi.cache.SqlCache
2021-10-24 20:09:53 +08:00
for(userId in id.split(',')){
2022-01-04 14:56:52 +08:00
SqlCache.delete(`permissions:${userId}`)
2021-10-24 20:09:53 +08:00
db.table("sys_user").logic().where().eq("id",userId).delete();
}
return true