zhangqian
2023-10-13 13194e787d51e4ce07dfc35341d536fb5db7aaa3
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
}