peternameyakj
2024-07-14 9b96b21235ee41b47bfdeaa745ee2e56a119e09e
src/main/java/com/nq/common/ServerResponse.java
@@ -105,6 +105,9 @@
    public static <T> ServerResponse<T> createByErrorMsg(String errormsg, HttpServletRequest request) {
        return new ServerResponse(ResponseCode.ERROR.getCode(), new GoogleTranslateUtil().translate(errormsg,request.getHeader(LANG)));
    }
    public static <T> ServerResponse<T> createByErrorMsg(String errormsg, String langFrom ,String lang) throws Exception {
        return new ServerResponse(ResponseCode.ERROR.getCode(), new GoogleTranslateUtil().translate(langFrom,lang,errormsg));
    }
    public static <T> ServerResponse<T> createByErrorCodeMsg(int errorcode, String errormsg) {