Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cust-api
Project
Project
Details
Activity
Releases
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
李伟
cust-api
Commits
24bffe40
Commit
24bffe40
authored
Apr 24, 2025
by
liwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加了获取上传方式接口
parent
aca6f099
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
26 additions
and
0 deletions
+26
-0
AppOpmArticleController.java
...ft/app/appArticle/controller/AppOpmArticleController.java
+11
-0
OpmArticleService.java
...cisoft/business/opmArticle/service/OpmArticleService.java
+5
-0
OpmArticleServiceImpl.java
...siness/opmArticle/service/impl/OpmArticleServiceImpl.java
+10
-0
No files found.
src/main/java/org/rcisoft/app/appArticle/controller/AppOpmArticleController.java
View file @
24bffe40
...
...
@@ -158,4 +158,15 @@ public class AppOpmArticleController extends CyPaginationController<OpmArticle>
CyMessCons
.
MESSAGE_ALERT_ERROR
,
businessId
);
}
@CyOpeLogAnno
(
title
=
"system-获取上传类型-获取上传类型"
,
businessType
=
CyLogTypeEnum
.
QUERY
)
@Operation
(
summary
=
"获取上传类型"
,
description
=
"获取上传类型"
)
@Parameters
({
@Parameter
(
name
=
"businessId"
,
description
=
"businessId"
,
required
=
true
)})
@GetMapping
(
"/opmArticle/getUploadType"
)
public
CyResult
getUploadType
()
{
return
CyResultGenUtil
.
builder
(
new
CyPersistModel
(
1
),
CyMessCons
.
MESSAGE_ALERT_SUCCESS
,
CyMessCons
.
MESSAGE_ALERT_ERROR
,
opmArticleServiceImpl
.
getUploadType
(
"app"
));
}
}
src/main/java/org/rcisoft/business/opmArticle/service/OpmArticleService.java
View file @
24bffe40
...
...
@@ -107,4 +107,9 @@ public interface OpmArticleService {
* @return
*/
IPage
<
OpmArticle
>
findUserArticleByPagination
(
CyPageInfo
<
OpmArticle
>
paginationUtility
,
OpmArticle
opmArticle
);
/**
* 获取上传类型
*/
String
getUploadType
(
String
type
);
}
src/main/java/org/rcisoft/business/opmArticle/service/impl/OpmArticleServiceImpl.java
View file @
24bffe40
...
...
@@ -37,6 +37,7 @@ import org.rcisoft.sys.dictionary.service.DictionaryService;
import
org.redisson.api.RLock
;
import
org.redisson.api.RedissonClient
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.data.redis.core.StringRedisTemplate
;
import
org.springframework.stereotype.Service
;
import
org.springframework.transaction.annotation.Isolation
;
...
...
@@ -81,6 +82,10 @@ public class OpmArticleServiceImpl extends ServiceImpl<OpmArticleRepository, Opm
private
MemGoldCoinFlowRepository
memGoldCoinFlowRepository
;
@Autowired
private
UserUtil
userUtil
;
@Value
(
"${cy.model.fileStorage.model}"
)
private
String
uploadType
;
/**
* 保存 opmArticle管理
* @param opmArticle
...
...
@@ -728,4 +733,9 @@ public class OpmArticleServiceImpl extends ServiceImpl<OpmArticleRepository, Opm
}
return
new
CyPersistModel
(
1
);
}
@Override
public
String
getUploadType
(
String
type
)
{
return
uploadType
;
}
}
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