|
@ -8,11 +8,13 @@ import com.yihu.jw.restmodel.web.ListEnvelop;
|
|
import com.yihu.jw.restmodel.web.ObjEnvelop;
|
|
import com.yihu.jw.restmodel.web.ObjEnvelop;
|
|
import com.yihu.jw.restmodel.web.PageEnvelop;
|
|
import com.yihu.jw.restmodel.web.PageEnvelop;
|
|
import com.yihu.jw.restmodel.web.endpoint.EnvelopRestEndpoint;
|
|
import com.yihu.jw.restmodel.web.endpoint.EnvelopRestEndpoint;
|
|
|
|
import com.yihu.jw.util.tencent.TencentVODUtil;
|
|
import com.yihu.jw.utils.StringUtil;
|
|
import com.yihu.jw.utils.StringUtil;
|
|
import io.swagger.annotations.Api;
|
|
import io.swagger.annotations.Api;
|
|
import io.swagger.annotations.ApiOperation;
|
|
import io.swagger.annotations.ApiOperation;
|
|
import io.swagger.annotations.ApiParam;
|
|
import io.swagger.annotations.ApiParam;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
import org.springframework.http.MediaType;
|
|
import org.springframework.http.MediaType;
|
|
import org.springframework.web.bind.annotation.*;
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
@ -36,6 +38,11 @@ public class CourseEndpoint extends EnvelopRestEndpoint {
|
|
@Autowired
|
|
@Autowired
|
|
private WlyyHospitalSysDictDao wlyyHospitalSysDictDao;
|
|
private WlyyHospitalSysDictDao wlyyHospitalSysDictDao;
|
|
|
|
|
|
|
|
@Value("${tencent.secretId}")
|
|
|
|
private String secretId;
|
|
|
|
@Value("${tencent.secretKey}")
|
|
|
|
private String secretKey;
|
|
|
|
|
|
@PostMapping(value = "create")
|
|
@PostMapping(value = "create")
|
|
@ApiOperation(value = "创建")
|
|
@ApiOperation(value = "创建")
|
|
public ObjEnvelop<CourseDO> create (
|
|
public ObjEnvelop<CourseDO> create (
|
|
@ -121,4 +128,13 @@ public class CourseEndpoint extends EnvelopRestEndpoint {
|
|
@RequestParam(value = "orgCode", required = false) String orgCode) throws Exception {
|
|
@RequestParam(value = "orgCode", required = false) String orgCode) throws Exception {
|
|
return success(courseService.findDoctorByOrg(orgCode));
|
|
return success(courseService.findDoctorByOrg(orgCode));
|
|
}
|
|
}
|
|
|
|
|
|
|
|
@GetMapping(value = "getTXUploadSignature")
|
|
|
|
@ApiOperation(value = "获取腾讯视频上传签名")
|
|
|
|
public Envelop getTXUploadSignature() throws Exception {
|
|
|
|
TencentVODUtil tencentVODUtil = new TencentVODUtil();
|
|
|
|
tencentVODUtil.setSecretId(secretId);
|
|
|
|
tencentVODUtil.setSecretKey(secretKey);
|
|
|
|
return success(tencentVODUtil.getUploadSignature());
|
|
|
|
}
|
|
}
|
|
}
|