Authored by Lixiaodi

增加tab资源位

package com.yohoufo.resource.service.impl.resource;
import com.alibaba.fastjson.JSONObject;
import org.springframework.stereotype.Service;
import com.yohoufo.resource.service.IResourceParse;
import com.yohoufo.resource.service.Resource;
import java.io.Serializable;
/**
* Created by oneway.wang on 2017/7/5.
*/
@Service
public class TabFloorResourceParse implements IResourceParse{
@Override
public Serializable parse(Resource resource) {
JSONObject data = resource.getData();
data.put("template_id",resource.getId().toString());
return data;
}
}
... ...