schema

package
v1.0.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 17, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseNoteItemDTO

type BaseNoteItemDTO struct {
	NoteID                 string                `json:"note_id"`                  // 笔记ID
	Image                  string                `json:"image"`                    // 图片
	Desc                   string                `json:"desc"`                     // 笔记内容
	CreateTime             int64                 `json:"create_time"`              // 创建时间
	Author                 string                `json:"author"`                   // 笔记作者
	AuthorImage            string                `json:"author_image"`             // 作者头像
	Status                 int                   `json:"status"`                   // 笔记状态
	NoteContentType        int                   `json:"note_content_type"`        // 笔记类型
	CooperateState         bool                  `json:"cooperate_state"`          // 是否合作笔记
	Title                  string                `json:"title"`                    // 标题
	ImageList              []string              `json:"image_list"`               // 图片列表
	CooperateComponentType int                   `json:"cooperate_component_type"` // 合作组件类型
	CrowdCreationNote      bool                  `json:"crowd_creation_note"`      // 是否为共创笔记
	ItemID                 string                `json:"item_id"`                  // 商品ID
	ReadCount              int                   `json:"read_count"`               // 阅读数
	ReadRate               string                `json:"read_rate"`                // 阅读率
	InteractCount          int                   `json:"interact_count"`           // 互动数
	InteractRate           string                `json:"interact_rate"`            // 互动率
	HighQuality            int                   `json:"high_quality"`             // 优质笔记
	HighPotential          int                   `json:"high_potential"`           // 高潜笔记
	OutsideShopVisit       int                   `json:"outside_shop_visit"`       // 站外进店量
	OutsideShopVisitRate   string                `json:"outside_shop_visitRate"`   // 站外进店率
	ItemIDs                []string              `json:"item_ids"`                 // 笔记挂接的商品
	NoteMultiSpuInfo       []NoteMultiSpuInfoDTO `json:"note_multi_spu_info"`      // 笔记绑定spu信息
	Taxonomy1              string                `json:"taxonomy1"`                // 一级类目信息
	Taxonomy2              string                `json:"taxonomy2"`                // 二级类目信息
	Taxonomy3              string                `json:"taxonomy3"`                // 三级类目信息
	IsHitStrategy          int                   `json:"is_hit_strategy"`          // 是否命中策略
	HitStrategyContent     string                `json:"hit_strategy_content"`     // 命中策略内容
	WinHorseNote           bool                  `json:"win_horse_note"`           // 是否为优胜笔记
	StaffTag               string                `json:"staff_tag"`                // 员工标签
	StaffArea              string                `json:"staff_area"`               // 地域
	NoteURL                string                `json:"note_url"`                 // 笔记链接
	HasShopCard            bool                  `json:"has_shop_card"`            // 是否为商品笔记
}

BaseNoteItemDTO 表示笔记基本信息

type BrandQualInfo

type BrandQualInfo struct {
	BrandQualId  int    `json:"brand_qual_id"`
	QualTypeName string `json:"qual_type_name"`
	UserRemark   string `json:"user_remark"`
}

BrandQualInfo 产品资质信息

字段说明:

BrandQualId - 品牌资质ID
QualTypeName - 资质名称
UserRemark - 备注

type CodeNamePair

type CodeNamePair struct {
	Code     string         `json:"code"`     // code
	Name     string         `json:"name"`     // 名称
	Children []CodeNamePair `json:"children"` // 子节点
}

## CodeNamePair 代码-名称对结构体

type CommonData

type CommonData struct {
	Title string `json:"title,omitempty"` // 图文笔记标题,非必填
	Desc  string `json:"desc,omitempty"`  // 图文笔记描述,非必填
}

CommonData 表示基础数据

type CoverData

type CoverData struct {
	ImageURL   string `json:"image_url"`   // 图片地址,必填
	ImagWidth  string `json:"imag_width"`  // 图片宽度,必填
	ImagHeight string `json:"imag_height"` // 图片高度,必填
}

CoverData 表示图片信息

type CrowdPackageVO

type CrowdPackageVO struct {
	Value string `json:"value"` // 人群包id
	Name  string `json:"name"`  // 人群包名称
	Type  string `json:"type"`  // 人群包类型
}

## CrowdPackageVO 人群包VO结构体

type CrowdTarget

type CrowdTarget struct {
	CrowdPkg []CrowdPackageVO `json:"crowd_pkg"` // 人群包列表
}

## CrowdTarget 人群包结构体

type DirectLink struct {
	ID         int64  `json:"id"`          // 直达链接id
	URL        string `json:"url"`         // url内容
	Type       int    `json:"type"`        // 类型,1-deeplink,2-ulk
	Status     int    `json:"status"`      // 状态,1-审核中,2-审核通过,3-审核拒绝
	RemarkName string `json:"remark_name"` // 备注名称
}

DirectLink 表示单个直达链接

type DirectLinkListData

type DirectLinkListData struct {
	Total          int64        `json:"total"`            // 直达链接总数
	DirectLinkList []DirectLink `json:"direct_link_list"` // 直达链接列表
}

DirectLinkListData 表示直达链接列表数据

type EventAssetDto

type EventAssetDto struct {
	EventAssetID   int64       `json:"event_asset_id"`
	EventAssetName string      `json:"event_asset_name"`
	Status         int         `json:"status"`
	EventList      []EventList `json:"event_list"`
}

EventAssetDto 表示事件资产信息

  • EventAssetID: 事件资产ID
  • EventAssetName: 事件资产名称
  • Status: 状态
  • EventList: 关联的事件列表

type EventList

type EventList struct {
	EventID     int64 `json:"event_id"`
	EventType   int   `json:"event_type"`
	EventStatus int   `json:"event_status"`
}

EventList 表示事件列表信息

  • EventID: 事件ID
  • EventType: 事件类型
  • EventStatus: 事件状态

type GetAssetInfoData

type GetAssetInfoData struct {
	EventAssetDtos []EventAssetDto `json:"event_assert_dtos"`
	Page           Page            `json:"page"`
}

GetAssetInfoData 表示事件资产信息数据

  • EventAssetDtos: 事件资产列表
  • Page: 分页信息

type GetNegativeWordListData

type GetNegativeWordListData struct {
	Page             PageRespDTO              `json:"page"`              // 分页信息
	NegativeKeywords []NegativeKeywordItemDTO `json:"negative_keywords"` // 否定词详情列表
}

type GetPOIListData

type GetPOIListData struct {
	POIInfoList []POIInfo `json:"poi_info_list"` // 门店列表
	Page        PageInfo  `json:"page"`          // 分页信息
}

type GetQualInfoData

type GetQualInfoData struct {
	QualInfos        []QualInfo        `json:"qual_infos"`
	ProductQualInfos []ProductQualInfo `json:"product_qual_infos"`
	BrandQualInfos   []BrandQualInfo   `json:"brand_qual_infos"`
}

type GetSpuListData

type GetSpuListData struct {
	Total int         `json:"total"` // 总数
	Spu   []SpuDetail `json:"spu"`   // SPU列表
}

type IndustryInterestTarget

type IndustryInterestTarget struct {
	ContentInterests  []CodeNamePair `json:"content_interests"`  // 内容兴趣
	ShoppingInterests []CodeNamePair `json:"shopping_interests"` // 购物兴趣
}

## IndustryInterestTarget 行业兴趣结构体

type JuGuangNoteBatchAddNegativeWordReq

type JuGuangNoteBatchAddNegativeWordReq struct {
	AdvertiserID int64                       `json:"advertiser_id"` // 广告主ID
	UnitID       int64                       `json:"unit_id"`       // 单元ID
	Keywords     []NegativeKeywordAddItemDTO `json:"keywords"`      // 否定词列表
}

JuGuangNoteBatchAddNegativeWordReq 表示批量添加否定词的请求参数 参考:https://adapi.xiaohongshu.com/api/open/jg/negative/keyword/batch/add 字段说明:

advertiser_id: 广告主ID(必填)
unit_id: 单元ID(必填)
keywords: 否定词列表(必填,元素为 NegativeKeywordAddItemDTO)

type JuGuangNoteBatchAddNegativeWordRes

type JuGuangNoteBatchAddNegativeWordRes struct {
	Code      int    `json:"code"`       // 返回码
	Msg       string `json:"msg"`        // 返回信息
	Success   bool   `json:"success"`    // 接口是否成功
	RequestID string `json:"request_id"` // 请求ID
}

JuGuangNoteBatchAddNegativeWordRes 表示批量添加否定词的响应结构体 字段说明:

code: 返回码 msg: 返回信息 success: 接口是否成功 request_id: 请求ID

type JuGuangNoteBatchDeleteNegativeWordReq

type JuGuangNoteBatchDeleteNegativeWordReq struct {
	AdvertiserID       int64   `json:"advertiser_id"`        // 广告主ID
	UnitID             int64   `json:"unit_id"`              // 单元ID
	NegativeKeywordIDs []int64 `json:"negative_keyword_ids"` // 否定词id列表
}

JuGuangNoteBatchDeleteNegativeWordReq 表示批量删除否定词的请求参数 参考:https://adapi.xiaohongshu.com/api/open/jg/negative/keyword/batch/delete 字段说明:

advertiser_id: 广告主ID(必填)
unit_id: 单元ID(必填)
negative_keyword_ids: 否定词id列表(必填)

type JuGuangNoteBatchDeleteNegativeWordRes

type JuGuangNoteBatchDeleteNegativeWordRes struct {
	response.RedBookAccessTokenRes
}

JuGuangNoteBatchDeleteNegativeWordRes 表示批量删除否定词的响应结构体 字段说明:

code: 返回码
msg: 返回信息
success: 接口是否成功
request_id: 请求ID

type JuGuangNoteCreateDirectLinkReq

type JuGuangNoteCreateDirectLinkReq struct {
	AdvertiserID   int64        `json:"advertiser_id"`    // 广告主id
	DirectLinkList []DirectLink `json:"direct_link_list"` // 直达链接信息列表
}

JuGuangNoteCreateDirectLinkReq 表示创建直达链接的请求参数

type JuGuangNoteCreateDirectLinkRes

type JuGuangNoteCreateDirectLinkRes struct {
	response.JuGuangRes
	Data      []DirectLink `json:"data"`       // 返回的直达链接信息
	RequestID string       `json:"request_id"` // 请求id
}

JuGuangNoteCreateDirectLinkRes 表示创建直达链接的响应

type JuGuangNoteDeleteDirectLinkReq

type JuGuangNoteDeleteDirectLinkReq struct {
	AdvertiserID *int64 `json:"advertiser_id"` // 广告主id
	ID           *int64 `json:"id"`            // 直达链接id
}

JuGuangNoteDeleteDirectLinkReq 表示删除直达链接的请求参数

type JuGuangNoteDeleteDirectLinkRes

type JuGuangNoteDeleteDirectLinkRes struct {
	response.JuGuangRes
	RequestID string `json:"request_id"` // 请求id
}

JuGuangNoteDeleteDirectLinkRes 表示删除直达链接的响应

type JuGuangNoteDeleteNoteReq

type JuGuangNoteDeleteNoteReq struct {
	AdvertiserID int64  `json:"advertiser_id"` // 广告主ID,必填
	NoteID       string `json:"note_id"`       // 笔记ID,必填
}

JuGuangNoteDeleteNoteReq 表示删除笔记接口的请求参数

type JuGuangNoteDeleteNoteRes

type JuGuangNoteDeleteNoteRes struct {
	response.RedBookAccessTokenRes
}

JuGuangNoteDeleteNoteRes 表示删除笔记接口的响应结果

type JuGuangNoteEditDirectLinkReq

type JuGuangNoteEditDirectLinkReq struct {
	AdvertiserID int64      `json:"advertiser_id"` // 广告主id
	DirectLink   DirectLink `json:"direct_link"`   // 直达链接信息
}

JuGuangNoteEditDirectLinkReq 表示编辑直达链接的请求参数

type JuGuangNoteEditDirectLinkRes

type JuGuangNoteEditDirectLinkRes struct {
	response.RedBookAccessTokenRes
}

JuGuangNoteEditDirectLinkRes 表示编辑直达链接的响应

type JuGuangNoteGetAssetInfoReq

type JuGuangNoteGetAssetInfoReq struct {
	AdvertiserID int64 `json:"advertiser_id"`
	Page         Page  `json:"page"`
}

JuGuangNoteGetAssetInfoReq 表示获取事件资产信息的请求结构体

  • AdvertiserID: 广告主ID
  • Page: 分页信息

type JuGuangNoteGetAssetInfoRes

type JuGuangNoteGetAssetInfoRes struct {
	response.RedBookAccessTokenRes
	Data GetAssetInfoData `json:"data"`
}

JuGuangNoteGetAssetInfoRes 表示获取事件资产信息的响应结构体

  • RedBookAccessTokenRes: 基础响应结构
  • Data: 事件资产信息数据

type JuGuangNoteGetDirectLinkListReq

type JuGuangNoteGetDirectLinkListReq struct {
	AdvertiserID *int64  `json:"advertiser_id,omitempty"` // 广告主id
	ID           *int64  `json:"id,omitempty"`            // 直达链接id
	PageNum      *int    `json:"page_num,omitempty"`      // 页码,从1开始
	PageSize     *int    `json:"page_size,omitempty"`     // 页大小,最大100
	RemarkName   *string `json:"remark_name,omitempty"`   // 备注名称,模糊匹配
	TypeStr      *string `json:"type_str,omitempty"`      // 类型,1-deeplink,2-ulk
	StatusStr    *string `json:"status_str,omitempty"`    // 状态,1-审核中,2-审核通过,3-审核拒绝
}

JuGuangNoteGetDirectLinkListReq 表示 GET /api/open/jg/direct-link/list 的请求参数

type JuGuangNoteGetDirectLinkListRes

type JuGuangNoteGetDirectLinkListRes struct {
	response.JuGuangRes
	Data DirectLinkListData `json:"data"` // 数据
}

JuGuangNoteGetDirectLinkListRes 表示 GET /api/open/jg/direct-link/list 的响应

type JuGuangNoteGetNegativeWordListReq

type JuGuangNoteGetNegativeWordListReq struct {
	AdvertiserID int64 `json:"advertiser_id"`       // 广告主ID
	UnitID       int64 `json:"unit_id"`             // 单元ID
	PageNum      int   `json:"page_num,omitempty"`  // 页数,默认1
	PageSize     int   `json:"page_size,omitempty"` // 页大小,默认20
}

JuGuangNoteGetNegativeWordListReq 表示获取聚光否定词列表的请求参数 参考:https://adapi.xiaohongshu.com/api/open/jg/negative/keyword/list 字段说明:

advertiser_id: 广告主ID(必填)
unit_id: 单元ID(必填)
page_num: 页数,默认1(可选)
page_size: 页大小,默认20(可选)

type JuGuangNoteGetNegativeWordListRes

type JuGuangNoteGetNegativeWordListRes struct {
	response.RedBookAccessTokenRes
	Data GetNegativeWordListData `json:"data"`
}

JuGuangNoteGetNegativeWordListRes 表示获取聚光否定词列表的响应结构体

type JuGuangNoteGetNoteListReq

type JuGuangNoteGetNoteListReq struct {
	AdvertiserID    int64   `json:"advertiser_id"`               // 广告主ID
	NoteType        int     `json:"note_type"`                   // 笔记类型
	Keyword         *string `json:"keyword,omitempty"`           // 搜索关键词
	OrderField      *string `json:"order_field,omitempty"`       // 排序字段
	OrderType       *string `json:"order_type,omitempty"`        // 排序类型
	NoteContentType *int    `json:"note_content_type,omitempty"` // 笔记内容类型
	PlacementType   *int    `json:"placement_type,omitempty"`    // 推广场景
	SpuID           *string `json:"spu_id,omitempty"`            // spu_id
	FilterTaobao    *int    `json:"filter_taobao,omitempty"`     // 是否只展示小红星笔记
	MarketTarget    *int    `json:"market_target,omitempty"`     // 营销诉求
	SpuType         *int    `json:"spu_type,omitempty"`          // spu类型
	Page            *int    `json:"page,omitempty"`              // 页码
	PageSize        *int    `json:"page_size,omitempty"`         // 每页行数
	BaseOnly        bool    `json:"base_only"`                   // 是否只拉取笔记基本信息
}

JuGuangNoteGetNoteListReq 表示获取笔记列表的请求参数

type JuGuangNoteGetNoteListRes

type JuGuangNoteGetNoteListRes struct {
	response.RedBookAccessTokenRes
	Data JuGuangNoteGetNoteListResData `json:"data"` // 返回数据
}

JuGuangNoteGetNoteListRes 表示获取笔记列表的响应

type JuGuangNoteGetNoteListResData

type JuGuangNoteGetNoteListResData struct {
	Total int               `json:"total"` // 总数
	Notes []BaseNoteItemDTO `json:"notes"` // 笔记信息
}

JuGuangNoteGetNoteListResData 表示获取笔记列表的响应数据

type JuGuangNoteGetPOIListReq

type JuGuangNoteGetPOIListReq struct {
	AdvertiserID int64 `json:"advertiser_id"` // 广告主id
}

JuGuangNoteGetPOIListReq 表示获取门店列表的请求参数

type JuGuangNoteGetPOIListRes

type JuGuangNoteGetPOIListRes struct {
	response.RedBookAccessTokenRes
	Data GetPOIListData `json:"data"`
}

JuGuangNoteGetPOIListRes 表示获取门店列表的响应

type JuGuangNoteGetQualInfoReq

type JuGuangNoteGetQualInfoReq struct {
	AdvertiserId int `json:"advertiser_id"`
	Page         struct {
		PageIndex *int `json:"page_index,omitempty"`
		PageSize  *int `json:"page_size,omitempty"`
	} `json:"page"`
}

## JuGuangNoteGetQualInfoReq 获取资质信息请求参数

字段说明:

AdvertiserId - 广告主ID (必填)
Page - 分页信息 (可选)
  • PageIndex - 页码 (默认1)
  • PageSize - 每页查询量级 (默认20)

type JuGuangNoteGetQualInfoRes

type JuGuangNoteGetQualInfoRes struct {
	response.JuGuangRes
	Data GetQualInfoData `json:"data"`
}

## JuGuangNoteGetQualInfoRes 获取资质信息返回结果

字段说明:

Code - 返回码
Msg - 返回信息
Success - 接口是否成功
Data - 业务数据主体
  • QualInfos - 资质信息列表
  • ProductQualInfos - 行业资质信息列表
  • BrandQualInfos - 产品资质信息列表

type JuGuangNoteGetSpuListReq

type JuGuangNoteGetSpuListReq struct {
	AdvertiserID int64   `json:"advertiser_id"`       // 广告主ID
	CanBind      *bool   `json:"can_bind,omitempty"`  // 是否可以绑定
	Keyword      *string `json:"keyword,omitempty"`   // 搜索关键词
	Page         *int    `json:"page,omitempty"`      // 页码
	PageSize     *int    `json:"page_size,omitempty"` // 页大小
}

JuGuangNoteGetSpuListReq 表示获取SPU列表的请求参数

type JuGuangNoteGetSpuListRes

type JuGuangNoteGetSpuListRes struct {
	response.RedBookAccessTokenRes
	Data GetSpuListData `json:"data"`
}

JuGuangNoteGetSpuListRes 表示获取SPU列表的响应

type JuGuangNoteListLandingPageReq

type JuGuangNoteListLandingPageReq struct {
	AdvertiserID *int64  `json:"advertiser_id"`       // 广告主ID
	Page         *int    `json:"page,omitempty"`      // 请求的页码,默认为1
	PageSize     *int    `json:"page_size,omitempty"` // 每页行数,默认为10
	Keyword      *string `json:"keyword,omitempty"`   // 搜索词
	Status       *int    `json:"status"`              // 固定传2(审核通过)
}

JuGuangNoteListLandingPageReq 表示获取落地页列表的请求参数

type JuGuangNoteListLandingPageRes

type JuGuangNoteListLandingPageRes struct {
	response.RedBookAccessTokenRes
	Data struct {
		Total *int            `json:"total"` // 总数
		List  []LandingPageVO `json:"list"`  // 落地页信息
	} `json:"data"`
}

JuGuangNoteListLandingPageRes 表示获取落地页列表的响应

type JuGuangNotePostNoteReq

type JuGuangNotePostNoteReq struct {
	AdvertiserID int64       `json:"advertiser_id"`         // 广告主id,必填
	CoverDatas   []CoverData `json:"cover_datas"`           // 图片信息,必填
	CommonData   *CommonData `json:"common_data,omitempty"` // 基础数据,非必填
	Tags         []string    `json:"tags,omitempty"`        // 话题信息,非必填,不超过45条
}

JuGuangNotePostNoteReq 表示聚光平台图文笔记发布接口的请求参数 参考:https://open.xiaohongshu.com/document/api?apiId=xxx HEADER: Access-Token string token

type JuGuangNotePostNoteRes

type JuGuangNotePostNoteRes struct {
	response.RedBookAccessTokenRes
	Data PostNoteData `json:"data"`
}

JuGuangNotePostNoteRes 表示聚光平台图文笔记发布接口的响应结果

type JuGuangNotePostVideoNoteReq

type JuGuangNotePostVideoNoteReq struct {
	AdvertiserID int64       `json:"advertiser_id"`         // 广告主id,必填
	VideoData    VideoData   `json:"video_data"`            // 视频信息,必填
	CoverData    CoverData   `json:"cover_data"`            // 视频封面信息,必填
	CommonData   *CommonData `json:"common_data,omitempty"` // 基础数据,非必填
	Tags         []string    `json:"tags,omitempty"`        // 话题信息,非必填,不超过45条
}

JuGuangNotePostVideoNoteReq 表示聚光平台视频笔记发布接口的请求参数 参考:https://open.xiaohongshu.com/document/api?apiId=xxx HEADER: Access-Token string token

type JuGuangNotePostVideoNoteRes

type JuGuangNotePostVideoNoteRes struct {
	response.RedBookAccessTokenRes
	Data *PostVideoNoteData `json:"data"` // 业务数据
}

JuGuangNotePostVideoNoteRes 表示聚光平台视频笔记发布接口的响应结果

type JuGuangNoteQueryNoteIDReq

type JuGuangNoteQueryNoteIDReq struct {
	TemporaryID string `json:"temporary_id"` // 临时笔记ID
}

JuGuangNoteQueryNoteIDReq 请求结构体 用于通过临时笔记ID查询正式笔记ID temporary_id: 临时笔记ID(必填)

type JuGuangNoteQueryNoteIDRes

type JuGuangNoteQueryNoteIDRes struct {
	response.RedBookAccessTokenRes
	Data *JuGuangNoteQueryNoteIDResData `json:"data"` // 业务数据
}

JuGuangNoteQueryNoteIDRes 响应结构体 返回查询结果,包括笔记ID、创建时间等信息

type JuGuangNoteQueryNoteIDResData

type JuGuangNoteQueryNoteIDResData struct {
	TemporaryID string `json:"temporary_id"` // 临时笔记ID
	NoteID      string `json:"note_id"`      // 笔记ID
	CreateTime  int64  `json:"create_time"`  // 创建时间
}

JuGuangNoteQueryNoteIDResData 业务数据结构体

type JuGuangNoteQueryTemplateData

type JuGuangNoteQueryTemplateData struct {
	ID              int64                `json:"id"`               // 定向包ID
	Name            string               `json:"name"`             // 定向包名称
	Desc            string               `json:"desc"`             // 定向包描述
	TargetType      int                  `json:"target_type"`      // 定向类型
	MarketingTarget int                  `json:"marketing_target"` // 营销诉求
	Placement       int                  `json:"placement"`        // 广告类型
	DeliveryMode    int                  `json:"delivery_mode"`    // 投放模式
	UnitList        []int64              `json:"unit_list"`        // 已关联单元ID列表
	TargetConfig    *JuGuangTargetConfig `json:"target_config"`    // 定向配置
}

## JuGuangNoteQueryTemplateData 定向包数据结构体

type JuGuangNoteQueryTemplateReq

type JuGuangNoteQueryTemplateReq struct {
	AdvertiserID     int64  `json:"advertiser_id"`                // 广告主id
	TargetTemplateID *int64 `json:"target_template_id,omitempty"` // 定向包id
	MarketingTarget  *int   `json:"marketing_target,omitempty"`   // 营销诉求
	Placement        *int   `json:"placement,omitempty"`          // 广告类型
	Page             *int   `json:"page,omitempty"`               // 页码
	PageSize         *int   `json:"page_size,omitempty"`          // 每页行数
}

## JuGuangNoteQueryTemplateReq 查询定向包请求参数 字段说明:

advertiser_id - 广告主id(必填)
target_template_id - 定向包id(可选)
marketing_target - 营销诉求(可选)
placement - 广告类型(可选)
page - 页码(可选,默认1)
page_size - 每页行数(可选,默认20,最大100)

type JuGuangNoteQueryTemplateRes

type JuGuangNoteQueryTemplateRes struct {
	response.RedBookAccessTokenRes
	Data *JuGuangNoteQueryTemplateData `json:"data"` // 业务数据
}

## JuGuangNoteQueryTemplateRes 查询定向包响应结构体 字段说明:

code - 响应码
msg - 响应消息
success - 是否成功
data - 业务数据
request_id - 请求id

type JuGuangTargetConfig

type JuGuangTargetConfig struct {
	TargetGender           string                  `json:"target_gender"`             // 定向性别
	TargetAge              string                  `json:"target_age"`                // 定向年龄
	TargetDevice           string                  `json:"target_device"`             // 定向设备
	TargetDevicePrice      string                  `json:"target_device_price"`       // 手机价格
	TargetCity             string                  `json:"target_city"`               // 城市定向
	TargetAreaCode         string                  `json:"target_area_code"`          // 城市编码
	IndustryInterestTarget *IndustryInterestTarget `json:"industry_interest_target"`  // 行业兴趣
	CrowdTarget            *CrowdTarget            `json:"crowd_target"`              // 人群包
	Keywords               []string                `json:"keywords"`                  // 关键词定向
	InterestKeywords       []string                `json:"interest_keywords"`         // 关键词兴趣定向
	IntelligentExpansion   int                     `json:"intelligent_expansion"`     // 智能扩量
	SearchTargetCityIntent string                  `json:"search_target_city_intent"` // 搜索意图城市定向
	ReverseTargetCrowd     []string                `json:"reverse_target_crowd"`      // 排除特定人群
}

## JuGuangTargetConfig 定向配置结构体

type LandingPageVO

type LandingPageVO struct {
	AuditComment        *string  `json:"audit_comment"`          // 审核结果备注
	Content             *string  `json:"content"`                // 页面内容json str
	DataUpdated         *bool    `json:"data_updated"`           // 数据是否已更新
	DraftPreviewPath    *string  `json:"draft_preview_path"`     // 草稿页面内容json str
	ID                  *int64   `json:"id"`                     // 页面ID
	LeadsAPI            *string  `json:"leads_api"`              // leads_api
	ObjectID            *string  `json:"object_id"`              // object_id
	OnlineDomain        *string  `json:"online_domain"`          // 在线域名
	PageName            *string  `json:"page_name"`              // 页面名称
	Status              *int     `json:"status"`                 // 落地页状态
	UnitLandingPageDesc []string `json:"unit_landing_page_desc"` // 表单落地页描述
	WebDomain           *string  `json:"web_domain"`             // 域名
	WebPath             *string  `json:"web_path"`               // path
}

LandingPageVO 表示落地页信息

type NegativeKeywordAddItemDTO

type NegativeKeywordAddItemDTO struct {
	Keyword         string `json:"keyword"`           // 否定词
	PhraseMatchType int    `json:"phrase_match_type"` // 匹配方式
}

NegativeKeywordAddItemDTO 否定词项结构体

keyword: 否定词(必填) phrase_match_type: 匹配方式,0-精确匹配,1-短语匹配(必填)

type NegativeKeywordItemDTO

type NegativeKeywordItemDTO struct {
	CampaignID        int64  `json:"campaign_id"`         // 计划id
	UnitID            int64  `json:"unit_id"`             // 单元id
	NegativeKeywordID int64  `json:"negative_keyword_id"` // 否定词id
	Keyword           string `json:"keyword"`             // 否定词
	PhraseMatchType   int    `json:"phrase_match_type"`   // 匹配方式,0-精确匹配,1-短语匹配
}

NegativeKeywordItemDTO 否定词详情

type NoteMultiSpuInfoDTO

type NoteMultiSpuInfoDTO struct {
	BindID                   int64  `json:"bind_id"`                       // 绑定ID
	SpuID                    string `json:"spu_id"`                        // spu_id
	SpuName                  string `json:"spu_name"`                      // spu名称
	ExceedModifyLimitIn30Day bool   `json:"exceed_modify_limit_in_30_day"` // 是否超出30内修改绑定三次限制
	ExceedModifyLimitToday   bool   `json:"exceed_modify_limit_today"`     // 是否超出一天内修改绑定一次限制
	BindByCurAccount         bool   `json:"bind_by_cur_account"`           // 是否为当前账户绑定
	BindAuditStatus          int    `json:"bind_audit_status"`             // 绑定关系审核状态
	BindAuditReason          string `json:"bind_audit_reason"`             // 绑定关系审核拒绝原因
	SpuType                  int    `json:"spu_type"`                      // spu类型
	SpuSubName               string `json:"spu_sub_name"`                  // 非标、品牌名称
	SeriesID                 string `json:"series_id"`                     // 系列 ID
}

NoteMultiSpuInfoDTO 表示笔记绑定spu信息

type POIInfo

type POIInfo struct {
	POIID   string `json:"poi_id"`   // 门店id
	POIName string `json:"poi_name"` // 门店名称
}

POIInfo 表示门店信息

type Page

type Page struct {
	PageIndex *int `json:"page_index,omitempty"`
	PageSize  *int `json:"page_size,omitempty"`
}

Page 表示分页信息

  • PageIndex: 当前页码,从1开始
  • PageSize: 每页大小,最大100

type PageInfo

type PageInfo struct {
	Total int `json:"total"` // 总数
}

PageInfo 表示分页信息

type PageRespDTO

type PageRespDTO struct {
	PageIndex  int `json:"page_index"`  // 页码
	TotalCount int `json:"total_count"` // 总数量
}

PageRespDTO 分页信息

type PostNoteData

type PostNoteData struct {
	TemporaryID string `json:"temporary_id"` // 笔记临时id
}

type PostVideoNoteData

type PostVideoNoteData struct {
	TemporaryID string `json:"temporary_id"` // 笔记临时id
}

PostVideoNoteData 业务数据结构体

type ProductQualInfo

type ProductQualInfo struct {
	ProductQualId int    `json:"product_qual_id"`
	ProductName   string `json:"product_name"`
}

ProductQualInfo 行业资质信息

字段说明:

ProductQualId - 产品资质ID
ProductName - 产品资质名称

type QualInfo

type QualInfo struct {
	ApplyId             string `json:"apply_id"`
	TradeTypeFirstCode  string `json:"trade_type_first_code"`
	TradeTypeFirstName  string `json:"trade_type_first_name"`
	TradeTypeSecondCode string `json:"trade_type_second_code"`
	TradeTypeSecondName string `json:"trade_type_second_name"`
}

QualInfo 资质信息

字段说明:

ApplyId - 资质ID
TradeTypeFirstCode - 一级行业编码
TradeTypeFirstName - 一级行业名称
TradeTypeSecondCode - 二级行业编码
TradeTypeSecondName - 二级行业名称

type SpuDetail

type SpuDetail struct {
	MainSpuID      int64    `json:"main_spu_id"`      // 主SPU ID
	SpuID          int64    `json:"spu_id"`           // SPU ID
	SpuName        string   `json:"spu_name"`         // SPU名称
	SpuStatus      int      `json:"spu_status"`       // SPU状态
	TaxonomyCode   string   `json:"taxonomy_code"`    // SPU类目code
	BrandID        string   `json:"brand_id"`         // 品牌ID
	NickNameList   []string `json:"nick_name_list"`   // SPU昵称列表
	SeriesList     []string `json:"series_list"`      // SPU系列名称列表
	PicUrlList     []string `json:"pic_url_list"`     // SPU图片链接列表
	SpuAuditReason string   `json:"spu_audit_reason"` // 审核拒绝原因
}

SpuDetail 表示SPU详细信息

type VideoData

type VideoData struct {
	VideoURL    string `json:"video_url"`    // 视频地址,必填
	VideoWidth  string `json:"video_width"`  // 视频宽度,必填
	VideoHeight string `json:"video_height"` // 视频高度,必填
}

VideoData 表示视频信息 视频地址、宽度和高度均为必填 video_url 域名需提前加白 video_width、video_height 为视频尺寸

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL