package org.dromara.zhishu.service.strategy;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.TypeReference;
import org.dromara.zhishu.domain.vo.GoodsItemGFVo;
import org.dromara.zhishu.domain.vo.ItemListVo;
import org.springframework.stereotype.Service;

@Service
public class ItemListJsonStringParseGFStrategy implements ItemListJsonStringParseStrategy<GoodsItemGFVo>{
    @Override
    public ItemListVo<GoodsItemGFVo> itemListJsonStringParse(String itemListStr) {
        return JSON.parseObject(itemListStr, new TypeReference<ItemListVo<GoodsItemGFVo>>() {});
    }
}
