expressServer/config/message.js

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'
}
}