feat: 投放账户管理
This commit is contained in:
@ -19,6 +19,11 @@ export const fetchAccountOperators = (params = {}) => {
|
||||
return Http.get('/v1/media-account-operators/list', params);
|
||||
};
|
||||
|
||||
// 投放账户运营人员分组-列表
|
||||
export const fetchPlacementAccountOperators = (params = {}) => {
|
||||
return Http.get('/v1/placement-account-operators/list', params);
|
||||
};
|
||||
|
||||
// 媒体账号-分页
|
||||
export const getMediaAccounts = (params = {}) => {
|
||||
return Http.get('/v1/media-accounts', params);
|
||||
@ -94,7 +99,7 @@ export const deleteTag = (id: string) => {
|
||||
|
||||
// 媒体账号-批量删除
|
||||
export const batchDeleteMediaAccounts = (params = {}) => {
|
||||
return Http.delete(`/v1/media-accounts/batch`, params);
|
||||
return Http.delete(`/v1/media-accounts/batch`, { data: params });
|
||||
};
|
||||
|
||||
// 媒体账号-批量标签
|
||||
@ -141,3 +146,60 @@ export const postAccountBoardExport = (params = {}) => {
|
||||
export const getAccountBoardDetail = (id: string) => {
|
||||
return Http.get(`/v1/media-account-boards/${id}`);
|
||||
};
|
||||
|
||||
// 投放账号-分页
|
||||
export const getPlacementAccounts = (params = {}) => {
|
||||
return Http.get('/v1/placement-accounts', params);
|
||||
};
|
||||
|
||||
// 投放账号-暂停爬取
|
||||
export const pausePatchPlacementAccount = (id: string) => {
|
||||
return Http.patch(`/v1/placement-accounts/${id}/pause`);
|
||||
};
|
||||
|
||||
// 投放账号-删除
|
||||
export const deletePlacementAccount = (id: string) => {
|
||||
return Http.delete(`/v1/placement-accounts/${id}`);
|
||||
};
|
||||
|
||||
// 投放账号-批量删除
|
||||
export const batchDeletePlacementAccounts = (params = {}) => {
|
||||
return Http.delete(`/v1/placement-accounts/batch`, { data: params });
|
||||
};
|
||||
|
||||
// 投放账号-批量添加
|
||||
export const batchPlacementAccounts = (params = {}, config = {}) => {
|
||||
return Http.post('/v1/placement-accounts/batch', params, config);
|
||||
};
|
||||
|
||||
// 投放账号-修改
|
||||
export const putPlacementAccounts = (params = {}) => {
|
||||
const { id, ...rest } = params as { id: string; [key: string]: any };
|
||||
return Http.put(`/v1/placement-accounts/${id}`, rest);
|
||||
};
|
||||
|
||||
// 投放账号-添加
|
||||
export const postPlacementAccounts = (params = {}) => {
|
||||
return Http.post('/v1/placement-accounts', params);
|
||||
};
|
||||
|
||||
// 投放账号-详情
|
||||
export const getPlacementAccountsDetail = (id: string) => {
|
||||
return Http.get(`/v1/placement-accounts/${id}`);
|
||||
};
|
||||
|
||||
// 投放账号-授权
|
||||
export const putPlacementAccountsAuthorized = (params = {}) => {
|
||||
const { id, ...rest } = params as { id: string; [key: string]: any };
|
||||
return Http.put(`/v1/placement-accounts/${id}/authorized`, rest);
|
||||
};
|
||||
|
||||
// 投放账号-获取模板地址
|
||||
export const getPlacementAccountsTemplateUrl = (params = {}) => {
|
||||
return Http.get('/v1/placement-accounts/template', params);
|
||||
};
|
||||
|
||||
// 投放账号-查询授权状态
|
||||
export const getPlacementAccountsAuthorizedStatus = (id: string) => {
|
||||
return Http.get(`/v1/placement-accounts/${id}/authorized-status`);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user