rk
19 小时以前 7666113e060747cce6be99e0deb68485b4283161
server/system_service/src/main/java/com/doumee/core/utils/Constants.java
@@ -1,6 +1,7 @@
package com.doumee.core.utils;
import com.alibaba.fastjson.JSONObject;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;
@@ -1461,8 +1462,12 @@
        public String getNoteinfo() {
            return noteinfo;
        }
    }
    public static String strToJson(String key,String val){
        Map<String,Object> map = new HashMap<>();
        map.put(key,val);
        return JSONObject.toJSONString(map);
    }
}