Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
haoban-manage3.0
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
haoban3.0
haoban-manage3.0
Commits
8941f4d9
Commit
8941f4d9
authored
Oct 30, 2023
by
songyinghui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feature: 好办视频空间
parent
ca3f71b1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
50 additions
and
2 deletions
+50
-2
pom.xml
haoban-manage3-wx/pom.xml
+5
-0
CloudVideoController.java
...ban/manage/web/controller/video/CloudVideoController.java
+44
-2
dubbo-haoban-manage-wx.xml
...ge3-wx/src/main/webapp/WEB-INF/dubbo-haoban-manage-wx.xml
+1
-0
No files found.
haoban-manage3-wx/pom.xml
View file @
8941f4d9
...
...
@@ -252,6 +252,11 @@
<artifactId>
haoban-commission-api
</artifactId>
<version>
${haoban-commission-api}
</version>
</dependency>
<dependency>
<groupId>
com.gic
</groupId>
<artifactId>
gic-cloud-image-api
</artifactId>
<version>
${gic-cloud-image-api}
</version>
</dependency>
</dependencies>
<build>
...
...
haoban-manage3-wx/src/main/java/com/gic/haoban/manage/web/controller/video/CloudVideoController.java
View file @
8941f4d9
package
com
.
gic
.
haoban
.
manage
.
web
.
controller
.
video
;
import
com.gic.api.base.commons.Page
;
import
com.gic.api.base.commons.ServiceResponse
;
import
com.gic.clerk.api.dto.ClerkDTO
;
import
com.gic.cloudimage.api.dto.CloudVideoDTO
;
import
com.gic.cloudimage.api.dto.account.VideoGroupInfoDTO
;
import
com.gic.cloudimage.api.qdto.CloudVideoQDTO
;
import
com.gic.cloudimage.api.service.CloudVideoApiService
;
import
com.gic.commons.util.EntityUtil
;
import
com.gic.commons.util.PageHelperUtils
;
import
com.gic.commons.webapi.reponse.RestResponse
;
import
com.gic.haoban.manage.web.controller.content.adaptor.ClerkStoreAdaptor
;
import
com.gic.haoban.manage.web.qo.video.DeleteVideoQo
;
import
com.gic.haoban.manage.web.qo.video.VideoGroupQo
;
import
com.gic.haoban.manage.web.qo.video.VideoListQo
;
import
com.gic.haoban.manage.web.vo.video.CloudVideoGroupVo
;
import
com.gic.haoban.manage.web.vo.video.CloudVideoInfoVo
;
import
org.apache.commons.collections.CollectionUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
...
...
@@ -23,6 +34,11 @@ import java.util.List;
@RequestMapping
(
path
=
"/cloud/video"
)
public
class
CloudVideoController
{
@Autowired
private
CloudVideoApiService
cloudVideoApiService
;
@Autowired
private
ClerkStoreAdaptor
clerkStoreAdaptor
;
/**
* 视频空间-分组列表
...
...
@@ -31,7 +47,14 @@ public class CloudVideoController {
*/
@RequestMapping
(
path
=
"/group/list"
)
public
RestResponse
<
List
<
CloudVideoGroupVo
>>
queryVideoGroupList
(
VideoGroupQo
videoGroupQo
)
{
return
RestResponse
.
successResult
();
ServiceResponse
<
List
<
VideoGroupInfoDTO
>>
serviceResponse
=
cloudVideoApiService
.
queryVideoGroupList
(
videoGroupQo
.
getEnterpriseId
(),
null
,
videoGroupQo
.
getSearch
());
if
(!
serviceResponse
.
isSuccess
()
||
CollectionUtils
.
isEmpty
(
serviceResponse
.
getResult
()))
{
return
RestResponse
.
successResult
();
}
List
<
CloudVideoGroupVo
>
cloudVideoGroupVos
=
EntityUtil
.
changeEntityListByJSON
(
CloudVideoGroupVo
.
class
,
serviceResponse
.
getResult
());
return
RestResponse
.
successResult
(
cloudVideoGroupVos
);
}
/**
...
...
@@ -41,7 +64,25 @@ public class CloudVideoController {
*/
@RequestMapping
(
path
=
"/list"
)
public
RestResponse
<
Page
<
CloudVideoInfoVo
>>
queryVideoList
(
VideoListQo
videoListQo
)
{
return
RestResponse
.
successResult
();
ClerkDTO
clerkDTO
=
clerkStoreAdaptor
.
queryClerkInfo
(
videoListQo
.
getEnterpriseId
(),
videoListQo
.
getClerkId
());
if
(
clerkDTO
==
null
)
{
return
RestResponse
.
successResult
();
}
CloudVideoQDTO
cloudVideoQDTO
=
new
CloudVideoQDTO
();
cloudVideoQDTO
.
setEnterpriseId
(
videoListQo
.
getEnterpriseId
());
cloudVideoQDTO
.
setPageNum
(
videoListQo
.
getPageNum
());
cloudVideoQDTO
.
setPageSize
(
videoListQo
.
getPageSize
());
cloudVideoQDTO
.
setUserCode
(
clerkDTO
.
getClerkCode
());
cloudVideoQDTO
.
setShowFlag
(
1
);
// 正常状态的
cloudVideoQDTO
.
setStatus
(
1
);
ServiceResponse
<
Page
<
CloudVideoDTO
>>
serviceResponse
=
cloudVideoApiService
.
queryCloudVideoList
(
cloudVideoQDTO
);
if
(!
serviceResponse
.
isSuccess
()
||
serviceResponse
.
getResult
()
==
null
)
{
return
RestResponse
.
successResult
();
}
Page
<
CloudVideoInfoVo
>
cloudVideoInfoVoPage
=
PageHelperUtils
.
changePageToCurrentPage
(
serviceResponse
.
getResult
(),
CloudVideoInfoVo
.
class
);
return
RestResponse
.
successResult
(
cloudVideoInfoVoPage
);
}
/**
...
...
@@ -51,6 +92,7 @@ public class CloudVideoController {
*/
@RequestMapping
(
path
=
"/delete"
)
public
RestResponse
<?>
deleteVideoInfo
(
DeleteVideoQo
deleteVideoQo
)
{
cloudVideoApiService
.
updateCloudVideShowFlag
(
deleteVideoQo
.
getEnterpriseId
(),
deleteVideoQo
.
getVideoId
(),
0
);
return
RestResponse
.
successResult
();
}
}
haoban-manage3-wx/src/main/webapp/WEB-INF/dubbo-haoban-manage-wx.xml
View file @
8941f4d9
...
...
@@ -156,6 +156,7 @@
<dubbo:reference
id=
"cmeFileApiService"
interface=
"com.gic.content.api.service.CmeFileApiService"
timeout=
"10000"
retries=
"0"
check=
"false"
/>
<dubbo:reference
interface=
"com.gic.content.api.service.ContentAccountApiService"
id=
"contentAccountApiService"
timeout=
"10000"
retries=
"0"
check=
"false"
/>
<dubbo:reference
interface=
"com.gic.cloudimage.api.service.CloudVideoApiService"
id=
"cloudVideoApiService"
timeout=
"10000"
retries=
"0"
check=
"false"
/>
</beans>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment