14 lines
223 B
Lua
14 lines
223 B
Lua
function Response(isSuccess, message, data)
|
|
if not isSuccess then
|
|
return {
|
|
status = "error",
|
|
message = message
|
|
}
|
|
end
|
|
return {
|
|
status = "success",
|
|
data = data,
|
|
message = message
|
|
}
|
|
end
|