feat(mpuniapp): 支持在移动端App维护产品相册与文章动态
这个提交包含在:
@@ -6,6 +6,8 @@
|
||||
import {
|
||||
AiChatReply,
|
||||
AiChatRequest,
|
||||
CardArticle,
|
||||
CardCase,
|
||||
CardContact,
|
||||
CardEvent,
|
||||
CardEventJoinResult,
|
||||
@@ -248,5 +250,53 @@ export function confirmHallExchange(
|
||||
);
|
||||
}
|
||||
|
||||
export function fetchCardCasesPage(
|
||||
query: OwnerPageQuery
|
||||
): Promise<OwnerPageData<CardCase>> {
|
||||
return httpPost<OwnerPageData<CardCase>>('/admin/card/cases/page', query);
|
||||
}
|
||||
|
||||
export function fetchCardCaseInfo(id: string | number): Promise<CardCase> {
|
||||
return httpGet<CardCase>('/admin/card/cases/info', { id });
|
||||
}
|
||||
|
||||
export function addCardCase(data: Partial<CardCase>): Promise<CardCase> {
|
||||
return httpPost<CardCase>('/admin/card/cases/add', data);
|
||||
}
|
||||
|
||||
export function updateCardCase(
|
||||
data: Partial<CardCase> & { id: string | number }
|
||||
): Promise<CardCase> {
|
||||
return httpPost<CardCase>('/admin/card/cases/update', data);
|
||||
}
|
||||
|
||||
export function deleteCardCase(id: string | number): Promise<boolean> {
|
||||
return httpPost<boolean>('/admin/card/cases/delete', { ids: [id] });
|
||||
}
|
||||
|
||||
export function fetchCardArticlesPage(
|
||||
query: OwnerPageQuery
|
||||
): Promise<OwnerPageData<CardArticle>> {
|
||||
return httpPost<OwnerPageData<CardArticle>>('/admin/card/article/page', query);
|
||||
}
|
||||
|
||||
export function fetchCardArticleInfo(id: string | number): Promise<CardArticle> {
|
||||
return httpGet<CardArticle>('/admin/card/article/info', { id });
|
||||
}
|
||||
|
||||
export function addCardArticle(data: Partial<CardArticle>): Promise<CardArticle> {
|
||||
return httpPost<CardArticle>('/admin/card/article/add', data);
|
||||
}
|
||||
|
||||
export function updateCardArticle(
|
||||
data: Partial<CardArticle> & { id: string | number }
|
||||
): Promise<CardArticle> {
|
||||
return httpPost<CardArticle>('/admin/card/article/update', data);
|
||||
}
|
||||
|
||||
export function deleteCardArticle(id: string | number): Promise<boolean> {
|
||||
return httpPost<boolean>('/admin/card/article/delete', { ids: [id] });
|
||||
}
|
||||
|
||||
export * from './types.uts';
|
||||
export * from './request.uts';
|
||||
|
||||
在新工单中引用
屏蔽一个用户