feat:完善项目信息

This commit is contained in:
henry
2021-12-24 15:28:46 +08:00
parent f654b0a4f0
commit b506378003
9 changed files with 241 additions and 15 deletions

View File

@ -25,9 +25,9 @@ type (
Tags []string `json:"tags"`
}
PaperParams struct {
ID uint64
Title, Ext, Author, PublishAt, Keyword, Remark string
Tags []string
ID uint64
Title, Ext, Author, PublishAt, Remark string
Keywords, Tags []string
}
)
@ -77,7 +77,7 @@ func (c *Paper) Form(params *PaperParams) error {
mTechnologyPaper.Ext = params.Ext
mTechnologyPaper.Author = params.Author
mTechnologyPaper.PublishAt = utils.DateTimeToTime(params.PublishAt)
mTechnologyPaper.Keyword = params.Keyword
mTechnologyPaper.SetKeywordAttribute(params.Keywords)
mTechnologyPaper.SetTagAttribute(params.Tags)
mTechnologyPaper.Remark = params.Remark