feat:完善项目

This commit is contained in:
henry
2022-01-18 09:20:18 +08:00
parent 8a97ec40d3
commit 478182dcb0
12 changed files with 161 additions and 30 deletions

View File

@ -27,7 +27,7 @@ func (this *ESManage) Index() string {
func (this *ESManage) Create() error {
_bytes, _ := json.Marshal(this)
return es.Create(this.Index(), _bytes)
return es.Create(this.Index(), fmt.Sprintf("%d", this.ID), _bytes)
}
func (this *ESManage) Search(page, pageSize int, params map[string]interface{}) (interface{}, error) {