Decouple aftersales customers from company management

This commit is contained in:
Frudrax Cheng
2026-05-28 10:29:17 +08:00
parent 2aab9203a0
commit d1d189528c
5 changed files with 35 additions and 28 deletions
+2 -3
View File
@@ -277,9 +277,8 @@ type AftersalesOrder struct {
UpdatedAt time.Time `json:"updatedAt"`
DeletedAt gorm.DeletedAt `gorm:"index" json:"-"`
Technician *User `gorm:"foreignKey:TechnicianID" json:"technician,omitempty"`
Creator *User `gorm:"foreignKey:CreatedBy" json:"creator,omitempty"`
Company *Company `gorm:"foreignKey:CompanyName;references:CompanyName" json:"company,omitempty"`
Technician *User `gorm:"foreignKey:TechnicianID" json:"technician,omitempty"`
Creator *User `gorm:"foreignKey:CreatedBy" json:"creator,omitempty"`
}
// CreateAftersalesOrderDTO 创建售后工单请求数据