增加商机线索管理修复若干bug

This commit is contained in:
2026-09-11 11:11:43 +08:00
parent b9cdabe045
commit 9c07af2b59
39 changed files with 6219 additions and 42 deletions
+21
View File
@@ -0,0 +1,21 @@
package models
import "time"
// TenantCrmOperateLog 操作日志表: yz_tenant_crm_operate_log
// related_type: 1线索 / 2商机 / 3项目
type TenantCrmOperateLog struct {
ID uint64 `orm:"column(id);pk;auto" json:"id"`
TenantID string `orm:"column(tenant_id);size(64)" json:"tenant_id"`
RelatedType int8 `orm:"column(related_type)" json:"related_type"`
RelatedID uint64 `orm:"column(related_id)" json:"related_id"`
Action string `orm:"column(action);size(50)" json:"action"`
Content string `orm:"column(content);size(500)" json:"content"`
OperatorID string `orm:"column(operator_id);size(64)" json:"operator_id"`
OperatorName string `orm:"column(operator_name);size(128)" json:"operator_name"`
CreateTime time.Time `orm:"column(create_time);auto_now_add;type(datetime)" json:"create_time"`
}
func (m *TenantCrmOperateLog) TableName() string {
return "yz_tenant_crm_operate_log"
}