zhangqian
2023-08-11 ae6883ce426727efca4facab973d814ae66c69c2
model/contact.go
@@ -3,7 +3,6 @@
import (
   "aps_crm/pkg/mysqlx"
   "gorm.io/gorm"
   "time"
)
type (
@@ -18,7 +17,7 @@
      MemberId int       `json:"member_id" gorm:"column:member_id;type:int(11);comment:负责人ID"`
      IsFirst  bool      `json:"is_first" gorm:"column:is_first;type:tinyint(1);comment:是否首要联系人"`
      Wechat   string    `json:"wechat" gorm:"column:wechat;type:varchar(255);comment:微信"`
      Birthday time.Time `json:"birthday" gorm:"column:birthday;type:datetime;comment:生日"`
      Birthday *CustomTime `json:"birthday" gorm:"column:birthday;type:datetime;comment:生日"`
      Email    string    `json:"email" gorm:"column:email;type:varchar(255);comment:邮箱"`
      Desc     string    `json:"desc" gorm:"column:desc;type:varchar(255);comment:备注"`
      Address
@@ -93,6 +92,9 @@
               }
            }
         case int:
            if key == "client_id" {
               db = db.Where("client_id = ?", v)
            }
         }
      }
   }