This commit is contained in:
laodaming
2023-06-25 12:16:01 +08:00
parent cd8a578dfe
commit 81b315b12b
5 changed files with 75 additions and 20 deletions

View File

@@ -37,3 +37,6 @@ func (t *FsProductTemplateV2Model) FindByParam(ctx context.Context, id int64, mo
err = db.Take(&resp).Error
return resp, err
}
func (t *FsProductTemplateV2Model) Update(ctx context.Context, id int64, data *FsProductTemplateV2) error {
return t.db.WithContext(ctx).Model(&FsProductTemplateV2{}).Where("`id` = ? ", id).Updates(&data).Error
}