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