forked from bububa/oceanengine
-
Notifications
You must be signed in to change notification settings - Fork 0
/
update.go
35 lines (31 loc) · 985 Bytes
/
update.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
package creativeword
import (
"github.com/bububa/oceanengine/marketing-api/model"
"github.com/bububa/oceanengine/marketing-api/util"
)
// UpdateRequest 更新动态创意词包 API Request
type UpdateRequest struct {
// AdvertiserID 广告主ID
AdvertiserID uint64 `json:"advertiser_id,omitempty"`
// CreativeWordID 创意词包id
CreativeWordID uint64 `json:"creative_word_id,omitempty"`
// Name 创意词包名称
Name string `json:"name,omitempty"`
// DefaultWord 默认词
DefaultWord string `json:"default_word,omitempty"`
// Words 替换词
Words []string `json:"words,omitempty"`
}
// Encode implement PostRequest interface
func (r UpdateRequest) Encode() []byte {
return util.JSONMarshal(r)
}
// UpdateResponse 更新动态创意词包 API Response
type UpdateResponse struct {
model.BaseResponse
// Data json返回值
Data struct {
// CreativeWordID 创意词包ID
CreativeWordID uint64 `json:"creative_word_id,omitempty"`
} `json:"data,omitempty"`
}