package com.iailab.module.system.enums;
|
|
/**
|
* System 操作日志枚举
|
* 目的:统一管理,也减少 Service 里各种“复杂”字符串
|
*
|
* @author iailab
|
*/
|
public interface LogRecordConstants {
|
|
// ======================= SYSTEM_USER 用户 =======================
|
|
String SYSTEM_USER_TYPE = "SYSTEM 用户";
|
String SYSTEM_USER_CREATE_SUB_TYPE = "创建用户";
|
String SYSTEM_USER_CREATE_SUCCESS = "创建了用户【{{#user.nickname}}】";
|
String SYSTEM_USER_UPDATE_SUB_TYPE = "更新用户";
|
String SYSTEM_USER_UPDATE_SUCCESS = "更新了用户【{{#user.nickname}}】: {_DIFF{#updateReqVO}}";
|
String SYSTEM_USER_DELETE_SUB_TYPE = "删除用户";
|
String SYSTEM_USER_DELETE_SUCCESS = "删除了用户【{{#user.nickname}}】";
|
String SYSTEM_USER_UPDATE_PASSWORD_SUB_TYPE = "重置用户密码";
|
String SYSTEM_USER_UPDATE_PASSWORD_SUCCESS = "将用户【{{#user.nickname}}】的密码从【{{#user.password}}】重置为【{{#newPassword}}】";
|
|
// ======================= SYSTEM_ROLE 角色 =======================
|
|
String SYSTEM_ROLE_TYPE = "SYSTEM 角色";
|
String SYSTEM_ROLE_CREATE_SUB_TYPE = "创建角色";
|
String SYSTEM_ROLE_CREATE_SUCCESS = "创建了角色【{{#role.name}}】";
|
String SYSTEM_ROLE_UPDATE_SUB_TYPE = "更新角色";
|
String SYSTEM_ROLE_UPDATE_SUCCESS = "更新了角色【{{#role.name}}】: {_DIFF{#updateReqVO}}";
|
String SYSTEM_ROLE_DELETE_SUB_TYPE = "删除角色";
|
String SYSTEM_ROLE_DELETE_SUCCESS = "删除了角色【{{#role.name}}】";
|
|
}
|