Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
scrm
/
rop-merchant
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 47086d52
authored
Jul 19, 2021
by
licy
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
一些冗余代码的删除
1 parent
6413000b
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
18 deletions
src/main/java/cn/com/glsx/merchants/controller/MerchantFileController.java
src/main/java/cn/com/glsx/merchants/request/file/FileSearchRequest.java
src/main/java/cn/com/glsx/merchants/controller/MerchantFileController.java
View file @
47086d5
package
cn
.
com
.
glsx
.
merchants
.
controller
;
package
cn
.
com
.
glsx
.
merchants
.
controller
;
import
cn.com.glsx.framework.core.beans.rpc.RpcResponse
;
import
cn.com.glsx.framework.core.exception.RpcServiceException
;
import
cn.com.glsx.framework.core.exception.RpcServiceException
;
import
cn.com.glsx.framework.rop.response.RopResponse
;
import
cn.com.glsx.merchants.request.file.FileSearchRequest
;
import
cn.com.glsx.merchants.request.file.FileSearchRequest
;
import
cn.com.glsx.merchants.response.FileResponse
;
import
cn.com.glsx.merchants.response.FileResponse
;
import
cn.com.glsx.merchants.service.MerchantFileService
;
import
cn.com.glsx.merchants.service.MerchantFileService
;
...
@@ -33,21 +33,13 @@ public class MerchantFileController {
...
@@ -33,21 +33,13 @@ public class MerchantFileController {
*/
*/
@ServiceMethod
(
method
=
"cn.com.glsx.merchants.menu.findMerchantFile"
,
needInSession
=
NeedInSessionType
.
NO
)
@ServiceMethod
(
method
=
"cn.com.glsx.merchants.menu.findMerchantFile"
,
needInSession
=
NeedInSessionType
.
NO
)
@ApiOperation
(
"查询素材库"
)
@ApiOperation
(
"查询素材库"
)
public
R
pc
Response
<
List
<
FileResponse
>>
findMerchantFile
(
FileSearchRequest
fileSearchRequest
){
public
R
op
Response
<
List
<
FileResponse
>>
findMerchantFile
(
FileSearchRequest
fileSearchRequest
){
try
{
try
{
List
<
FileResponse
>
fileResponseList
=
merchantFileService
.
findMerchantFile
(
fileSearchRequest
);
List
<
FileResponse
>
fileResponseList
=
merchantFileService
.
findMerchantFile
(
fileSearchRequest
);
return
R
pc
Response
.
success
(
fileResponseList
);
return
R
op
Response
.
success
(
fileResponseList
);
}
catch
(
RpcServiceException
e
)
{
}
catch
(
RpcServiceException
e
)
{
log
.
info
(
"=======MerchantFileController__invoke__findMerchantFile__exception:{}"
,
e
.
getMessage
());
log
.
info
(
"=======MerchantFileController__invoke__findMerchantFile__exception:{}"
,
e
.
getMessage
());
return
R
pc
Response
.
error
(
e
.
getError
(),
e
.
getMessage
());
return
R
op
Response
.
error
(
e
.
getError
(),
e
.
getMessage
());
}
}
}
}
public
RpcResponse
<
Boolean
>
saveMerchantFileImg
(){
return
null
;
}
public
RpcResponse
<
Boolean
>
updateMerchantFileImg
(){
return
null
;
}
}
}
src/main/java/cn/com/glsx/merchants/request/file/FileSearchRequest.java
View file @
47086d5
...
@@ -22,10 +22,4 @@ public class FileSearchRequest extends AbstractRopRequest implements Serializabl
...
@@ -22,10 +22,4 @@ public class FileSearchRequest extends AbstractRopRequest implements Serializabl
@NotNull
@NotNull
private
Byte
fileType
;
private
Byte
fileType
;
/**
* 是否删除:0=正常,-1=删除
*/
@ApiModelProperty
(
notes
=
"删除标识"
)
@NotNull
private
Byte
delFlag
;
}
}
Write
Preview
Markdown
is supported
Attach a file
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 post a comment