Documentation ¶
Overview ¶
Package thirdsite 第三方落地页管理API models
Index ¶
- type CreateRequest
- type CreateResponse
- type CreateResponseData
- type DeleteRequest
- type DeleteResponse
- type DeleteResponseData
- type GetFiltering
- type GetRequest
- type GetResponse
- type GetResponseData
- type PreviewRequest
- type PreviewResponse
- type PreviewResponseData
- type Site
- type UpdateRequest
- type UpdateResponse
- type UpdateResponseData
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateRequest ¶
type CreateRequest struct { // AdvertiserID 广告主id AdvertiserID uint64 `json:"advertiser_id,omitempty"` // Name 站点名称, 长度限制,1-50 字 Name string `json:"name,omitempty"` // URL 站点URL URL string `json:"url,omitempty"` }
CreateRequest 创建第三方落地页站点 API Request
func (CreateRequest) Encode ¶
func (r CreateRequest) Encode() []byte
Encode implement PostRequest interface
type CreateResponse ¶
type CreateResponse struct { model.BaseResponse // Data json返回值 Data *CreateResponseData `json:"data,omitempty"` }
CreateResponse 创建第三方落地页站点 API Response
type CreateResponseData ¶
type CreateResponseData struct { // SiteID 站点id SiteID uint64 `json:"site_id,omitempty"` }
CreateResponseData json返回值
type DeleteRequest ¶
type DeleteRequest struct { // AdvertiserID 广告主id AdvertiserID uint64 `json:"advertiser_id,omitempty"` // SiteID 站点id SiteID uint64 `json:"site_id,omitempty"` }
DeleteRequest 删除第三方落地页站点 API Request
func (DeleteRequest) Encode ¶
func (r DeleteRequest) Encode() []byte
Encode implement PostRequest interface
type DeleteResponse ¶
type DeleteResponse struct { model.BaseResponse // Data json返回值 Data *DeleteResponseData `json:"data,omitempty"` }
DeleteResponse 删除第三方落地页站点 API Response
type DeleteResponseData ¶
type DeleteResponseData struct { // SiteID 站点id SiteID uint64 `json:"site_id,omitempty"` }
DeleteResponseData json返回值
type GetFiltering ¶
type GetFiltering struct { // SiteID 搜索字段,按照建站id进行模糊匹配 SiteID string `json:"site_id,omitempty"` // SiteName 搜索字段,按照建站name进行模糊匹配 SiteName string `json:"site_name,omitempty"` // StartTime 时间过滤条件:时间范围内创建的落地页,开始时间,默认七天前, 时间格式 %Y-%m-%d StartTime string `json:"start_time,omitempty"` // EndTime 时间过滤条件:时间范围内创建的落地页,结束时间,默认到当天,时间格式 %Y-%m-%d EndTime string `json:"end_time,omitempty"` }
GetFiltering 过滤字段
type GetRequest ¶
type GetRequest struct { // AdvertiserID 广告主id AdvertiserID uint64 `json:"advertiser_id,omitempty"` // Page 页数默认值: 1,page必须大于0 Page int `json:"page,omitempty"` // PageSize 页面大小默认值:10,page_size范围为1-1000 PageSize int `json:"page_size,omitempty"` // Filtering 过滤字段 Filtering *GetFiltering `json:"filtering,omitempty"` }
GetRequest 获取第三方落地页站点列表 API Request
func (GetRequest) Encode ¶
func (r GetRequest) Encode() string
Encode implement GetRequest interface
type GetResponse ¶
type GetResponse struct { model.BaseResponse // Data json返回值 Data *GetResponseData `json:"data,omitempty"` }
GetResponse 获取第三方落地页站点列表 API Response
type GetResponseData ¶
type GetResponseData struct { // List 站点列表 List []Site `json:"list,omitempty"` // PageInfo 分页信息 PageInfo *model.PageInfo `json:"page_info,omitempty"` }
GetResponseData json返回值
type PreviewRequest ¶
type PreviewRequest struct { // AdvertiserID 广告主id AdvertiserID uint64 `json:"advertiser_id,omitempty"` // SiteID 站点id SiteID uint64 `json:"site_id,omitempty"` }
PreviewRequest 获取第三方落地页预览地址 API Request
func (PreviewRequest) Encode ¶
func (r PreviewRequest) Encode() string
Encode implement GetRequest interface
type PreviewResponse ¶
type PreviewResponse struct { model.BaseResponse // Data json返回值 Data *PreviewResponseData `json:"data,omitempty"` }
PreviewResponse 获取第三方落地页预览地址 API Response
type PreviewResponseData ¶
type PreviewResponseData struct { // SiteID 站点id SiteID uint64 `json:"site_id,omitempty"` // URL 站点URL URL string `json:"url,omitempty"` }
PreviewResponseData json返回值
type Site ¶
type Site struct { // AuditStatus 站点审核状态 AuditStatus enum.SiteAuditStatus `json:"audit_status,omitempty"` // CreateTime 站点创建时间 CreateTime string `json:"create_time,omitempty"` // Name 站点名称 Name string `json:"name,omitempty"` // SiteID 站点id SiteID uint64 `json:"site_id,omitempty"` // Thumbnail 缩略图地址 Thumbnail string `json:"thumbnail,omitempty"` // URL 站点预览地址 URL string `json:"url,omitempty"` }
Site 站点
type UpdateRequest ¶
type UpdateRequest struct { // AdvertiserID 广告主id AdvertiserID uint64 `json:"advertiser_id,omitempty"` // SiteID 站点id SiteID uint64 `json:"site_id,omitempty"` // Name 站点名称, 长度限制,1-50 字 Name string `json:"name,omitempty"` }
UpdateRequest 修改第三方落地页站点 API Request
func (UpdateRequest) Encode ¶
func (r UpdateRequest) Encode() []byte
Encode implement PostRequest interface
type UpdateResponse ¶
type UpdateResponse struct { model.BaseResponse // Data json返回值 Data *UpdateResponseData `json:"data,omitempty"` }
UpdateResponse 修改第三方落地页站点 API Response
type UpdateResponseData ¶
type UpdateResponseData struct { // SiteID 站点id SiteID uint64 `json:"site_id,omitempty"` }
UpdateResponseData json返回值