风采审核功能开发
Some checks failed
Node CI / build (14.x, macOS-latest) (push) Has been cancelled
Node CI / build (14.x, ubuntu-latest) (push) Has been cancelled
Node CI / build (14.x, windows-latest) (push) Has been cancelled
Node CI / build (16.x, macOS-latest) (push) Has been cancelled
Node CI / build (16.x, ubuntu-latest) (push) Has been cancelled
Node CI / build (16.x, windows-latest) (push) Has been cancelled
CodeQL / Analyze (javascript) (push) Has been cancelled
coverage CI / build (push) Has been cancelled
Node pnpm CI / build (16.x, macOS-latest) (push) Has been cancelled
Node pnpm CI / build (16.x, ubuntu-latest) (push) Has been cancelled
Node pnpm CI / build (16.x, windows-latest) (push) Has been cancelled
Some checks failed
Node CI / build (14.x, macOS-latest) (push) Has been cancelled
Node CI / build (14.x, ubuntu-latest) (push) Has been cancelled
Node CI / build (14.x, windows-latest) (push) Has been cancelled
Node CI / build (16.x, macOS-latest) (push) Has been cancelled
Node CI / build (16.x, ubuntu-latest) (push) Has been cancelled
Node CI / build (16.x, windows-latest) (push) Has been cancelled
CodeQL / Analyze (javascript) (push) Has been cancelled
coverage CI / build (push) Has been cancelled
Node pnpm CI / build (16.x, macOS-latest) (push) Has been cancelled
Node pnpm CI / build (16.x, ubuntu-latest) (push) Has been cancelled
Node pnpm CI / build (16.x, windows-latest) (push) Has been cancelled
This commit is contained in:
46
src/services/Management/showcaseReview.ts
Normal file
46
src/services/Management/showcaseReview.ts
Normal file
@@ -0,0 +1,46 @@
|
||||
import { request } from '@umijs/max';
|
||||
|
||||
/** 风采审核列表项 */
|
||||
export interface ShowcaseReviewItem {
|
||||
id: number;
|
||||
fileUrl: string;
|
||||
bussinessid: number;
|
||||
reviewStatus: string; // '0'=待审核, '1'=审核通过, '2'=审核未通过
|
||||
reviewRemark?: string;
|
||||
reviewBy?: string;
|
||||
reviewTime?: string;
|
||||
createTime: string;
|
||||
updateTime?: string;
|
||||
}
|
||||
|
||||
/** 风采审核列表查询参数 */
|
||||
export interface ShowcaseReviewListParams {
|
||||
current?: number;
|
||||
pageSize?: number;
|
||||
bussinessid?: number;
|
||||
reviewStatus?: string;
|
||||
}
|
||||
|
||||
/** 风采审核操作参数 */
|
||||
export interface ShowcaseApprovalParams {
|
||||
id: number;
|
||||
reviewStatus: '1' | '2'; // 1=通过, 2=驳回
|
||||
reviewRemark?: string;
|
||||
}
|
||||
|
||||
/** 获取风采审核列表 GET /api/cms/file/review/list */
|
||||
export async function getShowcaseReviewList(params: ShowcaseReviewListParams) {
|
||||
return request<{ code: number; total: number; rows: ShowcaseReviewItem[] }>(
|
||||
'/api/cms/file/review/list',
|
||||
{ method: 'GET', params },
|
||||
);
|
||||
}
|
||||
|
||||
/** 审核风采(通过/驳回) PUT /api/cms/file/review/{id} */
|
||||
export async function reviewShowcase(params: ShowcaseApprovalParams) {
|
||||
const { id, ...data } = params;
|
||||
return request<{ code: number; msg: string }>(`/api/cms/file/review/${id}`, {
|
||||
method: 'PUT',
|
||||
data,
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user