12345678910111213141516171819202122232425262728293031323334353637383940 |
- package dao
- import (
- . "gitdxz.51daxuetong.cn/go_dev/jjl-tools/tinodeService/lib"
- )
- type Leads struct {
- LeadsId int `json:"leads_id"`
- Name string `json:"name"` // 线索名称
- Source string `json:"source"` // 线索来源
- Telephone string `json:"telephone"` // 电话
- Mobile string `json:"mobile"` // 手机
- Industry string `json:"industry"` // 客户行业
- Remark string `json:"remark"` // 备注
- CreateUserId string `json:"create_user_id"` // 创建人ID
- OwnerUserId string `json:"owner_user_id"`
- CreateTime string `json:"create_time"` // 创建时间
- UpdateTime string `json:"update_time"` // 更新时间
- WeChat string `json:"we_chat"`
- Qq string `json:"qq"`
- Ext1 string `json:"ext1"`
- Ext2 string `json:"ext2"`
- Uid string `json:"uid"`
- MobileEncrypted string `json:"mobile_encrypted"`
- MobileMask string `json:"mobile_mask"`
- City int `json:"city"`
- Country int `json:"country"`
- }
- type LeadsDao struct {
- }
- func (ra *LeadsDao) TableName() string {
- return "leads"
- }
- //info
- func (ra *LeadsDao) GetLeadsInfo(maps map[string]interface{}) (Leads, error) {
- var leads Leads
- err := GetTiNodeDbInstance().Table(ra.TableName()).Where(maps).Find(&leads).Error
- return leads, err
- }
|