|
@@ -11,7 +11,9 @@ import com.jd.service.ProcessPlanService;
|
|
|
import com.jd.service.ProcessService;
|
|
|
import com.jd.util.Blank;
|
|
|
import com.jd.util.SendUtil;
|
|
|
+import com.jd.util.VoiceInitUtil;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
+import org.springframework.beans.factory.annotation.Value;
|
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
@@ -33,6 +35,10 @@ public class ProcessPlanController {
|
|
|
private ProcessPlanService processPlanService;
|
|
|
@Resource
|
|
|
private ProcessService processService;
|
|
|
+
|
|
|
+ @Value("${web.file}")
|
|
|
+ private String path;
|
|
|
+
|
|
|
@PostMapping("/addProcessPlan")
|
|
|
@ApiOperation(value = "新增")
|
|
|
public Map<String, Object> addProcessPlan(ProcessPlan processPlan) {
|
|
@@ -107,4 +113,11 @@ public class ProcessPlanController {
|
|
|
ProcessPlan processPlan = processPlanService.getById(planId);
|
|
|
return SendUtil.send(true, ConstString.RESULT_SUCCESS, processPlan);
|
|
|
}
|
|
|
+
|
|
|
+ @PostMapping("voiceInit")
|
|
|
+ @ApiOperation(value = "初始化流程音频")
|
|
|
+ public Map<String, Object> voiceInit(Integer planId) {
|
|
|
+ boolean init = VoiceInitUtil.init(planId, path);
|
|
|
+ return SendUtil.send(init);
|
|
|
+ }
|
|
|
}
|