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
7f3fe898
Commit
7f3fe898
authored
Oct 30, 2023
by
songyinghui
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature-content5' of git.gicdev.com:haoban3.0/haoban-manage3.0 into feature-content5
parents
d0b76f76
c9f8299b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
1 deletions
+22
-1
ContentAIController.java
...an/manage/web/controller/content/ContentAIController.java
+20
-0
dubbo-haoban-manage-wx.xml
...ge3-wx/src/main/webapp/WEB-INF/dubbo-haoban-manage-wx.xml
+2
-1
No files found.
haoban-manage3-wx/src/main/java/com/gic/haoban/manage/web/controller/content/ContentAIController.java
View file @
7f3fe898
...
...
@@ -15,6 +15,7 @@ import com.gic.content.api.service.CmeFileApiService;
import
com.gic.content.api.service.ContentTemplateApiService
;
import
com.gic.enterprise.api.dto.EnterpriseDTO
;
import
com.gic.enterprise.api.service.EnterpriseService
;
import
com.gic.enterprise.api.service.content.ValueAddedServicesOrderApiService
;
import
com.gic.haoban.manage.web.qo.content.ai.CmeExportVideoQO
;
import
com.gic.haoban.manage.web.qo.content.ai.CmeImportMaterialQO
;
import
com.gic.haoban.manage.web.qo.content.ai.ContentTemplateQO
;
...
...
@@ -51,6 +52,25 @@ public class ContentAIController {
private
ContentTemplateApiService
templateApiService
;
@Autowired
private
EnterpriseService
enterpriseService
;
@Autowired
private
ValueAddedServicesOrderApiService
valueAddedServicesOrderApiService
;
/**
* 获取剩余资源
* @param enterpriseId 企业id
* @param type 1AI文案2AI视频
* @see com.gic.enterprise.api.enums.EnterpriseResourcesEnum
* @return
*/
@RequestMapping
(
"get-remaining"
)
@ResponseBody
public
RestResponse
<
Integer
>
getRemaining
(
String
enterpriseId
,
Integer
type
)
{
ServiceResponse
<
Integer
>
response
=
valueAddedServicesOrderApiService
.
getRemaining
(
enterpriseId
,
type
);
if
(
response
.
isSuccess
())
{
return
RestResponse
.
successResult
(
response
.
getResult
());
}
return
RestResponse
.
failure
(
response
.
getCode
(),
response
.
getMessage
());
}
/**
* 查询模板类型列表
...
...
haoban-manage3-wx/src/main/webapp/WEB-INF/dubbo-haoban-manage-wx.xml
View file @
7f3fe898
...
...
@@ -157,6 +157,7 @@
<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"
/>
<dubbo:reference
interface=
"com.gic.enterprise.api.service.content.ValueAddedServicesOrderApiService"
id=
"valueAddedServicesOrderApiService"
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