package com.huigou.uasp.bmp.opm.controller;

import com.huigou.uasp.annotation.ControllerMapping;
import com.huigou.uasp.bmp.opm.application.LinkApplication;
import com.huigou.uasp.bmp.opm.domain.model.resource.Link;
import com.huigou.uasp.client.CommonController;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;

import java.util.Collections;
import java.util.List;

/**
 * @author yonghuan
 */
@ControllerMapping("link")
@Controller
public class LinkController extends CommonController {

    @Autowired
    private LinkApplication linkApplication;

    public String syncLinks() {
        List<Link> links = Collections.emptyList();
        linkApplication.syncLinks(links);
        return success();
    }

}
