feat:完善项目信息
This commit is contained in:
@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user