From eaa53b509bdb02515d5edf54ffc9e272d7797211 Mon Sep 17 00:00:00 2001 From: houseme Date: Fri, 15 Mar 2024 11:20:53 +0800 Subject: [PATCH 1/4] =?UTF-8?q?fix=EF=BC=9Amodify=20mediaID=20type?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- miniprogram/message/message.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/miniprogram/message/message.go b/miniprogram/message/message.go index 77dccfeba..d68498657 100644 --- a/miniprogram/message/message.go +++ b/miniprogram/message/message.go @@ -398,7 +398,7 @@ type PushDataSecVodUpload struct { // SecVodUploadEvent 短剧媒资上传完成事件 type SecVodUploadEvent struct { - MediaID string `json:"media_id" xml:"media_id"` // 媒资 id + MediaID int64 `json:"media_id" xml:"media_id"` // 媒资 id SourceContext string `json:"source_context" xml:"source_context"` // 透传上传接口中开发者设置的值。 ErrCode int `json:"errcode" xml:"errcode"` // 错误码,上传失败时该值非 ErrMsg string `json:"errmsg" xml:"errmsg"` // 错误提示 @@ -412,7 +412,7 @@ type PushDataSecVodAudit struct { // SecVodAuditEvent 短剧媒资审核状态事件 type SecVodAuditEvent struct { - DramaID string `json:"drama_id" xml:"drama_id"` // 剧目 id + DramaID int64 `json:"drama_id" xml:"drama_id"` // 剧目 id SourceContext string `json:"source_context" xml:"source_context"` // 透传上传接口中开发者设置的值 AuditDetail DramaAuditDetail `json:"audit_detail" xml:"audit_detail"` // 剧目审核结果,单独每一集的审核结果可以根据 drama_id 查询剧集详情得到 } From efe99422a635ca186e830de1c425bfcec79b9d88 Mon Sep 17 00:00:00 2001 From: houseme Date: Fri, 15 Mar 2024 11:27:07 +0800 Subject: [PATCH 2/4] upgrade action version --- .github/ISSUE_TEMPLATE/bug.md | 6 +++--- .github/ISSUE_TEMPLATE/feature.md | 8 ++++---- .github/ISSUE_TEMPLATE/question.md | 6 +++--- .github/workflows/go.yml | 20 ++++++++++---------- 4 files changed, 20 insertions(+), 20 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/bug.md b/.github/ISSUE_TEMPLATE/bug.md index d769e0460..151be0b67 100644 --- a/.github/ISSUE_TEMPLATE/bug.md +++ b/.github/ISSUE_TEMPLATE/bug.md @@ -1,6 +1,6 @@ --- -name: 报告Bug -about: 反馈BUG信息 +name: 报告 Bug +about: 反馈 BUG 信息 title: "[BUG]" labels: bug assignees: '' @@ -18,4 +18,4 @@ assignees: '' **使用的版本** - - SDK版本: [比如 v0.0.0] + - SDK 版本:[比如 v0.0.0] diff --git a/.github/ISSUE_TEMPLATE/feature.md b/.github/ISSUE_TEMPLATE/feature.md index fb34f0d2a..1c826696d 100644 --- a/.github/ISSUE_TEMPLATE/feature.md +++ b/.github/ISSUE_TEMPLATE/feature.md @@ -1,6 +1,6 @@ --- -name: API需求 -about: 待实现的API接口,SDK的强大离不开社区的帮助,欢迎为项目贡献PR +name: API 需求 +about: 待实现的 API 接口,SDK 的强大离不开社区的帮助,欢迎为项目贡献 PR title: "[Feature]" labels: enhancement assignees: '' @@ -8,8 +8,8 @@ assignees: '' --- -**你想要实现的模块或API** +**你想要实现的模块或 API** diff --git a/.github/ISSUE_TEMPLATE/question.md b/.github/ISSUE_TEMPLATE/question.md index db13f82c7..1151dceab 100644 --- a/.github/ISSUE_TEMPLATE/question.md +++ b/.github/ISSUE_TEMPLATE/question.md @@ -1,6 +1,6 @@ --- name: 使用咨询 -about: 关于SDK使用相关的咨询,在使用前请先阅读官方微信文档 +about: 关于 SDK 使用相关的咨询,在使用前请先阅读官方微信文档 title: "[咨询]" labels: question assignees: '' @@ -9,7 +9,7 @@ assignees: '' **请描述您的问题** diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index f6c0581dd..246b0f6f4 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -2,29 +2,29 @@ name: Go on: push: - branches: [ master,release-*,v2,feature/** ] + branches: [ master,release-*,v2,feature/**,fix/** ] pull_request: - branches: [ master,release-*,v2,feature/** ] + branches: [ master,release-*,v2,feature/**,fix/** ] jobs: golangci: strategy: matrix: - go-version: [ '1.16','1.17','1.18','1.19','1.20','1.21.4' ] + go-version: [ '1.16','1.17','1.18','1.19','1.20','1.21.4','1.22' ] name: golangci-lint runs-on: ubuntu-latest steps: - name: Setup Golang ${{ matrix.go-version }} - uses: actions/setup-go@v4 + uses: actions/setup-go@v5 with: go-version: ${{ matrix.go-version }} - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: golangci-lint - uses: golangci/golangci-lint-action@v3 + uses: golangci/golangci-lint-action@v4 with: # Required: the version of golangci-lint is required and must be specified without patch version: we always use the latest patch version. - version: v1.52.2 + version: v1.56.2 build: name: Test runs-on: ubuntu-latest @@ -42,12 +42,12 @@ jobs: # strategy set strategy: matrix: - go: [ '1.16','1.17','1.18','1.19','1.20','1.21' ] + go: [ '1.16','1.17','1.18','1.19','1.20','1.21','1.22' ] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set up Go 1.x - uses: actions/setup-go@v4 + uses: actions/setup-go@v5 with: go-version: ${{ matrix.go }} id: go From 418b6d7141b3fa8fe3e23a325f893742fc87eaeb Mon Sep 17 00:00:00 2001 From: houseme Date: Fri, 15 Mar 2024 11:39:06 +0800 Subject: [PATCH 3/4] upgrade --- .github/workflows/go.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 246b0f6f4..351c70d2f 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -24,7 +24,7 @@ jobs: uses: golangci/golangci-lint-action@v4 with: # Required: the version of golangci-lint is required and must be specified without patch version: we always use the latest patch version. - version: v1.56.2 + version: v1.52.2 build: name: Test runs-on: ubuntu-latest From a723e74553e04c7cab5a8cc6c2eb1b566d85af4d Mon Sep 17 00:00:00 2001 From: houseme Date: Fri, 15 Mar 2024 11:46:14 +0800 Subject: [PATCH 4/4] upgrade --- .github/workflows/go.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 351c70d2f..de28d3212 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -10,7 +10,7 @@ jobs: golangci: strategy: matrix: - go-version: [ '1.16','1.17','1.18','1.19','1.20','1.21.4','1.22' ] + go-version: [ '1.16','1.17','1.18','1.19','1.20','1.21.4' ] name: golangci-lint runs-on: ubuntu-latest steps: