fix
This commit is contained in:
@@ -86,3 +86,6 @@ func (c *FsCartModel) Create(ctx context.Context, data FsCart) error {
|
||||
func (c *FsCartModel) Update(ctx context.Context, id int64, data FsCart) error {
|
||||
return c.db.WithContext(ctx).Model(&FsCart{}).Where("`id` = ?", id).Updates(data).Error
|
||||
}
|
||||
func (c *FsCartModel) UpdateByIdUserId(ctx context.Context, id int64, userId int64, data FsCart) error {
|
||||
return c.db.WithContext(ctx).Model(&FsCart{}).Where("`id` = ? and `user_id` = ?", id, userId).Updates(data).Error
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user