feat: 账号管理-授权、添加、分组管理、标签管理

This commit is contained in:
rd
2025-07-03 16:56:10 +08:00
parent 2b4e691f4e
commit 8070350836
22 changed files with 552 additions and 467 deletions

View File

@ -56,7 +56,12 @@ export const getTemplateUrl = (params = {}) => {
};
// 媒体账号分组-分页
export const getGroupList = (params = {}) => {
export const getAccountGroup = (data: any) => {
return Http.get('/v1/media-account-groups', data);
};
// 媒体账号分组-列表
export const getAccountGroupList = (params = {}) => {
return Http.get('/v1/media-account-groups/list', params);
};
@ -124,7 +129,7 @@ export const startPatchAccount = (id: string) => {
// 媒体账号-获取授权图片
export const getAuthorizedImage = (id: string) => {
return Http.get(`/v1/media-accounts/${id}/authorized-image`);
return Http.get(`/v1/media-accounts/${id}/authorize/image`);
};
// 账号看板-数据总览
@ -259,3 +264,13 @@ export const getPlacementAccountDataList = (params = {}) => {
export const postPlacementAccountDataListExport = (params = {}) => {
return Http.post('/v1/placement-account-projects/export', params);
};
// 媒体账号-批量添加
export const batchMediaAccounts = (params = {}, config = {}) => {
return Http.post('/v1/media-accounts/batch', params, config);
};
// 媒体账号-查询授权状态
export const getMediaAccountsAuthorizedStatus = (id: string) => {
return Http.get(`/v1/media-accounts/${id}/status`);
};