Files
module-fastwebcore/target/fastweb/subscribe.lua
2026-03-31 16:00:38 +08:00

47 lines
666 B
Lua
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
-- 拦截器
local M = {}
M.module = fw_subscribe
--[[
FUNCTION 增加订阅
PARAM
express : 规则
filepath : LUA脚本
--]]
function M.add(express,filepath)
M.module.add(express,filepath)
end
--[[
FUNCTION 是否存在订阅规则
PARAM
express : 规则
RRETURN
`bool`
--]]
function M.exist(express)
return M.module.exist(express)
end
--[[
FUNCTION 移除订阅规则
PARAM
express : 规则
RRETURN
`bool`
--]]
function M.remove(express)
return M.module.remove(express)
end
--[[
FUNCTION 清空订阅
--]]
function M.clear(express)
return M.module.clear(express)
end
return M