| | |
| | | return |
| | | } |
| | | |
| | | if params.MemberId == 0 { |
| | | userInfo := utils.GetUserInfo(c) |
| | | if userInfo.UserType == constvar.UserTypeSub { |
| | | params.MemberId = userInfo.CrmUserId |
| | | } |
| | | } |
| | | |
| | | errCode = contactService.AddContact(&contact) |
| | | if errCode != ecode.OK { |
| | | ctx.Fail(errCode) |
| | |
| | | params.SearchMap["member_id"] = userInfo.CrmUserId |
| | | } |
| | | |
| | | contacts, total, errCode := contactService.GetContactList(params.Page, params.PageSize, params.SearchMap) |
| | | contacts, total, errCode := contactService.GetContactList(params.Page, params.PageSize, params.SearchMap, params.ClientId) |
| | | if errCode != ecode.OK { |
| | | ctx.Fail(errCode) |
| | | return |