liujiandao
2023-12-19 981681b3cc96d3f8e90ce5e358e1540d02f9f5d9
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
}