feat: 内容审核写手端-替换接口,删除无用代码组件逻辑
This commit is contained in:
@ -9,21 +9,17 @@ const getWriterCode = () => {
|
||||
return route.params.writerCode as string;
|
||||
};
|
||||
// 内容稿件-批量添加(写手)
|
||||
export const postWorksBatchWriter = (params: any) => {
|
||||
export const postWorksBatchWriter = (params: {}) => {
|
||||
return Http.post('/v1/writer/works/batch', params, {
|
||||
headers: { 'writer-code': getWriterCode() },
|
||||
});
|
||||
};
|
||||
|
||||
// 内容稿件-分页(写手)
|
||||
export const getWorksPageWriter = (params: any) => {
|
||||
return Http.get(
|
||||
'/v1/writer/works',
|
||||
{ params },
|
||||
{
|
||||
headers: { 'writer-code': getWriterCode() },
|
||||
},
|
||||
);
|
||||
export const getWorksPageWriter = (params: {}) => {
|
||||
return Http.get('/v1/writer/works', params, {
|
||||
headers: { 'writer-code': getWriterCode() },
|
||||
});
|
||||
};
|
||||
|
||||
// 内容稿件-详情(写手)
|
||||
@ -57,17 +53,13 @@ export const getTemplateUrlWriter = () => {
|
||||
|
||||
// 内容稿件审核-分页(写手)
|
||||
export const getWorkAuditsPageWriter = (params: any) => {
|
||||
return Http.get(
|
||||
'/v1/writer/work-audits',
|
||||
{ params },
|
||||
{
|
||||
headers: { 'writer-code': getWriterCode() },
|
||||
},
|
||||
);
|
||||
return Http.get('/v1/writer/work-audits', params, {
|
||||
headers: { 'writer-code': getWriterCode() },
|
||||
});
|
||||
};
|
||||
|
||||
// 内容稿件审核-详情(写手)
|
||||
export const getWorkAuditDetailWriter = (id: string) => {
|
||||
export const getWorkAuditsDetailWriter = (id: string) => {
|
||||
return Http.get(`/v1/writer/work-audits/${id}`, {
|
||||
headers: { 'writer-code': getWriterCode() },
|
||||
});
|
||||
@ -75,13 +67,9 @@ export const getWorkAuditDetailWriter = (id: string) => {
|
||||
|
||||
// 内容稿件审核-多个详情(写手)
|
||||
export const getWorkAuditsBatchDetailWriter = (params: any) => {
|
||||
return Http.get(
|
||||
'/v1/writer/work-audits/list',
|
||||
{ params },
|
||||
{
|
||||
headers: { 'writer-code': getWriterCode() },
|
||||
},
|
||||
);
|
||||
return Http.get('/v1/writer/work-audits/list', params, {
|
||||
headers: { 'writer-code': getWriterCode() },
|
||||
});
|
||||
};
|
||||
|
||||
// 内容稿件-审核(写手)
|
||||
@ -128,3 +116,18 @@ export const getWorkAuditsAiReviewResultWriter = (id: string, ticket: string) =>
|
||||
headers: { 'writer-code': getWriterCode() },
|
||||
});
|
||||
};
|
||||
|
||||
// 内容稿件-通过链接获取稿件
|
||||
export const postWorksByLinkWriter = (params = {}) => {
|
||||
return Http.post('/v1/writer/works/by-link', params, {
|
||||
headers: { 'writer-code': getWriterCode() },
|
||||
});
|
||||
};
|
||||
|
||||
// 内容稿件-通过文档获取稿件
|
||||
export const postWorksByFileWriter = (params = {}, config = {}) => {
|
||||
return Http.post('/v1/writer/works/by-file', params, {
|
||||
...config,
|
||||
headers: { 'writer-code': getWriterCode() },
|
||||
});
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user