Skip to content

Commit

Permalink
Merge pull request #594 from ArtisanCloud/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
Matrix-X authored Dec 24, 2024
2 parents 38a5032 + e492d97 commit ac6e7a0
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/miniProgram/industry/miniDrama/request/request.go
Original file line number Diff line number Diff line change
Expand Up @@ -179,3 +179,15 @@ type AccountAuthorizedRequest struct {
AuthorizedAppid string `json:"authorized_appid"`
AuthzExpireTime int64 `json:"authz_expire_time,omitempty"`
}

// 开发者可通过后台接口设置刷剧剧目
// https://developers.weixin.qq.com/miniprogram/dev/platform-capabilities/industry/videoplayer.html#%E5%88%B7%E5%89%A7%E7%BB%84%E4%BB%B6
type SetFlushDramaRequest struct {
List []*DramaInfo `json:"list"`
}

type DramaInfo struct {
SrcAppid string `json:"src_appid"`
DramaId string `json:"drama_id"`
DramaName string `json:"drama_name"`
}
14 changes: 14 additions & 0 deletions src/miniProgram/industry/miniDrama/vod/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -522,3 +522,17 @@ func (comp *Client) SearchDoAccountAuthorized(ctx context.Context) (result *resp

return
}

// 开发者可通过后台接口设置刷剧剧目
// https://developers.weixin.qq.com/miniprogram/dev/platform-capabilities/industry/videoplayer.html#%E5%88%B7%E5%89%A7%E7%BB%84%E4%BB%B6
func (comp *Client) SetFlushDrama(ctx context.Context, in *request.SetFlushDramaRequest) (result *response.BaseResponse, err error) {

params, err := power.StructToHashMap(in)
if err != nil {

return nil, err
}
_, err = comp.BaseClient.HttpPostJson(ctx, "wxadrama/developersetflushdrama", params, nil, nil, &result)
return

}

0 comments on commit ac6e7a0

Please sign in to comment.