Authored by Lixiaodi

增加tab资源位

  1 +package com.yohoufo.resource.service.impl.resource;
  2 +
  3 +import com.alibaba.fastjson.JSONObject;
  4 +import org.springframework.stereotype.Service;
  5 +import com.yohoufo.resource.service.IResourceParse;
  6 +import com.yohoufo.resource.service.Resource;
  7 +import java.io.Serializable;
  8 +
  9 +/**
  10 + * Created by oneway.wang on 2017/7/5.
  11 + */
  12 +@Service
  13 +public class TabFloorResourceParse implements IResourceParse{
  14 + @Override
  15 + public Serializable parse(Resource resource) {
  16 + JSONObject data = resource.getData();
  17 + data.put("template_id",resource.getId().toString());
  18 + return data;
  19 + }
  20 +}