feat providerArticle添加SetWatch(watch bool)
This commit is contained in:
parent
14d09efa36
commit
50b9ed22ad
@ -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"`
|
||||
|
Loading…
Reference in New Issue
Block a user