修改更新商品库存

This commit is contained in:
2023-05-18 14:33:10 +08:00
parent f577c6c3cd
commit ca6351ca2e
3 changed files with 15 additions and 1 deletions
+10
View File
@@ -158,4 +158,14 @@ class Product extends Model
return $data;
}
/**
* 新增
* @param array $data
* @return \Hyperf\Database\Model\Model|Product
*/
public static function addProduct(array $data): \Hyperf\Database\Model\Model|Product
{
return self::create($data);
}
}