expressServer/config/messages.js
LingandRX f7d28672b7 feat(session): 使用 Redis 存储会话数据
- 新增 Redis 配置和连接逻辑
- 更新 express-session 配置,使用 RedisStore 存储会话
- 修改 .env 和 .gitignore 文件,添加 Redis 相关配置
- 更新用户登录和会话管理相关代码
2024-12-30 22:10:51 +08:00

20 lines
519 B
JavaScript

// messages.js
module.exports = {
user: {
// 成功消息
created: 'user created',
updated: 'user updated',
deleted: 'user deleted',
login: 'login successful',
logout: 'logout successful',
// 错误消息
not_found: 'user not found',
already_exists: 'user already exists',
account_password_not_match: 'account and password not match',
account_not_match: 'account not match',
password_not_match: 'password not match',
password_incorrect: 'password incorrect'
}
}