@@ -0,0 +1,1620 @@
+package one.kii.kiimate.status.core.ctl;%0A%0Aimport one.kii.kiimate.status.core.api.VisitAssetApi;%0Aimport one.kii.summer.asdf.api.VisitApiCaller;%0Aimport one.kii.summer.io.context.ErestHeaders;%0Aimport one.kii.summer.io.context.ReadContext;%0Aimport one.kii.summer.io.receiver.ReadController;%0Aimport one.kii.summer.zoom.ZoomInById;%0Aimport org.springframework.beans.factory.annotation.Autowired;%0Aimport org.springframework.http.ResponseEntity;%0Aimport org.springframework.web.bind.annotation.*;%0A%0Aimport static one.kii.kiimate.status.core.ctl.VisitAssetCtl.ASSET_ID;%0Aimport static one.kii.kiimate.status.core.ctl.VisitStatusCtl.PROVIDER_ID;%0A%0A/**%0A * Created by WangYanJiong on 17/06/2017.%0A */%0A@RestController%0A@RequestMapping(value = %22/api/v1/%7B%22 + PROVIDER_ID + %22%7D/asset/%7B%22 + ASSET_ID + %22%7D%22, method = RequestMethod.GET)%0A@CrossOrigin(origins = %22*%22)%0Apublic class VisitAssetCtl extends ReadController %7B%0A%0A    public static final String SUBSCRIBER_ID = %22owner-id%22;%0A%0A    public static final String ASSET_ID = %22asset-id%22;%0A%0A%0A    @Autowired%0A    private VisitAssetApi api;%0A%0A    private ResponseEntity%3C?%3E visit(%0A            @RequestHeader(value = ErestHeaders.REQUEST_ID, required = false) String requestId,%0A            @RequestHeader(ErestHeaders.VISITOR_ID) String subscriberId,%0A            @PathVariable(PROVIDER_ID) String providerId,%0A            @PathVariable(ASSET_ID) Long id) %7B%0A        ReadContext context = buildContext(requestId, providerId, subscriberId);%0A        ZoomInById zoom = new ZoomInById();%0A        zoom.setId(id);%0A        zoom.setSubscriberId(subscriberId);%0A        return VisitApiCaller.sync(api, context, zoom);%0A    %7D%0A%7D%0A

add visit asset controller