package com.ld.igds.temp.view;
|
|
import java.util.List;
|
|
import com.ld.igds.models.TempIntelConf;
|
import com.ld.igds.models.TempIntelTask;
|
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.stereotype.Component;
|
|
import com.bstek.dorado.annotation.DataProvider;
|
import com.bstek.dorado.annotation.DataResolver;
|
import com.bstek.dorado.annotation.Expose;
|
import com.ld.igds.temp.service.HTempIntelService;
|
|
@Component
|
public class TempIntelPR {
|
|
@Autowired
|
private HTempIntelService intelService;
|
|
/**
|
* tempIntelPR#listIntelTask
|
*
|
* @return
|
*/
|
@DataProvider
|
public List<TempIntelTask> listIntelTask() {
|
return intelService.listIntel();
|
}
|
|
/**
|
* tempIntelPR#saveIntelTask
|
*
|
* @param data
|
*/
|
@DataResolver
|
public void saveIntelTask(TempIntelTask data) {
|
intelService.saveIntel(data);
|
}
|
|
/**
|
* tempIntelPR#delIntelTask
|
*
|
* @param data
|
* @return
|
*/
|
@Expose
|
public String delIntelTask(TempIntelTask data) {
|
return intelService.delIntel(data);
|
}
|
|
/**
|
* tempIntelPR#taskRun
|
*
|
* 启动任务
|
*
|
* @param data
|
* @return
|
*/
|
@Expose
|
public String taskRun(TempIntelTask data) {
|
return intelService.taskRun(data);
|
}
|
|
/**
|
* 停止任务
|
*
|
* @param data
|
* @return
|
*/
|
@Expose
|
public String taskStop(TempIntelTask data) {
|
return intelService.taskStop(data);
|
}
|
|
|
/**
|
* tempIntelPR#listIntelConf
|
*
|
* @return
|
*/
|
@DataProvider
|
public List<TempIntelConf> listIntelConf() {
|
return intelService.listIntelConf();
|
}
|
|
|
/**
|
* tempIntelPR#saveIntelConf
|
*
|
* @param data
|
*/
|
@DataResolver
|
public void saveIntelConf(TempIntelConf data) {
|
intelService.saveIntelConf(data);
|
}
|
|
/**
|
* tempIntelPR#delIntelConf
|
*
|
* @param data
|
* @return
|
*/
|
@Expose
|
public String delIntelConf(TempIntelConf data) {
|
return intelService.delIntelConf(data);
|
}
|
|
|
}
|