package org.dromara.zhishu.service.strategy;

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

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