package cn.autoform.web.controller.templateusedinfo; import java.util.List; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMethod; import org.springframework.web.bind.annotation.RestController; import cn.autoform.bean.TemplateUsedDetails; import cn.autoform.fw.exception.RestResult; import cn.autoform.fw.utility.RestResultGenerator; import cn.autoform.web.service.templateusedinfo.TemplateUsedInfoService; /** * @author lt-wx * 模板使用详情Controller */ @RestController public class TemplateUsedInfoController { @Autowired private TemplateUsedInfoService templateUsedInfoService = null; /** * 模板使用详情 * @param tenantID * @param templateID * @return */ @RequestMapping(value = "${requset.templateUsedInfo}", method = RequestMethod.GET) public RestResult> getTemplateUsedInfoService(String tenantID,String templateID){ List rsList = templateUsedInfoService.getTemplateUsedInfo(tenantID,templateID); return RestResultGenerator.genSuccessResult(rsList); } }