zhangqian
2023-08-24 d54baf16f7d0e9ad4a26a9650f02a3089d57c2db
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
}