2021-10-24 20:09:53 +08:00
|
|
|
{
|
|
|
|
"properties" : { },
|
|
|
|
"id" : "c86e4f8fd4bc4d63bfaec8a53ea333cf",
|
|
|
|
"script" : null,
|
|
|
|
"groupId" : "4f0230049d7e4f39b1e0897cc0f46f9a",
|
|
|
|
"name" : "删除",
|
2022-03-05 23:38:27 +08:00
|
|
|
"createTime" : null,
|
2022-03-08 00:56:23 +08:00
|
|
|
"updateTime" : 1646553121622,
|
2021-10-24 20:09:53 +08:00
|
|
|
"lock" : "0",
|
2022-03-05 22:30:18 +08:00
|
|
|
"createBy" : null,
|
|
|
|
"updateBy" : null,
|
2021-10-24 20:09:53 +08:00
|
|
|
"path" : "/delete",
|
2022-03-08 00:56:23 +08:00
|
|
|
"method" : "DELETE",
|
2021-10-24 20:09:53 +08:00
|
|
|
"parameters" : [ ],
|
2022-03-05 22:30:18 +08:00
|
|
|
"options" : [ {
|
|
|
|
"name" : "permission",
|
|
|
|
"value" : "user:delete",
|
|
|
|
"description" : "允许拥有该权限的访问",
|
|
|
|
"required" : false,
|
|
|
|
"dataType" : "String",
|
|
|
|
"type" : null,
|
|
|
|
"defaultValue" : null,
|
|
|
|
"validateType" : null,
|
|
|
|
"error" : null,
|
|
|
|
"expression" : null,
|
|
|
|
"children" : null
|
|
|
|
} ],
|
2022-02-06 12:34:56 +08:00
|
|
|
"requestBody" : "{\n\n}",
|
2021-10-24 20:09:53 +08:00
|
|
|
"headers" : [ ],
|
|
|
|
"paths" : [ ],
|
|
|
|
"responseBody" : null,
|
|
|
|
"description" : null,
|
2022-03-05 23:38:27 +08:00
|
|
|
"requestBodyDefinition" : {
|
|
|
|
"name" : "",
|
|
|
|
"value" : "",
|
|
|
|
"description" : "",
|
|
|
|
"required" : false,
|
|
|
|
"dataType" : "Object",
|
|
|
|
"type" : null,
|
|
|
|
"defaultValue" : null,
|
|
|
|
"validateType" : "",
|
|
|
|
"error" : "",
|
|
|
|
"expression" : "",
|
|
|
|
"children" : [ ]
|
|
|
|
},
|
2022-03-05 22:30:18 +08:00
|
|
|
"responseBodyDefinition" : null
|
2021-10-24 20:09:53 +08:00
|
|
|
}
|
|
|
|
================================
|
2022-03-05 23:38:27 +08:00
|
|
|
import org.ssssssss.magicapi.modules.db.cache.SqlCache
|
2022-01-04 14:56:52 +08:00
|
|
|
|
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
|