优化线索、商机、项目相关开发

This commit is contained in:
2026-09-11 17:00:23 +08:00
parent 9c07af2b59
commit 840673bda5
55 changed files with 4866 additions and 625 deletions
+3 -2
View File
@@ -2,7 +2,7 @@ package models
import "time"
// TenantCrmFollow 回访/跟进记录表: yz_tenant_crm_follow
// TenantCrmFollow 回访/跟进记录表: yz_backend_crm_follow
// related_type: 1线索 / 2商机 / 3项目
type TenantCrmFollow struct {
ID uint64 `orm:"column(id);pk;auto" json:"id"`
@@ -10,6 +10,7 @@ type TenantCrmFollow struct {
RelatedType int8 `orm:"column(related_type)" json:"related_type"`
RelatedID uint64 `orm:"column(related_id)" json:"related_id"`
RelatedName string `orm:"column(related_name);size(100)" json:"related_name"`
Stage int8 `orm:"column(stage);default(1)" json:"stage"` // 创建阶段:1线索/2商机/3项目
FollowType string `orm:"column(follow_type);size(20);default(1)" json:"follow_type"` // 回访方式
FollowTime *time.Time `orm:"column(follow_time);type(datetime);null" json:"follow_time"`
Content string `orm:"column(content);type(text);null" json:"content"`
@@ -22,5 +23,5 @@ type TenantCrmFollow struct {
}
func (m *TenantCrmFollow) TableName() string {
return "yz_tenant_crm_follow"
return "yz_backend_crm_follow"
}