Compare commits
3 Commits
e8942b1433
...
c772eb2873
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c772eb2873 | ||
|
|
245c6dbba4 | ||
|
|
f6a7e0ad8c |
@ -5033,6 +5033,7 @@ type ToolsReq struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
Action string `protobuf:"bytes,1,opt,name=action,proto3" json:"action"`
|
||||
ArtistUuid string `protobuf:"bytes,2,opt,name=artistUuid,proto3" json:"artistUuid"`
|
||||
CfgLinks []string `protobuf:"bytes,3,rep,name=cfgLinks,proto3" json:"cfgLinks"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
@ -5081,6 +5082,13 @@ func (x *ToolsReq) GetArtistUuid() string {
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *ToolsReq) GetCfgLinks() []string {
|
||||
if x != nil {
|
||||
return x.CfgLinks
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// 视频脚本相关消息定义
|
||||
// 更新视频脚本请求
|
||||
type UpdateVideoScriptReq struct {
|
||||
@ -18413,12 +18421,13 @@ const file_pb_fiee_cast_proto_rawDesc = "" +
|
||||
"platformID\x18\x02 \x01(\x05R\n" +
|
||||
"platformID\x12,\n" +
|
||||
"\x11platformMediaUuid\x18\x03 \x01(\tR\x11platformMediaUuid\x12\x12\n" +
|
||||
"\x04info\x18\x04 \x01(\tR\x04info\"B\n" +
|
||||
"\x04info\x18\x04 \x01(\tR\x04info\"^\n" +
|
||||
"\bToolsReq\x12\x16\n" +
|
||||
"\x06action\x18\x01 \x01(\tR\x06action\x12\x1e\n" +
|
||||
"\n" +
|
||||
"artistUuid\x18\x02 \x01(\tR\n" +
|
||||
"artistUuid\"\x9e\x02\n" +
|
||||
"artistUuid\x12\x1a\n" +
|
||||
"\bcfgLinks\x18\x03 \x03(\tR\bcfgLinks\"\x9e\x02\n" +
|
||||
"\x14UpdateVideoScriptReq\x12\x12\n" +
|
||||
"\x04uuid\x18\x01 \x01(\tR\x04uuid\x12\x14\n" +
|
||||
"\x05title\x18\x02 \x01(\tR\x05title\x12\x18\n" +
|
||||
|
||||
@ -189,6 +189,20 @@ func Test(ctx *gin.Context) {
|
||||
return
|
||||
}
|
||||
|
||||
if action == "addDecodoProxies" {
|
||||
var req *cast.UpdateWorkImageReq
|
||||
var err error
|
||||
if err = ctx.ShouldBind(&req); err != nil {
|
||||
service.Error(ctx, err)
|
||||
return
|
||||
}
|
||||
service.CastProvider.Tools(context.Background(), &cast.ToolsReq{Action: action, CfgLinks: []string{
|
||||
"http://spd7b09ho0:sqx_1MlQ1rN5gfm2Dx@isp.decodo.com:10001",
|
||||
"http://spd7b09ho0:sqx_1MlQ1rN5gfm2Dx@isp.decodo.com:10002",
|
||||
"http://spd7b09ho0:sqx_1MlQ1rN5gfm2Dx@isp.decodo.com:10003",
|
||||
}})
|
||||
}
|
||||
|
||||
service.Success(ctx, "unknow")
|
||||
return
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user