service/test/product.go
@@ -12,7 +12,7 @@ // CreateProduct 创建Product记录 // Author [piexlmax](https://github.com/piexlmax) func (pService *ProductService) CreateProduct(p *test.Product) (err error) { func (pService *ProductService) CreateProduct(p []*test.Product) (err error) { err = global.GVA_DB.Create(p).Error return err }