liujiandao
2024-03-26 1c17ff16fd13e4d8bbab75d8a728cf18465b20e0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
package service
 
import (
    "aps_crm/model"
    "aps_crm/pkg/ecode"
)
 
type ContactInformationService struct{}
 
func (ContactInformationService) GetContactInformationList() ([]*model.ContactInformation, int) {
    // get contact list
    contacts, err := model.NewContactInformationSearch().Find()
    if err != nil {
        return nil, ecode.ContactInformationListErr
    }
    return contacts, ecode.OK
}