com.github.lhnonline.boot.common.response.FormErrors Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of weboot-common Show documentation
Show all versions of weboot-common Show documentation
用于SpringBoot项目 | 接口返回数据包装,http状态码aop, http请求日志统一打印 | 使用了fastjson,和 mybatis-plus-extension
The newest version!
package com.github.lhnonline.boot.common.response;
import lombok.Getter;
import lombok.Setter;
import java.util.HashMap;
import java.util.Map;
/**
* author luohaonan
* date 2020-11-11
* email [email protected]
* description
*/
@Getter
@Setter
public class FormErrors {
/**
* 错误摘要
*/
protected String digest;
/**
* 错误列表
*/
protected Map errorList = new HashMap<>();
/**
* @param field 表单字段
* @param errorMsg 错误信息
*/
public void putErrorMsg(String field, String errorMsg) {
errorList.put(field, errorMsg);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy