liujiandao
2023-11-18 115bd9b51f5d8eade4658f844de37516486c60e7
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
}