diff --git a/src/main/java/com/platform/modules/live/controller/LiveSceneController.java b/src/main/java/com/platform/modules/live/controller/LiveSceneController.java index c0bed5e..f58e7e3 100644 --- a/src/main/java/com/platform/modules/live/controller/LiveSceneController.java +++ b/src/main/java/com/platform/modules/live/controller/LiveSceneController.java @@ -21,6 +21,7 @@ import com.platform.modules.live.vo.LiveInfoVo; import com.platform.modules.live.vo.SceneEntityVo; import com.platform.modules.sys.controller.AbstractController; import com.platform.modules.sys.entity.SysTenantEntity; +import com.platform.modules.sys.entity.SysUserEntity; import com.platform.modules.sys.service.impl.SysTenantServiceImpl; import com.platform.plugs.common.rpc.RpcResponse; import io.swagger.annotations.Api; @@ -433,7 +434,7 @@ public class LiveSceneController extends AbstractController { if (null == id) { return R.error("参数错误"); } - return liveSceneService.streamInfo(id); + return liveSceneService.streamInfo(id); } diff --git a/src/main/java/com/platform/modules/live/entity/LiveSceneLiveInfoEntity.java b/src/main/java/com/platform/modules/live/entity/LiveSceneLiveInfoEntity.java index 9001e1a..7d1d382 100644 --- a/src/main/java/com/platform/modules/live/entity/LiveSceneLiveInfoEntity.java +++ b/src/main/java/com/platform/modules/live/entity/LiveSceneLiveInfoEntity.java @@ -12,7 +12,7 @@ import java.util.Date; /** * 现场直播信息表 - * + * * @author zj * @date 2019-02-19 14:25:45 */ @@ -45,6 +45,7 @@ public class LiveSceneLiveInfoEntity implements Serializable { private String infoName; /** * 流类型,1:手机,2:摄像机 + * 类型,1:记者,2:直播间,3:第三方拉流 */ @ApiModelProperty(value = "类型,1:记者,2:直播间,3:第三方拉流") private Integer infoType; @@ -67,22 +68,22 @@ public class LiveSceneLiveInfoEntity implements Serializable { @ApiModelProperty(value = " 推流结束时间") private Date pushEnd; /** - * + * */ @ApiModelProperty(value = " pushDomain") private String pushDomain; /** - * + * */ @ApiModelProperty(value = " liveDomain") private String liveDomain; /** - * + * */ @ApiModelProperty(value = " appName") private String appName; /** - * + * */ @ApiModelProperty(value = " streamName") private String streamName; @@ -100,7 +101,7 @@ public class LiveSceneLiveInfoEntity implements Serializable { @ApiModelProperty(value = "是否转写语音文字,0:不转文字,1:转文字") private Integer isTxt; - + @ApiModelProperty(value = "排序,数字越大,排序越靠前") private Integer priority; /** @@ -108,7 +109,7 @@ public class LiveSceneLiveInfoEntity implements Serializable { * */ @ApiModelProperty(value = "租户ID") private Long tenantId; - + /** * 拉流开始时间 */ @@ -121,7 +122,7 @@ public class LiveSceneLiveInfoEntity implements Serializable { @ApiModelProperty(value = " 拉流结束时间") @TableField(strategy=FieldStrategy.IGNORED) private Date pullEnd; - + @ApiModelProperty(value = "拉流地址") @TableField(exist = false) private String pullUrl; diff --git a/src/main/java/com/platform/modules/live/service/impl/LiveSceneServiceImpl.java b/src/main/java/com/platform/modules/live/service/impl/LiveSceneServiceImpl.java index a117bc5..c9e221f 100644 --- a/src/main/java/com/platform/modules/live/service/impl/LiveSceneServiceImpl.java +++ b/src/main/java/com/platform/modules/live/service/impl/LiveSceneServiceImpl.java @@ -38,6 +38,8 @@ import org.apache.commons.codec.digest.DigestUtils; import org.apache.commons.lang.StringUtils; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; +import org.apache.shiro.SecurityUtils; +import org.apache.shiro.subject.Subject; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @@ -282,7 +284,7 @@ public class LiveSceneServiceImpl extends ServiceImpl - \ No newline at end of file +