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 }