添加source
This commit is contained in:
parent
cdf4b77aa7
commit
25eed16be5
1411
api/cast/cast.pb.go
1411
api/cast/cast.pb.go
File diff suppressed because it is too large
Load Diff
@ -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)
|
||||
}
|
||||
|
@ -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
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user