api/v1/salesLeads.go
@@ -7,6 +7,7 @@ "aps_crm/model/response" "aps_crm/pkg/contextx" "aps_crm/pkg/ecode" "aps_crm/utils" "github.com/gin-gonic/gin" ) @@ -160,6 +161,14 @@ return } userInfo := utils.GetUserInfo(c) if userInfo.UserType == constvar.UserTypeSub { if params.SearchMap == nil { params.SearchMap = make(map[string]interface{}, 0) } params.SearchMap["member_id"] = userInfo.CrmUserId } salesLeadss, total, errCode := salesLeadsService.GetSalesLeadsList(params.Page, params.PageSize, params.SearchMap) if errCode != ecode.OK { ctx.Fail(errCode)