You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
42 lines
1.2 KiB
TypeScript
42 lines
1.2 KiB
TypeScript
// @ts-ignore
|
|
/* eslint-disable */
|
|
import request from '@/utils/request';
|
|
|
|
/** 获取所有内容发布,后台使用 获取所有内容发布,后台使用 POST /b2b2c/pbccontentpublish/list */
|
|
export async function contentListUsingPost(options?: { [key: string]: any }) {
|
|
return request<API.AjaxResult>('/b2b2c/pbccontentpublish/list', {
|
|
method: 'POST',
|
|
...(options || {}),
|
|
});
|
|
}
|
|
|
|
/** 根据类型获取内容 根据类型获取内容 POST /b2b2c/pbccontentpublish/listbytype */
|
|
export async function contentListByTypeUsingPost(
|
|
body: API.PbcContentPublishDTO,
|
|
options?: { [key: string]: any },
|
|
) {
|
|
return request<API.AjaxResult>('/b2b2c/pbccontentpublish/listbytype', {
|
|
method: 'POST',
|
|
headers: {
|
|
'Content-Type': 'application/json',
|
|
},
|
|
data: body,
|
|
...(options || {}),
|
|
});
|
|
}
|
|
|
|
/** 保存内容 保存内容 POST /b2b2c/pbccontentpublish/save */
|
|
export async function saveContentUsingPost(
|
|
body: API.PbcContentPublishDTO,
|
|
options?: { [key: string]: any },
|
|
) {
|
|
return request<API.AjaxResult>('/b2b2c/pbccontentpublish/save', {
|
|
method: 'POST',
|
|
headers: {
|
|
'Content-Type': 'application/json',
|
|
},
|
|
data: body,
|
|
...(options || {}),
|
|
});
|
|
}
|