feat(hall): 支持展会活动码现场互换与榜单API对接
这个提交包含在:
@@ -7,6 +7,8 @@ import {
|
||||
AiChatReply,
|
||||
AiChatRequest,
|
||||
CardContact,
|
||||
CardEvent,
|
||||
CardEventJoinResult,
|
||||
CardProfile,
|
||||
CardPortalDetail,
|
||||
LeadEntity,
|
||||
@@ -17,7 +19,9 @@ import {
|
||||
OwnerPageData,
|
||||
OwnerPageQuery,
|
||||
QuotaCheckResult,
|
||||
RadarHotInbox,
|
||||
RadarTrack,
|
||||
TeamRankItem,
|
||||
SubmitLeadParams,
|
||||
RecordRadarTrackParams,
|
||||
} from './types.uts';
|
||||
@@ -185,6 +189,41 @@ export function fetchTeamWallPage(
|
||||
return httpPost<OwnerPageData<CardContact>>('/admin/card/contact/teamWall', query);
|
||||
}
|
||||
|
||||
export function fetchEventFloorPage(
|
||||
query: OwnerPageQuery
|
||||
): Promise<OwnerPageData<CardContact>> {
|
||||
return httpPost<OwnerPageData<CardContact>>('/admin/card/event/floorPage', query);
|
||||
}
|
||||
|
||||
export function joinHallEvent(
|
||||
code: string,
|
||||
cardId?: string | number
|
||||
): Promise<CardEventJoinResult> {
|
||||
const payload: Record<string, string | number> = { code };
|
||||
if (cardId != null) {
|
||||
payload.cardId = cardId;
|
||||
}
|
||||
return httpPost<CardEventJoinResult>('/admin/card/event/join', payload);
|
||||
}
|
||||
|
||||
export function fetchCurrentEvent(): Promise<CardEvent | null> {
|
||||
return httpPost<CardEvent | null>('/admin/card/event/current', {});
|
||||
}
|
||||
|
||||
export function fetchRadarHotInbox(): Promise<RadarHotInbox> {
|
||||
return httpPost<RadarHotInbox>('/admin/crm/radar/hotInbox', {});
|
||||
}
|
||||
|
||||
export function fetchTeamLiveRank(
|
||||
eventId?: string
|
||||
): Promise<TeamRankItem[]> {
|
||||
const payload: Record<string, string> = {};
|
||||
if (eventId != null && eventId !== '') {
|
||||
payload.eventId = eventId;
|
||||
}
|
||||
return httpPost<TeamRankItem[]>('/admin/team/members/live-rank', payload);
|
||||
}
|
||||
|
||||
export function fetchCardQuota(
|
||||
tenantId?: string | number
|
||||
): Promise<QuotaCheckResult> {
|
||||
|
||||
在新工单中引用
屏蔽一个用户