From 250cbfa1ddcb3cf38e0d0505c1c7e282b940d25b Mon Sep 17 00:00:00 2001
From: zhangqian <zhangqian@123.com>
Date: 星期五, 13 十月 2023 10:30:05 +0800
Subject: [PATCH] admin user id 转crm user id
---
model/client.go | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/model/client.go b/model/client.go
index ffa5cc8..a29ca36 100644
--- a/model/client.go
+++ b/model/client.go
@@ -13,7 +13,7 @@
Name string `json:"name" gorm:"column:name;uniqueIndex:name_isDeleted_idx;type:varchar(255);comment:瀹㈡埛鍚嶇О"`
IsDeleted bool `json:"-" gorm:"column:is_deleted;uniqueIndex:name_isDeleted_idx;type:tinyint(1);comment:鏄惁鍒犻櫎"`
Number string `json:"number" gorm:"column:number;type:varchar(255);comment:瀹㈡埛缂栧彿"`
- ClientStatusId int `json:"client_status_id" gorm:"column:client_status_id;type:int(11);comment:瀹㈡埛鐘舵�両D"`
+ ClientStatusId int `json:"client_status_id" gorm:"column:client_status_id;type:int(11);default:1;comment:瀹㈡埛鐘舵�両D"`
ClientStatus ClientStatus `json:"client_status" gorm:"foreignKey:ClientStatusId"`
ClientTypeId int `json:"client_type_id" gorm:"column:client_type_id;type:int(11);default:1;comment:瀹㈡埛绫诲瀷ID"`
ClientType ClientType `json:"client_type" gorm:"foreignKey:ClientTypeId"`
@@ -33,7 +33,7 @@
FollowRecord []FollowRecord `json:"follow_record" gorm:"foreignKey:ClientId"`
Address
Business
- gormModel
+ CrmModel
}
ClientSearch struct {
@@ -113,6 +113,7 @@
}
case int:
+ case uint:
case int64:
case float64:
if key == "id" || key == "client_type_id" || key == "client_status_id" || key == "member_id" {
--
Gitblit v1.8.0