-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
21 changed files
with
337 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package star | ||
|
||
import ( | ||
"context" | ||
|
||
"github.com/bububa/oceanengine/marketing-api/core" | ||
"github.com/bububa/oceanengine/marketing-api/model/star" | ||
) | ||
|
||
// ReportCustomDataTopicConfig 获取投后数据主题累计数据 | ||
func ReportCustomDataTopicConfig(ctx context.Context, clt *core.SDKClient, accessToken string, req *star.ReportDataTopicConfigRequest) (*star.ReportCustomDataTopicConfigResult, error) { | ||
var resp star.ReportCustomDataTopicConfigResponse | ||
if err := clt.GetAPI(ctx, "2/star/report/custom_data_topic_config/", req, &resp, accessToken); err != nil { | ||
return nil, err | ||
} | ||
return resp.Data, nil | ||
} |
20 changes: 20 additions & 0 deletions
20
marketing-api/api/star/report_custom_data_topic_daily_report.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package star | ||
|
||
import ( | ||
"context" | ||
|
||
"github.com/bububa/oceanengine/marketing-api/core" | ||
"github.com/bububa/oceanengine/marketing-api/model/star" | ||
) | ||
|
||
// ReportCustomDataTopicDailyReport 获取投后每日趋势数据(短视频) | ||
func ReportCustomDataTopicDailyReport(ctx context.Context, clt *core.SDKClient, accessToken string, req *star.ReportCustomDataTopicDailyReportRequest) ([]star.ReportCustomDataTopicDailyReport, error) { | ||
var resp star.ReportCustomDataTopicDailyReportResponse | ||
if err := clt.GetAPI(ctx, "2/star/report/custom_data_topic_daily_report/", req, &resp, accessToken); err != nil { | ||
return nil, err | ||
} | ||
if resp.Data == nil { | ||
return nil, nil | ||
} | ||
return resp.Data.Stats, nil | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package star | ||
|
||
import ( | ||
"context" | ||
|
||
"github.com/bububa/oceanengine/marketing-api/core" | ||
"github.com/bububa/oceanengine/marketing-api/model/star" | ||
) | ||
|
||
// ReportDataTopicConfig 获取任务下累计可查询的数据指标 | ||
func ReportDataTopicConfig(ctx context.Context, clt *core.SDKClient, accessToken string, req *star.ReportDataTopicConfigRequest) ([]star.DataTopicConfig, error) { | ||
var resp star.ReportDataTopicConfigResponse | ||
err := clt.GetAPI(ctx, "2/star/report/data_topic_config/", req, &resp, accessToken) | ||
if err != nil { | ||
return nil, err | ||
} | ||
if resp.Data == nil { | ||
return nil, nil | ||
} | ||
return resp.Data.Stat, nil | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
package enum | ||
|
||
// StarReportTopic 数据主题 | ||
type StarReportTopic string | ||
|
||
const ( | ||
// StarReportTopic_BASIC_DATA 基础信息 | ||
StarReportTopic_BASIC_DATA StarReportTopic = "BASIC_DATA" | ||
// StarReportTopic_FLOW_DATA 流量表现 | ||
StarReportTopic_FLOW_DATA StarReportTopic = "FLOW_DATA" | ||
// StarReportTopic_CONVERT_DATA 转化表现 | ||
StarReportTopic_CONVERT_DATA StarReportTopic = "CONVERT_DATA" | ||
// StarReportTopic_SEARCH_DATA 搜索表现 | ||
StarReportTopic_SEARCH_DATA StarReportTopic = "SEARCH_DATA" | ||
// StarReportTopic_RECOMMEND_DATA 种草表现 | ||
StarReportTopic_RECOMMEND_DATA StarReportTopic = "RECOMMEND_DATA" | ||
// StarReportTopic_DY_SHOP_DATA 抖音进店 | ||
StarReportTopic_DY_SHOP_DATA StarReportTopic = "DY_SHOP_DATA" | ||
// StarReportTopic_USER_DISTRIBUTION_DATA 用户画像、 | ||
StarReportTopic_USER_DISTRIBUTION_DATA StarReportTopic = "USER_DISTRIBUTION_DATA" | ||
// StarReportTopic_INDEX_SCORE_DATA 指数得分 | ||
StarReportTopic_INDEX_SCORE_DATA StarReportTopic = "INDEX_SCORE_DATA" | ||
// StarReportTopic_COMMENT_DATA 评论数据 | ||
StarReportTopic_COMMENT_DATA StarReportTopic = "COMMENT_DATA" | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
marketing-api/model/star/report_custom_data_topic_config.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package star | ||
|
||
import "github.com/bububa/oceanengine/marketing-api/model" | ||
|
||
// ReportCustomDataTopicConfigResponse 获取投后数据主题累计数据 API Response | ||
type ReportCustomDataTopicConfigResponse struct { | ||
Data *ReportCustomDataTopicConfigResult `json:"data,omitempty"` | ||
model.BaseResponse | ||
} | ||
|
||
type ReportCustomDataTopicConfigResult struct { | ||
// Data 对应请求的数据主题数组 | ||
Data []DataTopicConfig `json:"data,omitempty"` | ||
// ItemID 请求的交付物Id | ||
ItemID uint64 `json:"item_id,omitempty"` | ||
// DemandID 请求的任务Id | ||
DemandID uint64 `json:"demand_id,omitempty"` | ||
} |
Oops, something went wrong.