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: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TASK_ID        = 1 // 任务ID
	TASK_NAME      = 2 // 任务名称
	TASK_PAGE_PATH = 3 // 任务页面地址
)

查询参数类型枚举

View Source
const (
	VIDEO_TASK = 1 // 短视频任务
	LIVE_TASK  = 2 // 直播任务
)

任务类别枚举

Variables

This section is empty.

Functions

This section is empty.

Types

type AgencyQueryBillLink struct {
	BillLink     string `json:"bill_link"`
	LiveBillLink string `json:"live_bill_link"`
}

type AgencyQueryTaskInfo

type AgencyQueryTaskInfo struct {
	Total     int    `json:"total"`
	PageCount int    `json:"page_count"`
	AppId     string `json:"app_id"`
	Tasks     []Task `json:"tasks"`
}

type AgencyQueryVideoSum

type AgencyQueryVideoSum struct {
	// BillingGmvTd 当日GMV(Gross Merchandise Volume,商品交易总额)
	BillingGmvTd int64 `json:"billing_gmv_td"`
	// BillingRefundGmvTd 当日退款GMV
	BillingRefundGmvTd int64 `json:"biling_refund_gmv_td"`
	// VideoId 视频ID
	VideoId int64 `json:"video_id"`
	// TaskId 任务ID
	TaskId int64 `json:"task_id"`
	// AgentId 代理商ID
	AgentId string `json:"agent_id"`
	// PublishTime 发布时间(时间戳)
	PublishTime int `json:"publish_time"`
}

AgencyQueryVideoSum 视频汇总数据

type BindResult

type BindResult struct {
	AgentId    int    `json:"agent_id"`
	DouyinId   string `json:"douyin_id"`
	BindTime   int    `json:"bind_time"`
	UnbindTime int    `json:"unbind_time"`
}

BindResult 机构用户绑定结果

type DouYinTaskBoxAgencyQueryAppTaskReq

type DouYinTaskBoxAgencyQueryAppTaskReq struct {
	AppId           string `json:"appid"`             // 查询的小程序 appid
	CreateEndTime   int64  `json:"create_end_time"`   // 任务创建终止时间,秒级时间戳
	CreateStartTime int64  `json:"create_start_time"` // 任务创建起始时间,秒级时间戳
	TaskCategory    int32  `json:"task_category"`     // 任务类别枚举
}

DouYinTaskBoxAgencyQueryAppTaskReq 查询小程序任务请求结构体

type DouYinTaskBoxAgencyQueryAppTaskRes

type DouYinTaskBoxAgencyQueryAppTaskRes struct {
	ErrNo  int    `json:"err_no"`
	ErrMsg string `json:"err_msg"`
	LogId  string `json:"log_id"`
	Data   struct {
		TaskIds []int64 `json:"task_ids"`
	} `json:"data"`
}

DouYinTaskBoxAgencyQueryAppTaskRes 查询小程序任务响应结构体

type DouYinTaskBoxAgencyQueryBillLinkRes

type DouYinTaskBoxAgencyQueryBillLinkRes struct {
	ErrNo  int64               `json:"err_no"`
	ErrMsg string              `json:"err_msg"`
	LogId  string              `json:"log_id"`
	Data   AgencyQueryBillLink `json:"data"`
}

type DouYinTaskBoxAgencyQueryTaskInfoReq

type DouYinTaskBoxAgencyQueryTaskInfoReq struct {
	Appid              string `json:"appid"`                // 小程序appid
	PageNo             int32  `json:"page_no"`              // 分页编号,从1开始
	PageSize           int32  `json:"page_size"`            // 分页大小
	QueryParamsContent string `json:"query_params_content"` // 查询参数内容
	QueryParamsType    int32  `json:"query_params_type"`    // 查询参数类型
	TaskCategory       int32  `json:"task_category"`        // 任务类别
}

DouYinTaskBoxAgencyQueryTaskInfoReq 查询任务信息请求结构体

type DouYinTaskBoxAgencyQueryTaskInfoRes

type DouYinTaskBoxAgencyQueryTaskInfoRes struct {
	ErrNo  int                 `json:"err_no"`
	ErrMsg string              `json:"err_msg"`
	LogId  string              `json:"log_id"`
	Data   AgencyQueryTaskInfo `json:"data"`
}

type DouYinTaskBoxAgencyQueryVideoSumRes

type DouYinTaskBoxAgencyQueryVideoSumRes struct {
	// LogId 日志ID,用于问题排查
	LogId string `json:"log_id"`
	// ErrNo 错误码
	ErrNo int `json:"err_no"`
	// ErrMsg 错误信息
	ErrMsg string `json:"err_msg"`
	// Data 业务数据主体
	Data struct {
		// Data 视频汇总数据列表
		Data []AgencyQueryVideoSum `json:"data"`
	} `json:"data"`
}

DouYinTaskBoxAgencyQueryVideoSumRes 查询视频汇总数据响应

type DouYinTaskBoxChangeUserBindAgentReq

type DouYinTaskBoxChangeUserBindAgentReq struct {
	// DouyinID 达人的抖音号
	DouyinID string `json:"douyin_id"`
	// NewAgentID 达人换绑的团长ID
	NewAgentID int64 `json:"new_agent_id"`
	// OldAgentID 达人当前绑定的团长ID
	OldAgentID int64 `json:"old_agent_id"`
}

DouYinTaskBoxChangeUserBindAgentReq 切换用户绑定团长请求参数

type DouYinTaskBoxChangeUserBindAgentRes

type DouYinTaskBoxChangeUserBindAgentRes struct {
	ErrNo  int    `json:"err_no"`
	ErrMsg string `json:"err_msg"`
	LogId  string `json:"log_id"`
}

type DouYinTaskBoxGenAgentLinkReq

type DouYinTaskBoxGenAgentLinkReq struct {
	// AgentID 团长ID
	AgentID int64 `json:"agent_id"`
	// AgencyTalentUID 开发者透传的达人uid
	AgencyTalentUID string `json:"agency_talent_uid,omitempty"`
	// AppID 小程序appid
	AppID string `json:"app_id,omitempty"`
	// TaskCategory 任务类别枚举
	TaskCategory int `json:"task_category,omitempty"`
	// TaskID 任务ID
	TaskID int64 `json:"task_id,omitempty"`
}

DouYinTaskBoxGenAgentLinkReq 生成代理链接请求参数

type DouYinTaskBoxGenAgentLinkRes

type DouYinTaskBoxGenAgentLinkRes struct {
	ErrNo  int    `json:"err_no"`
	ErrMsg string `json:"err_msg"`
	LogId  string `json:"log_id"`
	// Data 业务数据主体,包含具体的业务响应信息
	Data GenAgentLink `json:"data"`
}

DouYinTaskBoxGenAgentLinkRes 生成代理链接响应结果

type DouYinTaskBoxGetAgencyUserBindRecordReq

type DouYinTaskBoxGetAgencyUserBindRecordReq struct {
	// PageNo 页号
	PageNo int32 `json:"page_no"`
	// PageSize 页大小
	PageSize int32 `json:"page_size"`
	// AgencyTalentUID 机构侧达人uid
	AgencyTalentUID string `json:"agency_talent_uid,omitempty"`
	// AgentID 团长ID
	AgentID int64 `json:"agent_id,omitempty"`
	// DouyinID 达人抖音号
	DouyinID string `json:"douyin_id,omitempty"`
}

DouYinTaskBoxGetAgencyUserBindRecordReq 获取机构用户绑定记录请求参数

type DouYinTaskBoxGetAgencyUserBindRecordRes

type DouYinTaskBoxGetAgencyUserBindRecordRes struct {
	ErrNo  int    `json:"err_no"`
	ErrMsg string `json:"err_msg"`
	LogId  string `json:"log_id"`
	// Data 业务数据主体,包含具体的业务响应信息
	Data GetAgencyUserBindRecord `json:"data"`
}

DouYinTaskBoxGetAgencyUserBindRecordRes 获取机构用户绑定记录响应结果

type DouYinTaskBoxQueryAgencyVideoDailyDataReq

type DouYinTaskBoxQueryAgencyVideoDailyDataReq struct {
	BillingDate           string `json:"billing_date"`             // 计费日期
	PageNum               int32  `json:"page_num"`                 // 页号
	PageSize              int32  `json:"page_size"`                // 页大小,最大不能超过10000
	VideoPublishEndTime   int64  `json:"video_publish_end_time"`   // 最大的视频发布时间戳
	VideoPublishStartTime int64  `json:"video_publish_start_time"` // 视频发布的起始时间戳
	AgentID               int64  `json:"agent_id"`                 // 抖音侧团长ID
	AppID                 string `json:"app_id"`                   // 撮合中介合作的小程序appid
	DouYinID              string `json:"douyin_id"`                // 达人抖音号
}

DouYinTaskBoxQueryAgencyVideoDailyDataReq 查询视频每日数据请求结构体

type DouYinTaskBoxQueryAgencyVideoDailyDataRes

type DouYinTaskBoxQueryAgencyVideoDailyDataRes struct {
	ErrNo  int64  `json:"err_no"`
	ErrMsg string `json:"err_msg"`
	LogId  string `json:"log_id"`
	Data   struct {
		Results []QueryAgencyVideoDailyData `json:"results"`
	} `json:"data"`
}

type DouYinTaskBoxQueryAgencyVideoSumDataReq

type DouYinTaskBoxQueryAgencyVideoSumDataReq struct {
	PageNum               int32  `json:"page_num"`                 // 页号
	PageSize              int32  `json:"page_size"`                // 页大小,不能超过10000
	VideoPublishEndTime   int64  `json:"video_publish_end_time"`   // 视频发布的结束时间,秒级时间戳
	VideoPublishStartTime int64  `json:"video_publish_start_time"` // 视频发布的起始时间,秒级时间戳
	AgentID               int64  `json:"agent_id"`                 // 团长ID
	AppID                 string `json:"app_id"`                   // 机构合作小程序appid
	DouYinID              string `json:"douyin_id"`                // 抖音号
}

DouYinTaskBoxQueryAgencyVideoSumDataReq 查询视频任务汇总数据请求结构体

type DouYinTaskBoxQueryAgencyVideoSumDataRes

type DouYinTaskBoxQueryAgencyVideoSumDataRes struct {
	ErrNo  int    `json:"err_no"`
	ErrMsg string `json:"err_msg"`
	LogId  string `json:"log_id"`
	Data   struct {
		Results []QueryAgencyVideoSumData `json:"results"`
	} `json:"data"`
}

type DouYinTaskBoxQueryTaskVideoStatusReq

type DouYinTaskBoxQueryTaskVideoStatusReq struct {
	PageNum               int32  `json:"page_num"`                 // 页号
	PageSize              int32  `json:"page_size"`                // 页大小,最大不能超过100
	VideoPublishEndTime   int64  `json:"video_publish_end_time"`   // 最大的视频发布时间戳
	VideoPublishStartTime int64  `json:"video_publish_start_time"` // 视频发布的起始时间戳
	AgentID               int64  `json:"agent_id"`                 // 抖音侧团长ID
	AppID                 string `json:"app_id"`                   // 撮合中介合作的小程序appid
	DouYinID              string `json:"douyin_id"`                // 达人抖音号
}

DouYinTaskBoxQueryTaskVideoStatusReq 查询任务视频状态请求结构体

type DouYinTaskBoxQueryTaskVideoStatusRes

type DouYinTaskBoxQueryTaskVideoStatusRes struct {
	ErrNo  int    `json:"err_no"`
	ErrMsg string `json:"err_msg"`
	LogId  string `json:"log_id"`
	Data   struct {
		Results []QueryTaskVideoStatus `json:"results"`
	} `json:"data"`
}

type DouYinTaskBoxQueryViolateTalentListRes

type DouYinTaskBoxQueryViolateTalentListRes struct {
	LogId  string             `json:"log_id"`
	Data   QueryViolateTalent `json:"data"`
	ErrMsg string             `json:"err_msg"`
	ErrNo  int                `json:"err_no"`
}

DouYinTaskBoxQueryViolateTalentListRes 查询违规达人列表响应结果

type DouYinTaskBoxSaveAgentReq

type DouYinTaskBoxSaveAgentReq struct {
	// AgentID 团长ID
	// 创建团长时,agent_id不传或传0
	// 修改团长信息时,传入待修改团长的agent_id
	AgentID int64 `json:"agent_id,omitempty"`
	// AgentNickname 团长的昵称,全局唯一
	AgentNickname string `json:"agent_nickname"`
}

DouYinTaskBoxSaveAgentReq 保存团长信息请求参数

type DouYinTaskBoxSaveAgentRes

type DouYinTaskBoxSaveAgentRes struct {
	ErrNo  int       `json:"err_no"`
	ErrMsg string    `json:"err_msg"`
	LogId  string    `json:"log_id"`
	Data   SaveAgent `json:"data"`
}

DouYinTaskBoxSaveAgentRes 保存团长信息响应结果

type GenAgentLink struct {
	// WebLink 网页链接
	WebLink string `json:"web_link"`
	// AppLink 小程序链接
	AppLink string `json:"app_link"`
}

GenAgentLink 生成代理链接响应结果

type GetAgencyUserBindRecord

type GetAgencyUserBindRecord struct {
	Results    []BindResult `json:"results"`
	TotalCount int          `json:"total_count"`
}

GetAgencyUserBindRecord 获取机构用户绑定记录响应结果

type OrientedTalentRel

type OrientedTalentRel struct {
	CooperationState int    `json:"cooperation_state"`
	DouYinId         string `json:"douyin_id"`
	CancelOperator   int    `json:"cancel_operator,omitempty"`
}

type QueryAgencyVideoDailyData

type QueryAgencyVideoDailyData struct {
	BillingGmv1D       int    `json:"billing_gmv_1d"`
	TalentProfit1D     int    `json:"talent_profit_1d"`
	ActiveCnt1D        int    `json:"active_cnt_1d"`
	Author             string `json:"author"`
	Gmv1D              int    `json:"gmv_1d"`
	RefundGmv1D        int    `json:"refund_gmv_1d"`
	VideoTitle         string `json:"video_title"`
	VideoId            int64  `json:"video_id"`
	DouYinId           string `json:"douyin_id"`
	VideoLink          string `json:"video_link"`
	AdShareCost1D      int    `json:"ad_share_cost_1d"`
	BillingRefundGmv1D int    `json:"billing_refund_gmv_1d"`
	TaskName           string `json:"task_name"`
	Date               string `json:"date"`
	PublishTime        int    `json:"publish_time"`
	FeedAdShareCost1D  int    `json:"feed_ad_share_cost_1d"`
	TaskId             int64  `json:"task_id"`
	MicroAppTitle      string `json:"micro_app_title"`
	AgentId            string `json:"agent_id"`
}

type QueryAgencyVideoSumData

type QueryAgencyVideoSumData struct {
	VideoId            int64  `json:"video_id"`
	Author             string `json:"author"`
	Comments           int    `json:"comments"`
	FeedAdShareCostTd  int    `json:"feed_ad_share_cost_td"`
	VideoLink          string `json:"video_link"`
	Shares             int    `json:"shares"`
	MicroAppTitle      string `json:"micro_app_title"`
	PublishTime        int    `json:"publish_time"`
	AgentId            string `json:"agent_id"`
	ActiveCntTd        int    `json:"active_cnt_td"`
	RefundGmvTd        int    `json:"refund_gmv_td"`
	AdShareCostTd      int    `json:"ad_share_cost_td"`
	Likes              int    `json:"likes"`
	BillingRefundGmvTd int    `json:"billing_refund_gmv_td"`
	VideoTitle         string `json:"video_title"`
	TaskName           string `json:"task_name"`
	GmvTd              int    `json:"gmv_td"`
	TalentProfitTd     int    `json:"talent_profit_td"`
	DouYinId           string `json:"douyin_id"`
	Clicks             int    `json:"clicks"`
	Date               string `json:"date"`
	BillingGmvTd       int    `json:"billing_gmv_td"`
	TaskId             int64  `json:"task_id"`
	VideoViews         int    `json:"video_views"`
}

type QueryTaskVideoStatus

type QueryTaskVideoStatus struct {
	VideoId     int `json:"VideoId"`
	VideoStatus int `json:"VideoStatus"`
}

type QueryViolateTalent

type QueryViolateTalent struct {
	ViolateTalentsURL string `json:"ViolateTalentsURL"`
}

QueryViolateTalent 数据结构体

type SaveAgent

type SaveAgent struct {
	AgentId int64 `json:"agent_id"`
}

SaveAgent 保存团长信息响应结果

type Task

type Task struct {
	AnchorTitle           string              `json:"anchor_title"`
	Appid                 string              `json:"appid"`
	PaymentAllocateRatio  int                 `json:"payment_allocate_ratio"`
	PlatformAddressApp    string              `json:"platform_address_app"`
	PlatformAddressWeb    string              `json:"platform_address_web"`
	ReferMaCaptures       []string            `json:"refer_ma_captures"`
	ReferVideoCaptures    []string            `json:"refer_video_captures"`
	RejectReason          string              `json:"reject_reason"`
	StartPage             string              `json:"start_page"`
	Status                int                 `json:"status"`
	TaskDesc              string              `json:"task_desc"`
	TaskEndTime           int                 `json:"task_end_time"`
	TaskIcon              string              `json:"task_icon"`
	TaskId                int64               `json:"task_id"`
	TaskName              string              `json:"task_name"`
	TaskRefundPeriod      int                 `json:"task_refund_period"`
	TaskSettleType        int                 `json:"task_settle_type"`
	TaskStartTime         int                 `json:"task_start_time"`
	TaskTags              []string            `json:"task_tags"`
	TaskType              int                 `json:"task_type"`
	OrientedTalentRelList []OrientedTalentRel `json:"oriented_talent_rel_list"`
}

Jump to

Keyboard shortcuts

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