优化
This commit is contained in:
parent
bcb952ad28
commit
ce242aa50e
@ -24,6 +24,7 @@ import com.zhgd.xmgl.modules.safetyhat.mapper.SafetyHatDevMapper;
|
||||
import com.zhgd.xmgl.modules.safetyhat.service.ISafetyHatDataService;
|
||||
import com.zhgd.xmgl.util.RundeSafeyHatUtils;
|
||||
import io.swagger.annotations.ApiImplicitParam;
|
||||
import io.swagger.annotations.ApiImplicitParams;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import net.javacrumbs.shedlock.core.SchedulerLock;
|
||||
@ -301,7 +302,10 @@ public class SafetyHatTask {
|
||||
|
||||
@OperLog(operModul = "智能安全帽设备管理", operType = "查询", operDesc = "文字转语音")
|
||||
@ApiOperation(value = "文字转语音并发送", notes = "文字转语音", httpMethod = "POST")
|
||||
@ApiImplicitParam(name = "content", value = "文字", paramType = "query", required = true, dataType = "String")
|
||||
@ApiImplicitParams({
|
||||
@ApiImplicitParam(name = "projectSn", value = "项目sn", paramType = "query", required = true, dataType = "String"),
|
||||
@ApiImplicitParam(name = "content", value = "文字", paramType = "query", required = true, dataType = "String")
|
||||
})
|
||||
@PostMapping(value = "/textToAudio")
|
||||
public void textToAudio(@ApiIgnore @RequestBody Map<String, Object> param) {
|
||||
ProjectInfoExtVo project = projectService.getProjectInfoBySn(MapUtils.getString(param, "projectSn"));
|
||||
@ -328,8 +332,11 @@ public class SafetyHatTask {
|
||||
}
|
||||
|
||||
@OperLog(operModul = "智能安全帽设备管理", operType = "查询", operDesc = "文字转语音")
|
||||
@ApiOperation(value = "文字转语音并发送", notes = "文字转语音", httpMethod = "POST")
|
||||
@ApiImplicitParam(name = "userId", value = "用户ID", paramType = "query", required = true, dataType = "String")
|
||||
@ApiOperation(value = "查询历史记录", notes = "查询历史记录", httpMethod = "POST")
|
||||
@ApiImplicitParams({
|
||||
@ApiImplicitParam(name = "projectSn", value = "项目sn", paramType = "query", required = true, dataType = "String"),
|
||||
@ApiImplicitParam(name = "userId", value = "用户ID", paramType = "query", required = true, dataType = "String")
|
||||
})
|
||||
@PostMapping(value = "/messageRecord")
|
||||
public Result<Object> messageRecord(@ApiIgnore @RequestBody Map<String, Object> param) {
|
||||
ProjectInfoExtVo project = projectService.getProjectInfoBySn(MapUtils.getString(param, "projectSn"));
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user