12345678910111213141516171819202122232425262728293031323334353637383940 |
- package dao
- import (
- . "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"`
- 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"
- }
- 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
- }
|