feat:优化项目信息

This commit is contained in:
henry
2022-02-08 11:05:47 +08:00
parent 252182f089
commit 46476267aa
13 changed files with 125 additions and 37 deletions

View File

@ -20,9 +20,6 @@ func (this *ESAchievement) Index() string {
}
func (this *ESAchievement) Create() error {
if this.Industry != "" {
this.Title = this.Industry + " - " + this.Title
}
_bytes, _ := json.Marshal(this)
return es.Create(this.Index(), fmt.Sprintf("%d", this.ID), _bytes)
}