feat providerArticle添加SetWatch(watch bool)

This commit is contained in:
timerzz 2024-11-29 20:59:18 +08:00
parent 14d09efa36
commit 50b9ed22ad

View File

@ -84,6 +84,11 @@ type ProviderArticle struct {
CalculateProcess []CalculateProcess `json:"calculateProcess" gorm:"polymorphicType:Kind;polymorphicId:OwnerID;polymorphicValue:providerArticle"`
}
func (p *ProviderArticle) SetWatch(watch bool) *ProviderArticle {
p.Watch = &watch
return p
}
// ProviderPrice 供应商成本价格
type ProviderPrice struct {
ID uint `gorm:"primary_key" json:"id"`