Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
fzm-joying
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
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
lei
fzm-joying
Commits
bf6b5664
Commit
bf6b5664
authored
Jul 13, 2021
by
tangtuo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
前台系统加入下载文件接口
nft详情接口加入平台是否存档等字段
parent
07de0da1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
3 deletions
+18
-3
NftVo.java
...-common/src/main/java/com/fzm/common/entity/vo/NftVo.java
+11
-3
NftController.java
...rc/main/java/com/fzm/portal/controller/NftController.java
+7
-0
No files found.
joying-common/src/main/java/com/fzm/common/entity/vo/NftVo.java
View file @
bf6b5664
...
...
@@ -50,20 +50,28 @@ public class NftVo {
@ApiModelProperty
(
"简介"
)
private
String
synopsis
;
@ApiModelProperty
(
"平台存档 0-不存档 1-加密存档"
)
private
Integer
isArchives
;
@ApiModelProperty
(
"授权阅读 0-不需要授权 1-需要授权"
)
private
Integer
isGrant
;
@ApiModelProperty
(
"关于nft"
)
private
String
aboutNft
;
public
NftVo
(
Nft
nft
,
User
user
){
public
NftVo
(
Nft
nft
,
User
user
)
{
this
.
id
=
nft
.
getId
();
this
.
author
=
nft
.
getAuthor
();
this
.
name
=
nft
.
getName
();
this
.
theme
=
nft
.
getTheme
();
this
.
theme
=
nft
.
getTheme
();
this
.
fileHash
=
nft
.
getFileHash
();
this
.
nftId
=
nft
.
getNftId
();
this
.
synopsis
=
nft
.
getSynopsis
();
this
.
publisher
=
user
.
getNickname
();
this
.
avatar
=
user
.
getAvatar
();
this
.
wallet
=
user
.
getWallet
();
this
.
wallet
=
user
.
getWallet
();
this
.
publishTime
=
DateUtil
.
format
(
nft
.
getPublishTime
(),
"yyyy/MM/dd HH:mm:ss"
);
this
.
isArchives
=
nft
.
getIsArchives
();
this
.
isGrant
=
nft
.
getIsGrant
();
}
}
joying-portal/src/main/java/com/fzm/portal/controller/NftController.java
View file @
bf6b5664
...
...
@@ -190,4 +190,11 @@ public class NftController {
NftCertificateVo
vo
=
new
NftCertificateVo
(
nft
,
user
,
qrCode
);
return
ResponseModel
.
success
(
vo
);
}
@Authentication
@ApiOperation
(
value
=
"下载文件"
)
@PostMapping
(
"/download/{id}"
)
public
void
download
(
@ApiParam
(
value
=
"nft主键"
)
@PathVariable
Integer
id
)
{
nftService
.
download
(
id
);
}
}
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