AuthPlatform/src/service/system/user.lua

27 lines
509 B
Lua
Raw Normal View History

---
--- Generated by EmmyLua(https://github.com/EmmyLua)
--- Created by .
--- DateTime: 2025/9/25 08:19
2025-10-14 14:45:47 +08:00
--- 业务逻辑
local cjson = require('cjson')
local pgmoon = require('pgmoon');
local _M = {}
2025-10-14 14:45:47 +08:00
-- 创建一个新的连接
local conn = pgmoon.new(db_config.postgres)
-- 连接到数据库
conn:connect(function(err)
if err then
print("Error connecting to database: ", err)
else
print("Connected to the PostgreSQL server.")
end
end)
function _M.getAllUser()
end
return _M