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