Documentation ¶
Overview ¶
Package advertiser 账号服务相关API models
Index ¶
- type AdQualification
- type AttachmentUploadRequest
- type AttachmentUploadResponse
- type AvatarGetRequest
- type AvatarGetResponse
- type AvatarGetResponseData
- type AvatarInfo
- type BaseQualification
- type BudgetGetRequest
- type BudgetGetResponse
- type BudgetGetResponseData
- type BudgetGetResponseList
- type DeliveryQualification
- type DeliveryQualificationImage
- type DeliveryQualificationListData
- type DeliveryQualificationListRequest
- type DeliveryQualificationListResponse
- type DeliveryQualificationSubmitRequest
- type DeliverySubmitQualification
- type FundDailyStatRequest
- type FundDailyStatResponse
- type FundDailyStatResponseData
- type FundDailyStatResponseList
- type FundGetRequest
- type FundGetResponse
- type FundGetResponseData
- type FundTransactionGetRequest
- type FundTransactionGetResponse
- type FundTransactionGetResponseData
- type FundTransactionGetResponseList
- type Image
- type Info
- type InfoRequest
- type InfoResponse
- type PublicInfo
- type PublicInfoRequest
- type PublicInfoResponse
- type Qualification
- type QualificationCreateRequest
- type QualificationForCreate
- type QualificationGetRequest
- type QualificationGetResponse
- type QualificationIndustry
- type QualificationPromotion
- type QualificationSelectRequest
- type QualificationSelectResponse
- type QualificationSubject
- type QualificationSubmitRequest
- type TransferableFund
- type TransferableFundGetRequest
- type TransferableFundGetResponse
- type UpdateBudgetRequest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AdQualification ¶ added in v1.9.11
type AdQualification struct { // QualificationID 资质id QualificationID uint64 `json:"qualification_id,omitempty"` // QualificationType 投放资质类型 // 1:肖像、商标或其他授权 // 2: 专利证明 // 3: 商标证 // 4: 广告内容中的数据证明 // 5: 质检报告 QualificationType int `json:"qualification_type,omitempty"` // PicturePreviewURL 投放资质预览url PicturePreviewURL string `json:"picture_preview_url,omitempty"` // Status 状态 // 0: 待提交 // 1: 待审核 // 2: 审核中 // 3: 审核通过 // 4: 审核拒绝 Status int `json:"status,omitempty"` // RejectReason 审核原因 RejectReason string `json:"reject_reason,omitempty"` // AuditTime 审核时间,形如 yyyy-MM-dd HH:mm:ss AuditTime string `json:"audit_time,omitempty"` // ImageList 资质图片列表 ImageList []Image `json:"image_list,omitempty"` }
AdQualification 投放资质
type AttachmentUploadRequest ¶ added in v1.11.0
type AttachmentUploadRequest struct { // AdvertiserID 广告主ID AdvertiserID uint64 `json:"advertiser_id,omitempty"` // ImageData 图片数据 // 上传格式支持jpg、 jpeg、 png、 webp、 awebp、heic、gif、tiff、ico、svg、bmp,大小10M内 ImageData io.Reader `json:"image_data,omitempty"` // Filename 文件名 Filename string `json:"filename,omitempty"` // AttachmentType 可选值: // DELIVERY_ATTACHMENT: 投放资质附件 AttachmentType enum.AttachmentType `json:"attachment_type,omitempty"` }
AttachmentUploadRequest 批量上传资质附件 API Request
func (AttachmentUploadRequest) Encode ¶ added in v1.11.0
func (r AttachmentUploadRequest) Encode() []model.UploadField
Encode implement UploadReqeust interface
type AttachmentUploadResponse ¶ added in v1.11.0
type AttachmentUploadResponse struct { model.BaseResponse Data struct { // AttachmentID 附件id AttachmentID uint64 `json:"attachment_id,omitempty"` } `json:"data,omitempty"` }
AttachmentUploadResponse 批量上传资质附件 API Response
type AvatarGetRequest ¶
type AvatarGetRequest struct { // AdvertiserID 广告主ID AdvertiserID uint64 `json:"advertiser_id,omitempty"` }
AvatarGetRequest 获取广告主头像信息 API Request
func (AvatarGetRequest) Encode ¶
func (r AvatarGetRequest) Encode() string
Encode implement GetRequest interface
type AvatarGetResponse ¶
type AvatarGetResponse struct { model.BaseResponse // Data json返回值 Data *AvatarGetResponseData `json:"data,omitempty"` }
AvatarGetResponse 获取广告主头像信息 API Response
type AvatarGetResponseData ¶
type AvatarGetResponseData struct { // AdvertiserID 广告主id AdvertiserID uint64 `json:"advertiser_id,omitempty"` // AvatarStatus 头像审核状态 0-未设置,1-审核中,2-审核被拒,3-审核通过 AvatarStatus int `json:"avatar_status,omitempty"` // AvatarReason 头像被拒原因 AvatarReason string `json:"avatar_reason,omitempty"` // SourceStatus 品牌审核状态 0-未设置,1-审核中,2-审核被拒,3-审核通过, SourceStatus int `json:"source_status,omitempty"` // SourceReason 品牌信息被拒原因 SourceReason string `json:"source_reason,omitempty"` // AvatarInfo 头像信息 AvatarInfo *AvatarInfo `json:"avatar_info,omitempty"` }
AvatarGetResponseData 获取广告主头像信息json返回值
type AvatarInfo ¶
type AvatarInfo struct { // WebUri 当前头像的uri WebUri string `json:"web_uri,omitempty"` // AuditWebUri 审核中头像的uri AuditWebUri string `json:"audit_web_uri,omitempty"` // Height 审核中头像的高度 Height int `json:"height,omitempty"` // Width 审核中头像的宽度 Width int `json:"width,omitempty"` }
AvatarInfo 头像信息
type BaseQualification ¶ added in v1.9.11
type BaseQualification struct { // QualificationID 资质id QualificationID uint64 `json:"qualification_id,omitempty"` // AttachmentID 资质图片附件id AttachmentID string `json:"attachment_id,omitempty"` // PictureURL 资质图片地址 PictureURL string `json:"picture_url,omitempty"` // Status 状态,枚举值:STATUS_NOT_SUBMIT 未提交、STATUS_WAIT_CONFIRM 待审核、STATUS_PENDING_CONFIRM 审核中、STATUS_CONFIRM 审核通过、STATUS_CONFIRM_FAIL 审核不通过 Status enum.QualificationStatus `json:"status,omitempty"` // RejectReason 拒绝理由 RejectReason string `json:"reject_reason,omitempty"` }
BaseQualification 资质基本信息
type BudgetGetRequest ¶
type BudgetGetRequest struct { // AdvertiserIDs 广告主ID集合(如果包含没有访问权限的ID,将返回no permission error) 取值范围: 1-100 AdvertiserIDs []uint64 `json:"advertiser_ids,omitempty"` }
BudgetGetRequest 获取账户日预算 API Request
func (BudgetGetRequest) Encode ¶
func (r BudgetGetRequest) Encode() string
Encode implement GetRequest interface
type BudgetGetResponse ¶
type BudgetGetResponse struct { model.BaseResponse // Data json返回值 Data *BudgetGetResponseData `json:"data,omitempty"` }
BudgetGetResponse 获取账户日预算 API Response
type BudgetGetResponseData ¶
type BudgetGetResponseData struct { // List 返回值列表 List []BudgetGetResponseList `json:"list,omitempty"` }
BudgetGetResponseData json返回值
type BudgetGetResponseList ¶
type BudgetGetResponseList struct { // AdvertiserID 广告主ID AdvertiserID uint64 `json:"advertiser_id,omitempty"` // Budget 预算,单位:元; 精度:小数点后两位;举例:100.01。当预算类型为不限,返回的预算为0.0 Budget float64 `json:"budget,omitempty"` // BudgetMode 预算类型 BudgetMode enum.BudgetMode `json:"budget_mode,omitempty"` }
BudgetGetResponseList 返回值列表
type DeliveryQualification ¶ added in v1.11.0
type DeliveryQualification struct { // QualificationID QualificationID uint64 `json:"qualification_id,omitempty"` // QualificationType 投放资质类型 QualificationType enum.DeliveryQualificationType `json:"qualification_type,omitempty"` // Status 投放资质状态 Status enum.DeliveryQualificationStatus `json:"status,omitempty"` // RejectReason RejectReason string `json:"reject_reason,omitempty"` // AuditTime string AuditTime string `json:"audit_time,omitempty"` // Images Images []DeliveryQualificationImage `json:"images,omitempty"` }
DeliveryQualification 投放资质
type DeliveryQualificationImage ¶ added in v1.11.0
type DeliveryQualificationListData ¶ added in v1.11.0
type DeliveryQualificationListData struct { model.PageInfo // List 投放资质列表 List []DeliveryQualification `json:"list,omitempty"` }
type DeliveryQualificationListRequest ¶ added in v1.11.0
type DeliveryQualificationListRequest struct { // AdvertiserID 广告主id AdvertiserID uint64 `json:"advertiser_id,omitempty"` // QualificationType 投放资质类型 QualificationType enum.DeliveryQualificationType `json:"qualification_type,omitempty"` // Status 投放资质状态 Status enum.DeliveryQualificationStatus `json:"status,omitempty"` // Page 页数默认值:1,page范围为[1,1000] Page int `json:"page,omitempty"` // PageSize 页面大小默认值:10,page_size范围为[1,100] PageSize int `json:"page_size,omitempty"` }
DeliveryQualificationListRequest 投放资质查询
func (DeliveryQualificationListRequest) Encode ¶ added in v1.11.0
func (r DeliveryQualificationListRequest) Encode() string
Encode implement GetRequest interface
type DeliveryQualificationListResponse ¶ added in v1.11.0
type DeliveryQualificationListResponse struct { model.BaseResponse Data *DeliveryQualificationListData `json:"data,omitempty"` }
type DeliveryQualificationSubmitRequest ¶ added in v1.11.0
type DeliveryQualificationSubmitRequest struct { // AdvertiserID 广告主id AdvertiserID uint64 `json:"advertiser_id,omitempty"` // Qualifications Qualifications []DeliverySubmitQualification `json:"qualifications,omitempty"` }
DeliveryQualificationSubmitRequest 投放资质提交 API Request
func (DeliveryQualificationSubmitRequest) Encode ¶ added in v1.11.0
func (r DeliveryQualificationSubmitRequest) Encode() []byte
Encode implement PostRequest interface
type DeliverySubmitQualification ¶ added in v1.11.0
type DeliverySubmitQualification struct { // QualificationType QualificaitonType enum.DeliveryQualificationType `json:"qualification_type,omitempty"` // AttachmentIDs 附件ids,通过【批量上传资质附件】接口获取 AttachmentIDs []uint64 `json:"attachment_ids,omitempty"` }
DeliverySubmitQualification
type FundDailyStatRequest ¶
type FundDailyStatRequest struct { // AdvertiserID 广告主ID AdvertiserID uint64 `json:"advertiser_id,omitempty"` // StartDate 开始时间,格式YYYY-MM-DD,默认当前年份的1月1日 StartDate time.Time `json:"start_date,omitempty"` // EndDate 结束时间,格式YYYY-MM-DD,默认为今天 EndDate time.Time `json:"end_date,omitempty"` // Page 页码. 默认值: 1 Page int `json:"page,omitempty"` // PageSize 页面数据量. 默认值: 10 PageSize int `json:"page_size,omitempty"` }
FundDailyStatRequest 查询账户日流水 API Request
func (FundDailyStatRequest) Encode ¶
func (r FundDailyStatRequest) Encode() string
Encode implement GetRequest interface
type FundDailyStatResponse ¶
type FundDailyStatResponse struct { model.BaseResponse // Date json返回值 Data *FundDailyStatResponseData `json:"data,omitempty"` }
FundDailyStatResponse 查询账户日流水 API Response
type FundDailyStatResponseData ¶
type FundDailyStatResponseData struct { // List list List []FundDailyStatResponseList `json:"list,omitempty"` // PageInfo 分页信息 PageInfo *model.PageInfo `json:"page_info,omitempty"` }
FundDailyStatResponseData json返回值
type FundDailyStatResponseList ¶
type FundDailyStatResponseList struct { // AdvertiserID 广告主ID AdvertiserID uint64 `json:"advertiser_id,omitempty"` // Date 日期 Date string `json:"date,omitempty"` // Balance 日终结余(单位元) Balance float64 `json:"balance,omitempty"` // CashCost 现金支出(单位元) CashCost float64 `json:"cash_cost,omitempty"` // Cost 总支出(单位元) Cost float64 `json:"cost,omitempty"` // Frozen 冻结(单位元) Frozen float64 `json:"frozen,omitempty"` // Income 总存入(单位元) Income float64 `json:"income,omitempty"` // RewardCost 赠款支出(单位元) RewardCost float64 `json:"reward_cost,omitempty"` // ReturnGoodsCost 返货支出(单位元) ReturnGoodsCost float64 `json:"return_goods_cost,omitempty"` // TransferIn 总转入(单位元) TransferIn float64 `json:"transfer_in,omitempty"` // TransferOut 总转出(单位元) TransferOut float64 `json:"transfer_out,omitempty"` // CompanyWalletCost 账户消耗的子钱包的共享余额(单位元) CompanyWalletCost float64 `json:"company_wallet_cost,omitempty"` }
FundDailyStatResponseList 广告主流水
type FundGetRequest ¶
type FundGetRequest struct { // AdvertiserID 广告主ID或代理商ID AdvertiserID uint64 `json:"advertiser_id,omitempty"` // GrantTypeSplit 是否拆分赠款类型,允许值: // 开启 ON ,关闭 OFF(默认) GrantTypeSplit string `json:"grant_type_split,omitempty"` }
FundGetRequest 查询账号余额 API Request
func (FundGetRequest) Encode ¶
func (r FundGetRequest) Encode() string
Encode implement GetRequest interface
type FundGetResponse ¶
type FundGetResponse struct { model.BaseResponse // Data json返回值 Data *FundGetResponseData `json:"data,omitempty"` }
FundGetResponse 查询账号余额 API Response
type FundGetResponseData ¶
type FundGetResponseData struct { // AdvertiserID 广告主ID或代理商ID AdvertiserID uint64 `json:"advertiser_id,omitempty"` // Name 账户名 Name string `json:"name,omitempty"` // Email 联系邮箱 Email string `json:"email,omitempty"` // Balance 账户总余额(单位元) Balance float64 `json:"balance,omitempty"` // ValidBalance 账户可用总余额(单位元) ValidBalance float64 `json:"valid_balance,omitempty"` // Cash 现金余额(单位元) Cash float64 `json:"cash,omitempty"` // ValidCash 现金可用余额(单位元) ValidCash float64 `json:"valid_cash,omitempty"` // Grant 赠款余额(单位元) Grant float64 `json:"grant,omitempty"` // DefaultGrant 默认广告位可用赠款余额(单位元) DefaultGrant float64 `json:"default_grant,omitempty"` // CommonGrant 通用广告位可用赠款余额(单位元) CommonGrant float64 `json:"common_grant,omitempty"` // SearchGrant 搜索广告位可用赠款余额(单位元) SearchGrant float64 `json:"search_grant,omitempty"` // UnionGrant 穿山甲广告位可用赠款余额(单位元) UnionGrant float64 `json:"union_grant,omitempty"` // ValidGrant 赠款可用余额(单位元) ValidGrant float64 `json:"valid_grant,omitempty"` // ReturnGoodsAbs 返货余额(单位元),仅支持部分广告主 ReturnGoodsAbs float64 `json:"return_goods_abs,omitempty"` // ValidReturnGoodsAbs 返货可用余额(单位元),仅支持部分广告主 ValidReturnGoodsAbs float64 `json:"valid_return_goods_abs,omitempty"` // ReturnGoodsCost 返货支出(单位元),仅支持部分广告主 ReturnGoodsCost float64 `json:"return_goods_cost,omitempty"` // ReturnGoodsGrant 返货赠款 ReturnGoodsGrant float64 `json:"return_goods_grant,omitempty"` // CompensationGrant 赔付赠款 CompensationGrant float64 `json:"compensation_grant,omitempty"` // ReturnGoodsValidGrant 返货可用赠款 ReturnGoodsValidGrant float64 `json:"return_goods_valid_grant,omitempty"` // CompensationValidGrant 赔付可用赠款 CompensationValidGrant float64 `json:"compensation_valid_grant,omitempty"` // WalletID 钱包id(广告主账户绑定的共享子钱包id) WalletID model.Uint64 `json:"wallet_id,omitempty"` // WalletName 钱包名称(广告主账户绑定的共享子钱包名称) WalletName string `json:"wallet_name,omitempty"` // WalletTotalBalanceValid 账户绑定的子钱包的可用共享余额(单位元) WalletTotalBalanceValid float64 `json:"wallet_total_balance_valid,omitempty"` }
FundGetResponseData 账号余额
type FundTransactionGetRequest ¶
type FundTransactionGetRequest struct { // AdvertiserID 广告主ID AdvertiserID uint64 `json:"advertiser_id,omitempty"` // StartDate 开始时间,格式YYYY-MM-DD,默认当前年份的1月1日 StartDate time.Time `json:"start_date,omitempty"` // EndDate 结束时间,格式YYYY-MM-DD,默认为今天 EndDate time.Time `json:"end_date,omitempty"` // TransactionType 流水类型 TransactionType enum.TransactionType `json:"transaction_type,omitempty"` // Page 页码. 默认值: 1 Page int `json:"page,omitempty"` // PageSize 页面数据量. 默认值: 10 PageSize int `json:"page_size,omitempty"` }
FundTransactionGetRequest 查询账号流水明细 API Request
func (FundTransactionGetRequest) Encode ¶
func (r FundTransactionGetRequest) Encode() string
Encode implement GetRequest interface
type FundTransactionGetResponse ¶
type FundTransactionGetResponse struct { model.BaseResponse // Data json返回值 Data *FundTransactionGetResponseData `json:"data,omitempty"` }
FundTransactionGetResponse 查询账号流水明细 API Response
type FundTransactionGetResponseData ¶
type FundTransactionGetResponseData struct { // List 明细list List []FundTransactionGetResponseList `json:"list,omitempty"` }
FundTransactionGetResponseData json返回值
type FundTransactionGetResponseList ¶
type FundTransactionGetResponseList struct { // AdvertiserID 广告主ID AdvertiserID uint64 `json:"advertiser_id,omitempty"` // TransactionType 流水类型 TransactionType enum.TransactionType `json:"transaction_type,omitempty"` // CreateTime 流水产生时间 CreateTime string `json:"create_time,omitempty"` // Amount 交易总金额(单位元) Amount float64 `json:"amount,omitempty"` // Cash 现金总金额(单位元) Cash float64 `json:"cash,omitempty"` // Frozen 冻结(单位元) Frozen float64 `json:"frozen,omitempty"` // Grant 赠款总金额(单位元) Grant float64 `json:"grant,omitempty"` // ReturnGoods 返货总金额(单位元) ReturnGoods float64 `json:"return_goods,omitempty"` // TransactionSeq 交易流水号 TransactionSeq uint64 `json:"transaction_seq,omitempty"` // Remitter 付款方,即广告主id。 Remitter uint64 `json:"remitter,omitempty"` // Payee 收款方,即广告主id。 Payee uint64 `json:"payee,omitempty"` // Dealbase 返点 Dealbase float64 `json:"dealbase,omitempty"` }
FundTransactionGetResponseList 明细
type Image ¶ added in v1.9.11
type Image struct { // AttachmentID 附件id AttachmentID uint64 `json:"attachment_id,omitempty"` // ImageURL 图片预览地址 ImageURL string `json:"image_url,omitempty"` }
Image 图片信息
type Info ¶
type Info struct { // ID 广告主ID ID uint64 `json:"id,omitempty"` // Name 账户名 Name string `json:"name,omitempty"` // Description 品牌描述,即推广内容 Description string `json:"description,omitempty"` // Email 联系邮箱 Email string `json:"email,omitempty"` // Contacter 联系人 Contacter string `json:"contacter,omitempty"` // Phonenumber 手机号码 Phonenumber string `json:"phonenumber,omitempty"` // Address 固定电话 Address string `json:"address,omitempty"` // LiscenseUrl 执照预览地址(链接默认1小时内有效) LicenseUrl string `json:"license_url,omitempty"` // LicenseNo 执照编号 LicenseNo string `json:"license_no,omitempty"` // LicenseProvice 执照省份 LicenseProvince string `json:"license_province,omitempty"` // LicenseCity 执照城市 LicenseCity string `json:"license_city,omitempty"` // Company 公司名 Company string `json:"company,omitempty"` // Brand 经营类别 Brand string `json:"brand,omitempty"` // Role 角色 Role enum.AdvertiserRole `json:"role,omitempty"` // Status 状态 Status enum.AdvertiserStatus `json:"status,omitempty"` // PromotionArea 运营区域 PromotionArea string `json:"promotion_area,omitempty"` // PromotionCenterProvince 运营省份 PromotionCenterProvince string `json:"promotion_center_province,omitempty"` // PromotionCenterCity 运营城市 PromotionCenterCity string `json:"promotion_center_city,omitempty"` // FirstIndustryName 一级行业名称(新版) FirstIndustryName string `json:"first_industry_name,omitempty"` // SecondIndustryName 二级行业名称(新版) SecondIndustryName string `json:"second_industry_name,omitempty"` // Reason 审核拒绝原因 Reason string `json:"reason,omitempty"` // CreateTime 创建时间 CreateTime string `json:"create_time,omitempty"` }
Info 广告主信息
type InfoRequest ¶
type InfoRequest struct { // AdvertiserIDs 广告主ID集合(如果包含没有访问权限的ID,将返回no permission error) 取值范围: 1-100 AdvertiserIDs []uint64 `json:"advertiser_ids,omitempty"` // Fields 查询字段集合, 默认:查询所有。字段详见下方response字段定义 .允许值: "id", "name","description", "email", "contacter", "phonenumber", "role", "status", "telephone", "address", "reason", "license_url", "license_no", "license_province", "license_city", "company", "brand", "promotion_area", "promotion_center_province", "promotion_center_city", "industry", "balance", "create_time" Fields []string `json:"fields,omitempty"` }
InfoRequest 广告主信息 API Request
func (InfoRequest) Encode ¶
func (r InfoRequest) Encode() string
Encode implement GetRequest interface
type InfoResponse ¶
type InfoResponse struct { model.BaseResponse // Data json返回值 Data []Info `json:"data,omitempty"` }
InfoResponse 广告主信息 API Response
type PublicInfo ¶
type PublicInfo struct { // ID 广告主ID ID uint64 `json:"id,omitempty"` // Name 账户名 Name string `json:"name,omitempty"` // Company 公司名 Company string `json:"company,omitempty"` // FirstIndustryName 一级行业名 FirstIndustryName string `json:"first_industry_name,omitempty"` // SecondIndustryName 二级行业名 SecondIndustryName string `json:"second_industry_name,omitempty"` }
PublicInfo 广告主公开信息
type PublicInfoRequest ¶
type PublicInfoRequest struct { // AdvertiserIDs 广告主ID集合(如果包含没有访问权限的ID,将返回no permission error) 取值范围: 1-100 AdvertiserIDs []uint64 `json:"advertiser_ids,omitempty"` }
PublicInfoRequest 广告主公开信息 API Request
func (PublicInfoRequest) Encode ¶
func (r PublicInfoRequest) Encode() string
Encode implement GetRequest interface
type PublicInfoResponse ¶
type PublicInfoResponse struct { model.BaseResponse // Data json返回值 Data []PublicInfo `json:"data,omitempty"` }
PublicInfoResponse 广告主公开信息 API Response
type Qualification ¶ added in v1.9.11
type Qualification struct { // AdvertiserID 广告主ID AdvertiserID uint64 `json:"advertiser_id,omitempty"` // Status 状态,枚举值:STATUS_NOT_SUBMIT 未提交、STATUS_WAIT_CONFIRM 待审核、STATUS_PENDING_CONFIRM 审核中、STATUS_CONFIRM 审核通过、STATUS_CONFIRM_FAIL 审核不通过 Status enum.QualificationStatus `json:"status,omitempty"` // RejectReason 拒绝理由 RejectReason string `json:"reject_reason,omitempty"` // Subject 主体资质 Subject *QualificationSubject `json:"subject,omitempty"` // Industries 行业资质 Industries []QualificationIndustry `json:"industries,omitempty"` }
Qualification 广告主资质
type QualificationCreateRequest ¶ added in v1.9.11
type QualificationCreateRequest struct { // AdvertiserID 广告主ID AdvertiserID uint64 `json:"advertiser_id,omitempty"` // QualificationType 资质类型,详见【附录-资质类型】.允许值: "QUALIFICATION_AD" QualificationType enum.QualificationType `json:"qualification_type"` // Qualifications 资质列表 min>=1 && max<=50 Qualifications []QualificationForCreate `json:"qualifications,omitempty"` }
QualificationCreateRequest 批量上传投放资质 API Request
func (QualificationCreateRequest) Encode ¶ added in v1.9.11
func (r QualificationCreateRequest) Encode() []byte
Encode implement PostRequest interface
type QualificationForCreate ¶ added in v1.9.11
type QualificationForCreate struct { // QualificationImgID 资质图片id,通过【上传广告主图片】获得(需指定 upload_to 为 AD) QualificationImgID string `json:"qualification_img_id,omitempty"` // AdQualificationType 资质图片类型 // AUTHORIZATION 肖像、商标或其他授权 // CERTIFY 专利证明 // TRADEMARK_CERT 商标证 // AD_DATA_CERT 广告内容中的数据证明 // INSPECT_REPORT 质检报告 AdQualificationType enum.AdQualificationType `json:"ad_qualification_type,omitempty"` }
type QualificationGetRequest ¶ added in v1.9.11
type QualificationGetRequest struct { // AdvertiserID 广告主ID AdvertiserID uint64 `json:"advertiser_id,omitempty"` }
QualificationGetRequest 获取广告主资质(新版) API Request
func (QualificationGetRequest) Encode ¶ added in v1.9.11
func (r QualificationGetRequest) Encode() string
Encode implement GetRequest interface
type QualificationGetResponse ¶ added in v1.9.11
type QualificationGetResponse struct { model.BaseResponse // Data 返回数据 Data *Qualification `json:"data,omitempty"` }
QualificationGetResponse 获取广告主资质(新版) API Response
type QualificationIndustry ¶ added in v1.9.11
type QualificationIndustry struct { // IndustryID 行业id IndustryID uint64 `json:"industry_id,omitempty"` // Industry1ID 一级行业ID Industry1ID uint64 `json:"industry1_id,omitempty"` // Industry1Name 一级行业名称 Industry1Name string `json:"industry1_name,omitempty"` // Industry2ID 二级行业ID Industry2ID uint64 `json:"industry2_id,omitempty"` // Industry2Name 二级行业名称 Industry2Name string `json:"industry2_name,omitempty"` // Industry3ID 三级行业ID Industry3ID uint64 `json:"industry3_id,omitempty"` // Industry3Name 三级行业名称 Industry3Name string `json:"industry3_name,omitempty"` // Promotion 推广资质 Promotion *QualificationPromotion `json:"promotion,omitempty"` // Others 开户资质列表 Others []BaseQualification `json:"others,omitempty"` // IsHistory 是否是历史的补充资质及推广资质,如果是,则行业相关字段无值,重新提交时需归档到具体行业下 IsHistory bool `json:"is_history,omitempty"` }
QualificationIndustry 行业资质
type QualificationPromotion ¶ added in v1.9.11
type QualificationPromotion struct { BaseQualification // Content 推广内容 Content string `json:"content,omitempty"` }
QualificationPromotion 推广资质
type QualificationSelectRequest ¶ added in v1.9.11
type QualificationSelectRequest struct { // AdvertiserID 广告主ID AdvertiserID uint64 `json:"advertiser_id,omitempty"` }
QualificationSelectRequest 获取投放资质信息(新版) API Request
func (QualificationSelectRequest) Encode ¶ added in v1.9.11
func (r QualificationSelectRequest) Encode() string
Encode implement GetRequest interface
type QualificationSelectResponse ¶ added in v1.9.11
type QualificationSelectResponse struct { model.BaseResponse // Data json返回值 Data struct { // List 资质列表 List []AdQualification `json:"list,omitempty"` } `json:"data,omitempty"` }
QualificationSelectResponse 获取投放资质信息(新版)
type QualificationSubject ¶ added in v1.9.11
type QualificationSubject struct { BaseQualification // CompanyName 公司名称 CompanyName string `json:"company_name,omitempty"` // CompanyType 公司类型,枚举值: // COMPANY 企业、INDIVIDUAL 个人 CompanyType string `json:"company_type,omitempty"` // CheckType 对公验证类型,枚举值: // COMPANY 企业、GOVERNMENT 政府组织机构/事业单位、HK_MACAO_TAIWAN 港澳台、INDIVIDUAL 个人、OTHERS 其他机构(如民办机构)、OVERSEA 海外、SELF_EMPLOY 个体工商户 CheckType string `json:"check_type,omitempty"` // QualificationType 资质类型,枚举值: // ASSOCIATION_REGISTER_CODE 社会团体法人登记证书编号 // COMMERCIAL_REGISTER_NUMBER 商业登记证号码 // COMPANY_CREDIT_CODE 企业营业执照统一社会信用代码 // COMPANY_REGISTER_CODE 企业营业执照注册号 // CREDIT_CODE 统一社会信用代码证书编号 // HK_MACAO_TAIWAN_ID 港澳/台湾居民往来大陆通行证证件号码 // HK_REGISTER_CODE 香港公司注册证书编号 // ID 身份证号 // INDIVIDUAL_CREDIT_CODE 个体工商户营业执照统一社会信用代码 // INDIVIDUAL_REGISTER_CODE 个体工商户营业执照注册号 // LAWYER_CERTIFICATE_NUMBER 律师执业证书执业证号 // LAWYER_PERMIT_CODE 律师事务所执业许可证编号 // LEGAL_PERSON_CREDIT_CODE 事业单位法人证书统一社会信用代码 // ORGANIZATION_REGISTER_CODE 组织机构代码证代号 // OTHER 其他编号 // OVERSEA_REGISTER_CODE 外国(地区)企业常驻代表机构登记证编号 // PASSPORT_ID 护照号 // SCHOOL_PERMIT_CODE 民办学校办学许可证编号 // SOCIAL_REGISTER_CODE 民办非企业单位登记证书编号 QualificationType string `json:"qualification_type,omitempty"` // QualificationCode 资质编号 QualificationCode string `json:"qualification_code,omitempty"` // RegisteredNationName 注册国家 RegisteredNationName string `json:"registered_nation_name,omitempty"` // RegisteredProvinceName 注册省份 RegisteredProvinceName string `json:"registered_province_name,omitempty"` // RegisteredCityName 注册城市 RegisteredCityName string `json:"registered_city_name,omitempty"` // HasEffectiveDate 是否有有效日期 HasEffectiveDate bool `json:"has_effective_date,omitempty"` // EffectiveDate 过期时间,格式yyyy-mm-dd EffectiveDate string `json:"effective_date,omitempty"` // ProprietorName 法人 ProprietorName string `json:"proprietor_name,omitempty"` // Address 详细地址 Address string `json:"address,omitempty"` }
QualificationSubject 主体资质
type QualificationSubmitRequest ¶ added in v1.9.11
type QualificationSubmitRequest struct { // AdvertiserID 广告主ID AdvertiserID uint64 `json:"advertiser_id,omitempty"` // Subject 主体资质 Subject *QualificationSubject `json:"subject,omitempty"` // Industries 行业资质 Industries []QualificationIndustry `json:"industries,omitempty"` }
QualificationSubmitRequest 提交广告主资质(新版) API Request
func (QualificationSubmitRequest) Encode ¶ added in v1.9.11
func (r QualificationSubmitRequest) Encode() []byte
Encode implement PostRequest interface
type TransferableFund ¶ added in v1.5.8
type TransferableFund struct { // GrantValid 可用赠款余额(单位元) GrantValid float64 `json:"grant_valid,omitempty"` // CashTransferBalance 可用现金余额(单位元) CashTransferBalance float64 `json:"cash_transfer_balance,omitempty"` // UnversalPrepayValid 通用预付可用余额(单位元) UniversalPrepayValid float64 `json:"universal_prepay_valid,omitempty"` // BrandPrepayValid 品牌预付可用余额(单位元) BrandPrepayValid float64 `json:"brand_prepay_valid,omitempty"` // BidPrepayValid 竞价预付可用余额(单位元) BidPrepayValid float64 `json:"bid_prepay_valid,omitempty"` // UniversalCreditValid 通用授信可用余额(单位元) UniversalCreditValid float64 `json:"universal_credit_valid,omitempty"` // BrandCreditValid 品牌授信可用余额(单位元) BrandCreditValid float64 `json:"brand_credit_valid,omitempty"` // BidCreditValid 竞价授信可用余额(单位元) BidCreditValid float64 `json:"bid_credit_valid,omitempty"` // DepositAmount 保证金(单位元) DepositAmount float64 `json:"deposit_amount,omitempty"` // TotalTransferBalance 总可转余额 TotalTransferBalance float64 `json:"total_transfer_balance,omitempty"` }
TransferableFund 账户可转余额
type TransferableFundGetRequest ¶ added in v1.5.8
type TransferableFundGetRequest struct { // AdvertiserID 广告主ID或代理商ID或组织ID AdvertiserID uint64 `json:"advertiser_id,omitempty"` }
TransferableFundGetRequest 查询账户可转余额 API Request
func (TransferableFundGetRequest) Encode ¶ added in v1.5.8
func (r TransferableFundGetRequest) Encode() string
Encode implement GetRequest interface
type TransferableFundGetResponse ¶ added in v1.5.8
type TransferableFundGetResponse struct { model.BaseResponse // Data json返回值 Data *TransferableFund `json:"data,omitempty"` }
TransferableFundGetResponse 查询账户可转余额 API Response
type UpdateBudgetRequest ¶
type UpdateBudgetRequest struct { // AdvertiserID 广告主ID AdvertiserID uint64 `json:"advertiser_id,omitempty"` // BudgetMode 预算模式 BudgetMode enum.BudgetMode `json:"budget_mode,omitempty"` // Budget 预算值,取值范围:1000~9999999.99,当budget_mode=BUDGET_MODE_DAY时,必填 // 单位:元; 最小值:0; 精度:小数点后两位 Budget float64 `json:"budget,omitempty"` }
UpdateBudgetRequest 更新账户日预算 API Request
func (UpdateBudgetRequest) Encode ¶
func (r UpdateBudgetRequest) Encode() []byte
Encode implement PostRequest interface
Source Files ¶
- ad_qualification.go
- attachment_upload.go
- avatar_get.go
- budget_get.go
- budget_update.go
- delivery_qualification_list.go
- delivery_qualification_submit.go
- doc.go
- fund_daily_stat.go
- fund_get.go
- fund_transaction_get.go
- info.go
- public_info.go
- qualification.go
- qualification_create.go
- qualification_get.go
- qualification_select.go
- qualification_submit.go
- transferable_fund_get.go