feat: 客户关联产品并支持按产品圈选通知群体
新增客户-产品多对多关联,列表可按产品筛选并复制邮箱;发证/下单自动回填历史关联。 Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
d0e1ca3729
commit
4c46088f4f
10 files changed
+337
-89
No files matched your search
@@ -0,0 +1,15 @@
|
||||
package model
|
||||
|
||||
import "time"
|
||||
|
||||
// CustomerProduct 客户与产品关联(用于按产品圈选通知群体) // Logan.Li
|
||||
type CustomerProduct struct {
|
||||
CustomerID uint `json:"customer_id" gorm:"primaryKey;autoIncrement:false"`
|
||||
ProductID uint `json:"product_id" gorm:"primaryKey;autoIncrement:false"`
|
||||
CreatedAt time.Time `json:"created_at"`
|
||||
}
|
||||
|
||||
// TableName 指定表名 // Logan.Li
|
||||
func (CustomerProduct) TableName() string {
|
||||
return "customer_products"
|
||||
}
|
||||
Reference in new issue
Block a user