实现敏感词检测后,失败发生邮箱

This commit is contained in:
2025-11-22 14:03:40 +08:00
parent c2cac51762
commit f3a9926caf
35 changed files with 1233 additions and 43916 deletions

View File

@@ -356,6 +356,38 @@ public class ResultDomain<T> implements Serializable{
this.data = null;
}
/**
* @description 操作失败
* @param message 返回消息
* @param data 返回数据
* @author yslg
* @since 2025-09-07
*/
public void fail(String message, T data) {
this.code = HttpStatus.BAD_REQUEST.value();
this.message = message;
this.success = false;
this.auth = true;
this.login = true;
this.data = data;
}
/**
* @description 操作失败
* @param message 返回消息
* @param dataList 返回数据列表
* @author yslg
* @since 2025-09-07
*/
public void fail(String message, List<T> dataList) {
this.code = HttpStatus.BAD_REQUEST.value();
this.message = message;
this.success = false;
this.auth = true;
this.login = true;
this.dataList = dataList;
}
/**
* @description 操作失败
* @param code 状态码