Showing
1 changed file
with
20 additions
and
0 deletions
resource/src/main/java/com/yohoufo/resource/service/impl/resource/TabFloorResourceParse.java
0 → 100644
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 | +} |
-
Please register or login to post a comment