-
Notifications
You must be signed in to change notification settings - Fork 43
/
assets_create.go
36 lines (32 loc) · 1.12 KB
/
assets_create.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
package eventmanager
import (
"github.com/bububa/oceanengine/marketing-api/enum"
"github.com/bububa/oceanengine/marketing-api/model"
"github.com/bububa/oceanengine/marketing-api/util"
)
// AssetsCreateRequest 创建事件资产 API Request
type AssetsCreateRequest struct {
// AdvertiserID 广告主ID
AdvertiserID uint64 `json:"advertiser_id,omitempty"`
// AssetType 资产类型,目前仅支持THIRD_EXTERNAL 三方落地页
AssetType enum.AssetType `json:"asset_type,omitempty"`
// ThirdPartAsset 三方落地页资产信息
ThirdPartAsset *LandingPage `json:"third_part_asset,omitempty"`
// QuickAppAsset 快应用资产信息
QuickAppAsset *QuickApp `json:"quick_app_asset,omitempty"`
// AppAsset 应用信息
AppAsset *App `json:"app_asset,omitempty"`
}
// Encode implement PostRequest interface
func (r AssetsCreateRequest) Encode() []byte {
return util.JSONMarshal(r)
}
// AssetsCreateResponse 创建事件资产 API Response
type AssetsCreateResponse struct {
model.BaseResponse
// Data json返回值
Data struct {
// AssetID 资产ID
AssetID uint64 `json:"asset_id,omitempty"`
} `json:"data,omitempty"`
}