添加source

This commit is contained in:
戴育兵 2025-08-07 11:59:25 +08:00
parent cdf4b77aa7
commit 25eed16be5
4 changed files with 724 additions and 700 deletions

File diff suppressed because it is too large Load Diff

View File

@ -1066,6 +1066,8 @@ func (m *UpdateWorkImageReq) validate(all bool) error {
// no validation rules for ArtistPhoneAreaCode
// no validation rules for Source
if len(errors) > 0 {
return UpdateWorkImageReqMultiError(errors)
}
@ -1491,6 +1493,8 @@ func (m *UpdateWorkVideoReq) validate(all bool) error {
// no validation rules for ArtistPhoneAreaCode
// no validation rules for Source
if len(errors) > 0 {
return UpdateWorkVideoReqMultiError(errors)
}

View File

@ -1,7 +1,7 @@
// Code generated by protoc-gen-go-triple. DO NOT EDIT.
// versions:
// - protoc-gen-go-triple v1.0.8
// - protoc v3.21.1
// - protoc v6.32.0--rc2
// source: pb/fiee/cast.proto
package cast

View File

@ -11,9 +11,10 @@ import (
"fonchain-fiee/pkg/e"
modelCast "fonchain-fiee/pkg/model/cast"
"fonchain-fiee/pkg/service"
"strconv"
"github.com/gin-gonic/gin"
"go.uber.org/zap"
"strconv"
)
func UpdateWorkImage(ctx *gin.Context) {
@ -50,6 +51,7 @@ func UpdateWorkImage(ctx *gin.Context) {
return
}
newCtx := NewCtxWithUserInfo(ctx)
req.Source = 1
resp, err := service.CastProvider.UpdateWorkImage(newCtx, req)
if err != nil {
service.Error(ctx, err)
@ -93,6 +95,7 @@ func UpdateWorkVideo(ctx *gin.Context) {
req.ArtistPhone = infoResp.TelNum
req.ArtistPhoneAreaCode = infoResp.TelAreaCode
newCtx := NewCtxWithUserInfo(ctx)
req.Source = 1
resp, err := service.CastProvider.UpdateWorkVideo(newCtx, req)
if err != nil {
service.Error(ctx, err)
@ -235,7 +238,7 @@ func RePublish(ctx *gin.Context) {
return
}
//修改余量我还需要调用吗
// 修改余量我还需要调用吗
func UserBundleBalanceCost() {
service.BundleProvider.AddBundleBalance(context.Background(), &bundle.AddBundleBalanceReq{})
}