fix:广告主查询接口接口
This commit is contained in:
parent
97402c3720
commit
c420c1de57
|
@ -0,0 +1,26 @@
|
|||
package domain
|
||||
|
||||
type TaobaoUnideskRtaToolsMonitorUrlTopQueryDto struct {
|
||||
/*
|
||||
计划组ID */
|
||||
CampaignId *int64 `json:"campaign_id" required:"true" `
|
||||
/*
|
||||
落地页 */
|
||||
LandingPage *string `json:"landing_page" required:"true" `
|
||||
/*
|
||||
广告主ID */
|
||||
AdvertiserId *int64 `json:"advertiser_id" required:"true" `
|
||||
}
|
||||
|
||||
func (s *TaobaoUnideskRtaToolsMonitorUrlTopQueryDto) SetCreated(v int64) *TaobaoUnideskRtaToolsMonitorUrlTopQueryDto {
|
||||
s.CampaignId = &v
|
||||
return s
|
||||
}
|
||||
func (s *TaobaoUnideskRtaToolsMonitorUrlTopQueryDto) SetGroupName(v string) *TaobaoUnideskRtaToolsMonitorUrlTopQueryDto {
|
||||
s.LandingPage = &v
|
||||
return s
|
||||
}
|
||||
func (s *TaobaoUnideskRtaToolsMonitorUrlTopQueryDto) SetIsValid(v int64) *TaobaoUnideskRtaToolsMonitorUrlTopQueryDto {
|
||||
s.AdvertiserId = &v
|
||||
return s
|
||||
}
|
|
@ -0,0 +1,36 @@
|
|||
package domain
|
||||
|
||||
type AdvertiserTopQueryDTO struct {
|
||||
/*
|
||||
广告主ids */
|
||||
Ids *[]int64 `json:"ids,omitempty" required:"false" `
|
||||
/*
|
||||
第几页 */
|
||||
PageNo *int64 `json:"page_no,omitempty" required:"false" `
|
||||
/*
|
||||
每页多少条 */
|
||||
PageSize *int64 `json:"page_size,omitempty" required:"false" `
|
||||
/*
|
||||
活跃账户周期 1:1日内活跃 3: 3日内活跃 7:7日内活跃 15:15日内活跃 -1: 不限活跃度 */
|
||||
ActivePeriod *int64 `json:"active_period,omitempty" required:"false" `
|
||||
}
|
||||
|
||||
func (s *AdvertiserTopQueryDTO) SetIds(v []int64) *AdvertiserTopQueryDTO {
|
||||
s.Ids = &v
|
||||
return s
|
||||
}
|
||||
|
||||
func (s *AdvertiserTopQueryDTO) SetPageNo(v int64) *AdvertiserTopQueryDTO {
|
||||
s.PageNo = &v
|
||||
return s
|
||||
}
|
||||
|
||||
func (s *AdvertiserTopQueryDTO) SetPageSize(v int64) *AdvertiserTopQueryDTO {
|
||||
s.PageSize = &v
|
||||
return s
|
||||
}
|
||||
|
||||
func (s *AdvertiserTopQueryDTO) SetActivePeriod(v int64) *AdvertiserTopQueryDTO {
|
||||
s.ActivePeriod = &v
|
||||
return s
|
||||
}
|
|
@ -1,44 +1,23 @@
|
|||
package request
|
||||
|
||||
import (
|
||||
"git.sunqdl.cn/fgqj/topsdk/defaultability/domain"
|
||||
"git.sunqdl.cn/fgqj/topsdk/util"
|
||||
)
|
||||
|
||||
type TaobaoUnideskRtaToolsMonitorurlGetRequest struct {
|
||||
MonitorUrlTopQueryDto *MonitorUrlTopQueryDto `json:"monitor_url_top_query_dto" required:"true" `
|
||||
MonitorUrlTopQueryDto *domain.TaobaoUnideskRtaToolsMonitorUrlTopQueryDto `json:"monitor_url_top_query_dto" required:"true" `
|
||||
}
|
||||
|
||||
type MonitorUrlTopQueryDto struct {
|
||||
/*
|
||||
计划组ID */
|
||||
CampaignId *int64 `json:"campaign_id" required:"true" `
|
||||
/*
|
||||
落地页 */
|
||||
LandingPage *string `json:"landing_page" required:"true" `
|
||||
/*
|
||||
广告主ID */
|
||||
AdvertiserId *int64 `json:"advertiser_id" required:"true" `
|
||||
}
|
||||
|
||||
func (s *TaobaoUnideskRtaToolsMonitorurlGetRequest) SetCampaignId(v int64) *TaobaoUnideskRtaToolsMonitorurlGetRequest {
|
||||
s.MonitorUrlTopQueryDto.CampaignId = &v
|
||||
return s
|
||||
}
|
||||
func (s *TaobaoUnideskRtaToolsMonitorurlGetRequest) SetLandingPage(v string) *TaobaoUnideskRtaToolsMonitorurlGetRequest {
|
||||
s.MonitorUrlTopQueryDto.LandingPage = &v
|
||||
return s
|
||||
}
|
||||
func (s *TaobaoUnideskRtaToolsMonitorurlGetRequest) SetAdvertiserId(v int64) *TaobaoUnideskRtaToolsMonitorurlGetRequest {
|
||||
s.MonitorUrlTopQueryDto.AdvertiserId = &v
|
||||
func (s *TaobaoUnideskRtaToolsMonitorurlGetRequest) SetMonitorUrlTopQueryDto(v domain.TaobaoUnideskRtaToolsMonitorUrlTopQueryDto) *TaobaoUnideskRtaToolsMonitorurlGetRequest {
|
||||
s.MonitorUrlTopQueryDto = &v
|
||||
return s
|
||||
}
|
||||
|
||||
func (req *TaobaoUnideskRtaToolsMonitorurlGetRequest) ToMap() map[string]interface{} {
|
||||
paramMap := make(map[string]interface{})
|
||||
if req.MonitorUrlTopQueryDto.CampaignId != nil {
|
||||
paramMap["campaign_id"] = *req.MonitorUrlTopQueryDto.CampaignId
|
||||
}
|
||||
if req.MonitorUrlTopQueryDto.LandingPage != nil {
|
||||
paramMap["landing_page"] = *req.MonitorUrlTopQueryDto.LandingPage
|
||||
}
|
||||
if req.MonitorUrlTopQueryDto.AdvertiserId != nil {
|
||||
paramMap["advertiser_id"] = *req.MonitorUrlTopQueryDto.AdvertiserId
|
||||
if req.MonitorUrlTopQueryDto != nil {
|
||||
paramMap["monitor_url_top_query_dto"] = util.ConvertStructList(*req.MonitorUrlTopQueryDto)
|
||||
}
|
||||
return paramMap
|
||||
}
|
||||
|
|
|
@ -1,57 +1,23 @@
|
|||
package request
|
||||
|
||||
import (
|
||||
"git.sunqdl.cn/fgqj/topsdk/defaultability/domain"
|
||||
"git.sunqdl.cn/fgqj/topsdk/util"
|
||||
)
|
||||
|
||||
type TaobaoUnideskRtaUserAdvertiserGetRequest struct {
|
||||
AdvertiserTopQueryDTO *AdvertiserTopQueryDTO `json:"advertiser_top_query_dto" required:"true" `
|
||||
AdvertiserTopQueryDTO *domain.AdvertiserTopQueryDTO `json:"advertiser_top_query_dto" required:"true" `
|
||||
}
|
||||
|
||||
type AdvertiserTopQueryDTO struct {
|
||||
/*
|
||||
广告主ids */
|
||||
Ids *[]int64 `json:"ids,omitempty" required:"false" `
|
||||
/*
|
||||
第几页 */
|
||||
PageNo *int64 `json:"page_no,omitempty" required:"false" `
|
||||
/*
|
||||
每页多少条 */
|
||||
PageSize *int64 `json:"page_size,omitempty" required:"false" `
|
||||
/*
|
||||
活跃账户周期 1:1日内活跃 3: 3日内活跃 7:7日内活跃 15:15日内活跃 -1: 不限活跃度 */
|
||||
ActivePeriod *int64 `json:"active_period,omitempty" required:"false" `
|
||||
}
|
||||
|
||||
func (s *TaobaoUnideskRtaUserAdvertiserGetRequest) SetIds(v []int64) *TaobaoUnideskRtaUserAdvertiserGetRequest {
|
||||
s.AdvertiserTopQueryDTO.Ids = &v
|
||||
return s
|
||||
}
|
||||
|
||||
func (s *TaobaoUnideskRtaUserAdvertiserGetRequest) SetPageNo(v int64) *TaobaoUnideskRtaUserAdvertiserGetRequest {
|
||||
s.AdvertiserTopQueryDTO.PageNo = &v
|
||||
return s
|
||||
}
|
||||
|
||||
func (s *TaobaoUnideskRtaUserAdvertiserGetRequest) SetPageSize(v int64) *TaobaoUnideskRtaUserAdvertiserGetRequest {
|
||||
s.AdvertiserTopQueryDTO.PageSize = &v
|
||||
return s
|
||||
}
|
||||
|
||||
func (s *TaobaoUnideskRtaUserAdvertiserGetRequest) SetActivePeriod(v int64) *TaobaoUnideskRtaUserAdvertiserGetRequest {
|
||||
s.AdvertiserTopQueryDTO.ActivePeriod = &v
|
||||
func (s *TaobaoUnideskRtaUserAdvertiserGetRequest) SetAdvertiserTopQueryDTO(v domain.AdvertiserTopQueryDTO) *TaobaoUnideskRtaUserAdvertiserGetRequest {
|
||||
s.AdvertiserTopQueryDTO = &v
|
||||
return s
|
||||
}
|
||||
|
||||
func (req *TaobaoUnideskRtaUserAdvertiserGetRequest) ToMap() map[string]interface{} {
|
||||
paramMap := make(map[string]interface{})
|
||||
if req.AdvertiserTopQueryDTO.Ids != nil {
|
||||
paramMap["ids"] = *req.AdvertiserTopQueryDTO.Ids
|
||||
}
|
||||
if req.AdvertiserTopQueryDTO.ActivePeriod != nil {
|
||||
paramMap["active_period"] = *req.AdvertiserTopQueryDTO.ActivePeriod
|
||||
}
|
||||
if req.AdvertiserTopQueryDTO.PageNo != nil {
|
||||
paramMap["page_no"] = *req.AdvertiserTopQueryDTO.PageNo
|
||||
}
|
||||
if req.AdvertiserTopQueryDTO.PageSize != nil {
|
||||
paramMap["page_size"] = *req.AdvertiserTopQueryDTO.PageSize
|
||||
if req.AdvertiserTopQueryDTO != nil {
|
||||
paramMap["advertiser_top_query_dto"] = util.ConvertStructList(*req.AdvertiserTopQueryDTO)
|
||||
}
|
||||
return paramMap
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue