Compare commits
No commits in common. "c8d656bb62556403d991c82ab0a89243f3b44282" and "e3bc1a992f37513b101916a102316b60333bfcf8" have entirely different histories.
c8d656bb62
...
e3bc1a992f
@ -2694,134 +2694,6 @@ func (x *RefreshTokenResp) GetAccessToken() string {
|
|||||||
return ""
|
return ""
|
||||||
}
|
}
|
||||||
|
|
||||||
type PublishMediaInfoReq struct {
|
|
||||||
state protoimpl.MessageState `protogen:"open.v1"`
|
|
||||||
WorkUuid string `protobuf:"bytes,1,opt,name=workUuid,proto3" json:"workUuid"`
|
|
||||||
PlatformID int32 `protobuf:"varint,2,opt,name=platformID,proto3" json:"platformID"`
|
|
||||||
PlatformMediaUuid string `protobuf:"bytes,3,opt,name=platformMediaUuid,proto3" json:"platformMediaUuid"`
|
|
||||||
unknownFields protoimpl.UnknownFields
|
|
||||||
sizeCache protoimpl.SizeCache
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *PublishMediaInfoReq) Reset() {
|
|
||||||
*x = PublishMediaInfoReq{}
|
|
||||||
mi := &file_pb_fiee_cast_proto_msgTypes[36]
|
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
||||||
ms.StoreMessageInfo(mi)
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *PublishMediaInfoReq) String() string {
|
|
||||||
return protoimpl.X.MessageStringOf(x)
|
|
||||||
}
|
|
||||||
|
|
||||||
func (*PublishMediaInfoReq) ProtoMessage() {}
|
|
||||||
|
|
||||||
func (x *PublishMediaInfoReq) ProtoReflect() protoreflect.Message {
|
|
||||||
mi := &file_pb_fiee_cast_proto_msgTypes[36]
|
|
||||||
if x != nil {
|
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
||||||
if ms.LoadMessageInfo() == nil {
|
|
||||||
ms.StoreMessageInfo(mi)
|
|
||||||
}
|
|
||||||
return ms
|
|
||||||
}
|
|
||||||
return mi.MessageOf(x)
|
|
||||||
}
|
|
||||||
|
|
||||||
// Deprecated: Use PublishMediaInfoReq.ProtoReflect.Descriptor instead.
|
|
||||||
func (*PublishMediaInfoReq) Descriptor() ([]byte, []int) {
|
|
||||||
return file_pb_fiee_cast_proto_rawDescGZIP(), []int{36}
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *PublishMediaInfoReq) GetWorkUuid() string {
|
|
||||||
if x != nil {
|
|
||||||
return x.WorkUuid
|
|
||||||
}
|
|
||||||
return ""
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *PublishMediaInfoReq) GetPlatformID() int32 {
|
|
||||||
if x != nil {
|
|
||||||
return x.PlatformID
|
|
||||||
}
|
|
||||||
return 0
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *PublishMediaInfoReq) GetPlatformMediaUuid() string {
|
|
||||||
if x != nil {
|
|
||||||
return x.PlatformMediaUuid
|
|
||||||
}
|
|
||||||
return ""
|
|
||||||
}
|
|
||||||
|
|
||||||
type PublishMediaInfoResp struct {
|
|
||||||
state protoimpl.MessageState `protogen:"open.v1"`
|
|
||||||
WorkUuid string `protobuf:"bytes,1,opt,name=workUuid,proto3" json:"workUuid"`
|
|
||||||
PlatformID int32 `protobuf:"varint,2,opt,name=platformID,proto3" json:"platformID"`
|
|
||||||
PlatformMediaUuid string `protobuf:"bytes,3,opt,name=platformMediaUuid,proto3" json:"platformMediaUuid"`
|
|
||||||
Info string `protobuf:"bytes,4,opt,name=info,proto3" json:"info"`
|
|
||||||
unknownFields protoimpl.UnknownFields
|
|
||||||
sizeCache protoimpl.SizeCache
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *PublishMediaInfoResp) Reset() {
|
|
||||||
*x = PublishMediaInfoResp{}
|
|
||||||
mi := &file_pb_fiee_cast_proto_msgTypes[37]
|
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
||||||
ms.StoreMessageInfo(mi)
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *PublishMediaInfoResp) String() string {
|
|
||||||
return protoimpl.X.MessageStringOf(x)
|
|
||||||
}
|
|
||||||
|
|
||||||
func (*PublishMediaInfoResp) ProtoMessage() {}
|
|
||||||
|
|
||||||
func (x *PublishMediaInfoResp) ProtoReflect() protoreflect.Message {
|
|
||||||
mi := &file_pb_fiee_cast_proto_msgTypes[37]
|
|
||||||
if x != nil {
|
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
||||||
if ms.LoadMessageInfo() == nil {
|
|
||||||
ms.StoreMessageInfo(mi)
|
|
||||||
}
|
|
||||||
return ms
|
|
||||||
}
|
|
||||||
return mi.MessageOf(x)
|
|
||||||
}
|
|
||||||
|
|
||||||
// Deprecated: Use PublishMediaInfoResp.ProtoReflect.Descriptor instead.
|
|
||||||
func (*PublishMediaInfoResp) Descriptor() ([]byte, []int) {
|
|
||||||
return file_pb_fiee_cast_proto_rawDescGZIP(), []int{37}
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *PublishMediaInfoResp) GetWorkUuid() string {
|
|
||||||
if x != nil {
|
|
||||||
return x.WorkUuid
|
|
||||||
}
|
|
||||||
return ""
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *PublishMediaInfoResp) GetPlatformID() int32 {
|
|
||||||
if x != nil {
|
|
||||||
return x.PlatformID
|
|
||||||
}
|
|
||||||
return 0
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *PublishMediaInfoResp) GetPlatformMediaUuid() string {
|
|
||||||
if x != nil {
|
|
||||||
return x.PlatformMediaUuid
|
|
||||||
}
|
|
||||||
return ""
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *PublishMediaInfoResp) GetInfo() string {
|
|
||||||
if x != nil {
|
|
||||||
return x.Info
|
|
||||||
}
|
|
||||||
return ""
|
|
||||||
}
|
|
||||||
|
|
||||||
type WorkListResp_Info struct {
|
type WorkListResp_Info struct {
|
||||||
state protoimpl.MessageState `protogen:"open.v1"`
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
WorkUuid string `protobuf:"bytes,1,opt,name=workUuid,proto3" json:"workUuid"`
|
WorkUuid string `protobuf:"bytes,1,opt,name=workUuid,proto3" json:"workUuid"`
|
||||||
@ -2844,7 +2716,7 @@ type WorkListResp_Info struct {
|
|||||||
|
|
||||||
func (x *WorkListResp_Info) Reset() {
|
func (x *WorkListResp_Info) Reset() {
|
||||||
*x = WorkListResp_Info{}
|
*x = WorkListResp_Info{}
|
||||||
mi := &file_pb_fiee_cast_proto_msgTypes[38]
|
mi := &file_pb_fiee_cast_proto_msgTypes[36]
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
ms.StoreMessageInfo(mi)
|
ms.StoreMessageInfo(mi)
|
||||||
}
|
}
|
||||||
@ -2856,7 +2728,7 @@ func (x *WorkListResp_Info) String() string {
|
|||||||
func (*WorkListResp_Info) ProtoMessage() {}
|
func (*WorkListResp_Info) ProtoMessage() {}
|
||||||
|
|
||||||
func (x *WorkListResp_Info) ProtoReflect() protoreflect.Message {
|
func (x *WorkListResp_Info) ProtoReflect() protoreflect.Message {
|
||||||
mi := &file_pb_fiee_cast_proto_msgTypes[38]
|
mi := &file_pb_fiee_cast_proto_msgTypes[36]
|
||||||
if x != nil {
|
if x != nil {
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
if ms.LoadMessageInfo() == nil {
|
if ms.LoadMessageInfo() == nil {
|
||||||
@ -2984,7 +2856,7 @@ type MediaAccountsResp_Info struct {
|
|||||||
|
|
||||||
func (x *MediaAccountsResp_Info) Reset() {
|
func (x *MediaAccountsResp_Info) Reset() {
|
||||||
*x = MediaAccountsResp_Info{}
|
*x = MediaAccountsResp_Info{}
|
||||||
mi := &file_pb_fiee_cast_proto_msgTypes[40]
|
mi := &file_pb_fiee_cast_proto_msgTypes[38]
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
ms.StoreMessageInfo(mi)
|
ms.StoreMessageInfo(mi)
|
||||||
}
|
}
|
||||||
@ -2996,7 +2868,7 @@ func (x *MediaAccountsResp_Info) String() string {
|
|||||||
func (*MediaAccountsResp_Info) ProtoMessage() {}
|
func (*MediaAccountsResp_Info) ProtoMessage() {}
|
||||||
|
|
||||||
func (x *MediaAccountsResp_Info) ProtoReflect() protoreflect.Message {
|
func (x *MediaAccountsResp_Info) ProtoReflect() protoreflect.Message {
|
||||||
mi := &file_pb_fiee_cast_proto_msgTypes[40]
|
mi := &file_pb_fiee_cast_proto_msgTypes[38]
|
||||||
if x != nil {
|
if x != nil {
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
if ms.LoadMessageInfo() == nil {
|
if ms.LoadMessageInfo() == nil {
|
||||||
@ -3072,7 +2944,7 @@ type MediaWorksResp_Info struct {
|
|||||||
|
|
||||||
func (x *MediaWorksResp_Info) Reset() {
|
func (x *MediaWorksResp_Info) Reset() {
|
||||||
*x = MediaWorksResp_Info{}
|
*x = MediaWorksResp_Info{}
|
||||||
mi := &file_pb_fiee_cast_proto_msgTypes[41]
|
mi := &file_pb_fiee_cast_proto_msgTypes[39]
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
ms.StoreMessageInfo(mi)
|
ms.StoreMessageInfo(mi)
|
||||||
}
|
}
|
||||||
@ -3084,7 +2956,7 @@ func (x *MediaWorksResp_Info) String() string {
|
|||||||
func (*MediaWorksResp_Info) ProtoMessage() {}
|
func (*MediaWorksResp_Info) ProtoMessage() {}
|
||||||
|
|
||||||
func (x *MediaWorksResp_Info) ProtoReflect() protoreflect.Message {
|
func (x *MediaWorksResp_Info) ProtoReflect() protoreflect.Message {
|
||||||
mi := &file_pb_fiee_cast_proto_msgTypes[41]
|
mi := &file_pb_fiee_cast_proto_msgTypes[39]
|
||||||
if x != nil {
|
if x != nil {
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
if ms.LoadMessageInfo() == nil {
|
if ms.LoadMessageInfo() == nil {
|
||||||
@ -3491,20 +3363,7 @@ const file_pb_fiee_cast_proto_rawDesc = "" +
|
|||||||
"platformID\x12\x16\n" +
|
"platformID\x12\x16\n" +
|
||||||
"\x06userID\x18\x03 \x01(\tR\x06userID\"4\n" +
|
"\x06userID\x18\x03 \x01(\tR\x06userID\"4\n" +
|
||||||
"\x10RefreshTokenResp\x12 \n" +
|
"\x10RefreshTokenResp\x12 \n" +
|
||||||
"\vaccessToken\x18\x01 \x01(\tR\vaccessToken\"\x7f\n" +
|
"\vaccessToken\x18\x01 \x01(\tR\vaccessToken*G\n" +
|
||||||
"\x13PublishMediaInfoReq\x12\x1a\n" +
|
|
||||||
"\bworkUuid\x18\x01 \x01(\tR\bworkUuid\x12\x1e\n" +
|
|
||||||
"\n" +
|
|
||||||
"platformID\x18\x02 \x01(\x05R\n" +
|
|
||||||
"platformID\x12,\n" +
|
|
||||||
"\x11platformMediaUuid\x18\x03 \x01(\tR\x11platformMediaUuid\"\x94\x01\n" +
|
|
||||||
"\x14PublishMediaInfoResp\x12\x1a\n" +
|
|
||||||
"\bworkUuid\x18\x01 \x01(\tR\bworkUuid\x12\x1e\n" +
|
|
||||||
"\n" +
|
|
||||||
"platformID\x18\x02 \x01(\x05R\n" +
|
|
||||||
"platformID\x12,\n" +
|
|
||||||
"\x11platformMediaUuid\x18\x03 \x01(\tR\x11platformMediaUuid\x12\x12\n" +
|
|
||||||
"\x04info\x18\x04 \x01(\tR\x04info*G\n" +
|
|
||||||
"\x0ePlatformIDENUM\x12\v\n" +
|
"\x0ePlatformIDENUM\x12\v\n" +
|
||||||
"\aUNKNOWN\x10\x00\x12\n" +
|
"\aUNKNOWN\x10\x00\x12\n" +
|
||||||
"\n" +
|
"\n" +
|
||||||
@ -3518,7 +3377,7 @@ const file_pb_fiee_cast_proto_rawDesc = "" +
|
|||||||
"\bAPPROVAL\x10\x02\x12\x11\n" +
|
"\bAPPROVAL\x10\x02\x12\x11\n" +
|
||||||
"\rAPPROVAL_PASS\x10\x03\x12\x13\n" +
|
"\rAPPROVAL_PASS\x10\x03\x12\x13\n" +
|
||||||
"\x0fAPPROVAL_REJECT\x10\x04\x12\x13\n" +
|
"\x0fAPPROVAL_REJECT\x10\x04\x12\x13\n" +
|
||||||
"\x0fAPPROVAL_DELETE\x10\x052\xde\t\n" +
|
"\x0fAPPROVAL_DELETE\x10\x052\x91\t\n" +
|
||||||
"\x04Cast\x12B\n" +
|
"\x04Cast\x12B\n" +
|
||||||
"\rMediaUserList\x12\x16.Cast.MediaUserListReq\x1a\x17.Cast.MediaUserListResp\"\x00\x12Q\n" +
|
"\rMediaUserList\x12\x16.Cast.MediaUserListReq\x1a\x17.Cast.MediaUserListResp\"\x00\x12Q\n" +
|
||||||
"\x12UpdateMediaAccount\x12\x1b.Cast.UpdateMediaAccountReq\x1a\x1c.Cast.UpdateMediaAccountResp\"\x00\x12B\n" +
|
"\x12UpdateMediaAccount\x12\x1b.Cast.UpdateMediaAccountReq\x1a\x1c.Cast.UpdateMediaAccountResp\"\x00\x12B\n" +
|
||||||
@ -3538,8 +3397,7 @@ const file_pb_fiee_cast_proto_rawDesc = "" +
|
|||||||
"\bWorkInfo\x12\x11.Cast.WorkInfoReq\x1a\x12.Cast.WorkInfoResp\"\x00\x12?\n" +
|
"\bWorkInfo\x12\x11.Cast.WorkInfoReq\x1a\x12.Cast.WorkInfoResp\"\x00\x12?\n" +
|
||||||
"\fOAuthAccount\x12\x15.Cast.OAuthAccountReq\x1a\x16.Cast.OAuthAccountResp\"\x00\x12K\n" +
|
"\fOAuthAccount\x12\x15.Cast.OAuthAccountReq\x1a\x16.Cast.OAuthAccountResp\"\x00\x12K\n" +
|
||||||
"\x10OAuthCodeToToken\x12\x19.Cast.OAuthCodeToTokenReq\x1a\x1a.Cast.OAuthCodeToTokenResp\"\x00\x12?\n" +
|
"\x10OAuthCodeToToken\x12\x19.Cast.OAuthCodeToTokenReq\x1a\x1a.Cast.OAuthCodeToTokenResp\"\x00\x12?\n" +
|
||||||
"\fRefreshToken\x12\x15.Cast.RefreshTokenReq\x1a\x16.Cast.RefreshTokenResp\"\x00\x12K\n" +
|
"\fRefreshToken\x12\x15.Cast.RefreshTokenReq\x1a\x16.Cast.RefreshTokenResp\"\x00\x128\n" +
|
||||||
"\x10PublishMediaInfo\x12\x19.Cast.PublishMediaInfoReq\x1a\x1a.Cast.PublishMediaInfoResp\"\x00\x128\n" +
|
|
||||||
"\x04Test\x12\x16.google.protobuf.Empty\x1a\x16.google.protobuf.Empty\"\x00B\rZ\v./cast;castb\x06proto3"
|
"\x04Test\x12\x16.google.protobuf.Empty\x1a\x16.google.protobuf.Empty\"\x00B\rZ\v./cast;castb\x06proto3"
|
||||||
|
|
||||||
var (
|
var (
|
||||||
@ -3555,7 +3413,7 @@ func file_pb_fiee_cast_proto_rawDescGZIP() []byte {
|
|||||||
}
|
}
|
||||||
|
|
||||||
var file_pb_fiee_cast_proto_enumTypes = make([]protoimpl.EnumInfo, 2)
|
var file_pb_fiee_cast_proto_enumTypes = make([]protoimpl.EnumInfo, 2)
|
||||||
var file_pb_fiee_cast_proto_msgTypes = make([]protoimpl.MessageInfo, 42)
|
var file_pb_fiee_cast_proto_msgTypes = make([]protoimpl.MessageInfo, 40)
|
||||||
var file_pb_fiee_cast_proto_goTypes = []any{
|
var file_pb_fiee_cast_proto_goTypes = []any{
|
||||||
(PlatformIDENUM)(0), // 0: Cast.PlatformIDENUM
|
(PlatformIDENUM)(0), // 0: Cast.PlatformIDENUM
|
||||||
(WorkActionENUM)(0), // 1: Cast.WorkActionENUM
|
(WorkActionENUM)(0), // 1: Cast.WorkActionENUM
|
||||||
@ -3595,13 +3453,11 @@ var file_pb_fiee_cast_proto_goTypes = []any{
|
|||||||
(*OAuthCodeToTokenResp)(nil), // 35: Cast.OAuthCodeToTokenResp
|
(*OAuthCodeToTokenResp)(nil), // 35: Cast.OAuthCodeToTokenResp
|
||||||
(*RefreshTokenReq)(nil), // 36: Cast.RefreshTokenReq
|
(*RefreshTokenReq)(nil), // 36: Cast.RefreshTokenReq
|
||||||
(*RefreshTokenResp)(nil), // 37: Cast.RefreshTokenResp
|
(*RefreshTokenResp)(nil), // 37: Cast.RefreshTokenResp
|
||||||
(*PublishMediaInfoReq)(nil), // 38: Cast.PublishMediaInfoReq
|
(*WorkListResp_Info)(nil), // 38: Cast.WorkListResp.Info
|
||||||
(*PublishMediaInfoResp)(nil), // 39: Cast.PublishMediaInfoResp
|
nil, // 39: Cast.WorkDetailResp.MediaAccDataEntry
|
||||||
(*WorkListResp_Info)(nil), // 40: Cast.WorkListResp.Info
|
(*MediaAccountsResp_Info)(nil), // 40: Cast.MediaAccountsResp.Info
|
||||||
nil, // 41: Cast.WorkDetailResp.MediaAccDataEntry
|
(*MediaWorksResp_Info)(nil), // 41: Cast.MediaWorksResp.Info
|
||||||
(*MediaAccountsResp_Info)(nil), // 42: Cast.MediaAccountsResp.Info
|
(*emptypb.Empty)(nil), // 42: google.protobuf.Empty
|
||||||
(*MediaWorksResp_Info)(nil), // 43: Cast.MediaWorksResp.Info
|
|
||||||
(*emptypb.Empty)(nil), // 44: google.protobuf.Empty
|
|
||||||
}
|
}
|
||||||
var file_pb_fiee_cast_proto_depIdxs = []int32{
|
var file_pb_fiee_cast_proto_depIdxs = []int32{
|
||||||
0, // 0: Cast.MediaUserListReq.platformID:type_name -> Cast.PlatformIDENUM
|
0, // 0: Cast.MediaUserListReq.platformID:type_name -> Cast.PlatformIDENUM
|
||||||
@ -3616,15 +3472,15 @@ var file_pb_fiee_cast_proto_depIdxs = []int32{
|
|||||||
12, // 9: Cast.UpdateWorkVideoReq.publishConfig1:type_name -> Cast.PublishConfig
|
12, // 9: Cast.UpdateWorkVideoReq.publishConfig1:type_name -> Cast.PublishConfig
|
||||||
12, // 10: Cast.UpdateWorkVideoReq.publishConfig2:type_name -> Cast.PublishConfig
|
12, // 10: Cast.UpdateWorkVideoReq.publishConfig2:type_name -> Cast.PublishConfig
|
||||||
12, // 11: Cast.UpdateWorkVideoReq.publishConfig3:type_name -> Cast.PublishConfig
|
12, // 11: Cast.UpdateWorkVideoReq.publishConfig3:type_name -> Cast.PublishConfig
|
||||||
40, // 12: Cast.WorkListResp.data:type_name -> Cast.WorkListResp.Info
|
38, // 12: Cast.WorkListResp.data:type_name -> Cast.WorkListResp.Info
|
||||||
12, // 13: Cast.WorkDetailResp.publishConfig1:type_name -> Cast.PublishConfig
|
12, // 13: Cast.WorkDetailResp.publishConfig1:type_name -> Cast.PublishConfig
|
||||||
12, // 14: Cast.WorkDetailResp.publishConfig2:type_name -> Cast.PublishConfig
|
12, // 14: Cast.WorkDetailResp.publishConfig2:type_name -> Cast.PublishConfig
|
||||||
12, // 15: Cast.WorkDetailResp.publishConfig3:type_name -> Cast.PublishConfig
|
12, // 15: Cast.WorkDetailResp.publishConfig3:type_name -> Cast.PublishConfig
|
||||||
18, // 16: Cast.WorkDetailResp.WorkLogData:type_name -> Cast.WorkLogInfo
|
18, // 16: Cast.WorkDetailResp.WorkLogData:type_name -> Cast.WorkLogInfo
|
||||||
41, // 17: Cast.WorkDetailResp.mediaAccData:type_name -> Cast.WorkDetailResp.MediaAccDataEntry
|
39, // 17: Cast.WorkDetailResp.mediaAccData:type_name -> Cast.WorkDetailResp.MediaAccDataEntry
|
||||||
1, // 18: Cast.UpdateStatusReq.workAction:type_name -> Cast.WorkActionENUM
|
1, // 18: Cast.UpdateStatusReq.workAction:type_name -> Cast.WorkActionENUM
|
||||||
42, // 19: Cast.MediaAccountsResp.data:type_name -> Cast.MediaAccountsResp.Info
|
40, // 19: Cast.MediaAccountsResp.data:type_name -> Cast.MediaAccountsResp.Info
|
||||||
43, // 20: Cast.MediaWorksResp.data:type_name -> Cast.MediaWorksResp.Info
|
41, // 20: Cast.MediaWorksResp.data:type_name -> Cast.MediaWorksResp.Info
|
||||||
0, // 21: Cast.OAuthCodeToTokenReq.platformID:type_name -> Cast.PlatformIDENUM
|
0, // 21: Cast.OAuthCodeToTokenReq.platformID:type_name -> Cast.PlatformIDENUM
|
||||||
0, // 22: Cast.RefreshTokenReq.platformID:type_name -> Cast.PlatformIDENUM
|
0, // 22: Cast.RefreshTokenReq.platformID:type_name -> Cast.PlatformIDENUM
|
||||||
3, // 23: Cast.WorkDetailResp.MediaAccDataEntry.value:type_name -> Cast.MediaUserInfo
|
3, // 23: Cast.WorkDetailResp.MediaAccDataEntry.value:type_name -> Cast.MediaUserInfo
|
||||||
@ -3645,29 +3501,27 @@ var file_pb_fiee_cast_proto_depIdxs = []int32{
|
|||||||
30, // 38: Cast.Cast.OAuthAccount:input_type -> Cast.OAuthAccountReq
|
30, // 38: Cast.Cast.OAuthAccount:input_type -> Cast.OAuthAccountReq
|
||||||
34, // 39: Cast.Cast.OAuthCodeToToken:input_type -> Cast.OAuthCodeToTokenReq
|
34, // 39: Cast.Cast.OAuthCodeToToken:input_type -> Cast.OAuthCodeToTokenReq
|
||||||
36, // 40: Cast.Cast.RefreshToken:input_type -> Cast.RefreshTokenReq
|
36, // 40: Cast.Cast.RefreshToken:input_type -> Cast.RefreshTokenReq
|
||||||
38, // 41: Cast.Cast.PublishMediaInfo:input_type -> Cast.PublishMediaInfoReq
|
42, // 41: Cast.Cast.Test:input_type -> google.protobuf.Empty
|
||||||
44, // 42: Cast.Cast.Test:input_type -> google.protobuf.Empty
|
4, // 42: Cast.Cast.MediaUserList:output_type -> Cast.MediaUserListResp
|
||||||
4, // 43: Cast.Cast.MediaUserList:output_type -> Cast.MediaUserListResp
|
6, // 43: Cast.Cast.UpdateMediaAccount:output_type -> Cast.UpdateMediaAccountResp
|
||||||
6, // 44: Cast.Cast.UpdateMediaAccount:output_type -> Cast.UpdateMediaAccountResp
|
8, // 44: Cast.Cast.UnbindManager:output_type -> Cast.UnbindManagerResp
|
||||||
8, // 45: Cast.Cast.UnbindManager:output_type -> Cast.UnbindManagerResp
|
42, // 45: Cast.Cast.BindManager:output_type -> google.protobuf.Empty
|
||||||
44, // 46: Cast.Cast.BindManager:output_type -> google.protobuf.Empty
|
11, // 46: Cast.Cast.UpdateWorkImage:output_type -> Cast.UpdateWorkImageResp
|
||||||
11, // 47: Cast.Cast.UpdateWorkImage:output_type -> Cast.UpdateWorkImageResp
|
14, // 47: Cast.Cast.UpdateWorkVideo:output_type -> Cast.UpdateWorkVideoResp
|
||||||
14, // 48: Cast.Cast.UpdateWorkVideo:output_type -> Cast.UpdateWorkVideoResp
|
16, // 48: Cast.Cast.WorkList:output_type -> Cast.WorkListResp
|
||||||
16, // 49: Cast.Cast.WorkList:output_type -> Cast.WorkListResp
|
19, // 49: Cast.Cast.WorkDetail:output_type -> Cast.WorkDetailResp
|
||||||
19, // 50: Cast.Cast.WorkDetail:output_type -> Cast.WorkDetailResp
|
42, // 50: Cast.Cast.UpdateStatus:output_type -> google.protobuf.Empty
|
||||||
44, // 51: Cast.Cast.UpdateStatus:output_type -> google.protobuf.Empty
|
22, // 51: Cast.Cast.MediaAccounts:output_type -> Cast.MediaAccountsResp
|
||||||
22, // 52: Cast.Cast.MediaAccounts:output_type -> Cast.MediaAccountsResp
|
24, // 52: Cast.Cast.MediaWorks:output_type -> Cast.MediaWorksResp
|
||||||
24, // 53: Cast.Cast.MediaWorks:output_type -> Cast.MediaWorksResp
|
26, // 53: Cast.Cast.RePublish:output_type -> Cast.RePublishResp
|
||||||
26, // 54: Cast.Cast.RePublish:output_type -> Cast.RePublishResp
|
42, // 54: Cast.Cast.DelWork:output_type -> google.protobuf.Empty
|
||||||
44, // 55: Cast.Cast.DelWork:output_type -> google.protobuf.Empty
|
29, // 55: Cast.Cast.WorkInfo:output_type -> Cast.WorkInfoResp
|
||||||
29, // 56: Cast.Cast.WorkInfo:output_type -> Cast.WorkInfoResp
|
31, // 56: Cast.Cast.OAuthAccount:output_type -> Cast.OAuthAccountResp
|
||||||
31, // 57: Cast.Cast.OAuthAccount:output_type -> Cast.OAuthAccountResp
|
35, // 57: Cast.Cast.OAuthCodeToToken:output_type -> Cast.OAuthCodeToTokenResp
|
||||||
35, // 58: Cast.Cast.OAuthCodeToToken:output_type -> Cast.OAuthCodeToTokenResp
|
37, // 58: Cast.Cast.RefreshToken:output_type -> Cast.RefreshTokenResp
|
||||||
37, // 59: Cast.Cast.RefreshToken:output_type -> Cast.RefreshTokenResp
|
42, // 59: Cast.Cast.Test:output_type -> google.protobuf.Empty
|
||||||
39, // 60: Cast.Cast.PublishMediaInfo:output_type -> Cast.PublishMediaInfoResp
|
42, // [42:60] is the sub-list for method output_type
|
||||||
44, // 61: Cast.Cast.Test:output_type -> google.protobuf.Empty
|
24, // [24:42] is the sub-list for method input_type
|
||||||
43, // [43:62] is the sub-list for method output_type
|
|
||||||
24, // [24:43] is the sub-list for method input_type
|
|
||||||
24, // [24:24] is the sub-list for extension type_name
|
24, // [24:24] is the sub-list for extension type_name
|
||||||
24, // [24:24] is the sub-list for extension extendee
|
24, // [24:24] is the sub-list for extension extendee
|
||||||
0, // [0:24] is the sub-list for field type_name
|
0, // [0:24] is the sub-list for field type_name
|
||||||
@ -3684,7 +3538,7 @@ func file_pb_fiee_cast_proto_init() {
|
|||||||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||||
RawDescriptor: unsafe.Slice(unsafe.StringData(file_pb_fiee_cast_proto_rawDesc), len(file_pb_fiee_cast_proto_rawDesc)),
|
RawDescriptor: unsafe.Slice(unsafe.StringData(file_pb_fiee_cast_proto_rawDesc), len(file_pb_fiee_cast_proto_rawDesc)),
|
||||||
NumEnums: 2,
|
NumEnums: 2,
|
||||||
NumMessages: 42,
|
NumMessages: 40,
|
||||||
NumExtensions: 0,
|
NumExtensions: 0,
|
||||||
NumServices: 1,
|
NumServices: 1,
|
||||||
},
|
},
|
||||||
|
|||||||
@ -4414,224 +4414,6 @@ var _ interface {
|
|||||||
ErrorName() string
|
ErrorName() string
|
||||||
} = RefreshTokenRespValidationError{}
|
} = RefreshTokenRespValidationError{}
|
||||||
|
|
||||||
// Validate checks the field values on PublishMediaInfoReq with the rules
|
|
||||||
// defined in the proto definition for this message. If any rules are
|
|
||||||
// violated, the first error encountered is returned, or nil if there are no violations.
|
|
||||||
func (m *PublishMediaInfoReq) Validate() error {
|
|
||||||
return m.validate(false)
|
|
||||||
}
|
|
||||||
|
|
||||||
// ValidateAll checks the field values on PublishMediaInfoReq with the rules
|
|
||||||
// defined in the proto definition for this message. If any rules are
|
|
||||||
// violated, the result is a list of violation errors wrapped in
|
|
||||||
// PublishMediaInfoReqMultiError, or nil if none found.
|
|
||||||
func (m *PublishMediaInfoReq) ValidateAll() error {
|
|
||||||
return m.validate(true)
|
|
||||||
}
|
|
||||||
|
|
||||||
func (m *PublishMediaInfoReq) validate(all bool) error {
|
|
||||||
if m == nil {
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
var errors []error
|
|
||||||
|
|
||||||
// no validation rules for WorkUuid
|
|
||||||
|
|
||||||
// no validation rules for PlatformID
|
|
||||||
|
|
||||||
// no validation rules for PlatformMediaUuid
|
|
||||||
|
|
||||||
if len(errors) > 0 {
|
|
||||||
return PublishMediaInfoReqMultiError(errors)
|
|
||||||
}
|
|
||||||
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
// PublishMediaInfoReqMultiError is an error wrapping multiple validation
|
|
||||||
// errors returned by PublishMediaInfoReq.ValidateAll() if the designated
|
|
||||||
// constraints aren't met.
|
|
||||||
type PublishMediaInfoReqMultiError []error
|
|
||||||
|
|
||||||
// Error returns a concatenation of all the error messages it wraps.
|
|
||||||
func (m PublishMediaInfoReqMultiError) Error() string {
|
|
||||||
msgs := make([]string, 0, len(m))
|
|
||||||
for _, err := range m {
|
|
||||||
msgs = append(msgs, err.Error())
|
|
||||||
}
|
|
||||||
return strings.Join(msgs, "; ")
|
|
||||||
}
|
|
||||||
|
|
||||||
// AllErrors returns a list of validation violation errors.
|
|
||||||
func (m PublishMediaInfoReqMultiError) AllErrors() []error { return m }
|
|
||||||
|
|
||||||
// PublishMediaInfoReqValidationError is the validation error returned by
|
|
||||||
// PublishMediaInfoReq.Validate if the designated constraints aren't met.
|
|
||||||
type PublishMediaInfoReqValidationError struct {
|
|
||||||
field string
|
|
||||||
reason string
|
|
||||||
cause error
|
|
||||||
key bool
|
|
||||||
}
|
|
||||||
|
|
||||||
// Field function returns field value.
|
|
||||||
func (e PublishMediaInfoReqValidationError) Field() string { return e.field }
|
|
||||||
|
|
||||||
// Reason function returns reason value.
|
|
||||||
func (e PublishMediaInfoReqValidationError) Reason() string { return e.reason }
|
|
||||||
|
|
||||||
// Cause function returns cause value.
|
|
||||||
func (e PublishMediaInfoReqValidationError) Cause() error { return e.cause }
|
|
||||||
|
|
||||||
// Key function returns key value.
|
|
||||||
func (e PublishMediaInfoReqValidationError) Key() bool { return e.key }
|
|
||||||
|
|
||||||
// ErrorName returns error name.
|
|
||||||
func (e PublishMediaInfoReqValidationError) ErrorName() string {
|
|
||||||
return "PublishMediaInfoReqValidationError"
|
|
||||||
}
|
|
||||||
|
|
||||||
// Error satisfies the builtin error interface
|
|
||||||
func (e PublishMediaInfoReqValidationError) Error() string {
|
|
||||||
cause := ""
|
|
||||||
if e.cause != nil {
|
|
||||||
cause = fmt.Sprintf(" | caused by: %v", e.cause)
|
|
||||||
}
|
|
||||||
|
|
||||||
key := ""
|
|
||||||
if e.key {
|
|
||||||
key = "key for "
|
|
||||||
}
|
|
||||||
|
|
||||||
return fmt.Sprintf(
|
|
||||||
"invalid %sPublishMediaInfoReq.%s: %s%s",
|
|
||||||
key,
|
|
||||||
e.field,
|
|
||||||
e.reason,
|
|
||||||
cause)
|
|
||||||
}
|
|
||||||
|
|
||||||
var _ error = PublishMediaInfoReqValidationError{}
|
|
||||||
|
|
||||||
var _ interface {
|
|
||||||
Field() string
|
|
||||||
Reason() string
|
|
||||||
Key() bool
|
|
||||||
Cause() error
|
|
||||||
ErrorName() string
|
|
||||||
} = PublishMediaInfoReqValidationError{}
|
|
||||||
|
|
||||||
// Validate checks the field values on PublishMediaInfoResp with the rules
|
|
||||||
// defined in the proto definition for this message. If any rules are
|
|
||||||
// violated, the first error encountered is returned, or nil if there are no violations.
|
|
||||||
func (m *PublishMediaInfoResp) Validate() error {
|
|
||||||
return m.validate(false)
|
|
||||||
}
|
|
||||||
|
|
||||||
// ValidateAll checks the field values on PublishMediaInfoResp with the rules
|
|
||||||
// defined in the proto definition for this message. If any rules are
|
|
||||||
// violated, the result is a list of violation errors wrapped in
|
|
||||||
// PublishMediaInfoRespMultiError, or nil if none found.
|
|
||||||
func (m *PublishMediaInfoResp) ValidateAll() error {
|
|
||||||
return m.validate(true)
|
|
||||||
}
|
|
||||||
|
|
||||||
func (m *PublishMediaInfoResp) validate(all bool) error {
|
|
||||||
if m == nil {
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
var errors []error
|
|
||||||
|
|
||||||
// no validation rules for WorkUuid
|
|
||||||
|
|
||||||
// no validation rules for PlatformID
|
|
||||||
|
|
||||||
// no validation rules for PlatformMediaUuid
|
|
||||||
|
|
||||||
// no validation rules for Info
|
|
||||||
|
|
||||||
if len(errors) > 0 {
|
|
||||||
return PublishMediaInfoRespMultiError(errors)
|
|
||||||
}
|
|
||||||
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
// PublishMediaInfoRespMultiError is an error wrapping multiple validation
|
|
||||||
// errors returned by PublishMediaInfoResp.ValidateAll() if the designated
|
|
||||||
// constraints aren't met.
|
|
||||||
type PublishMediaInfoRespMultiError []error
|
|
||||||
|
|
||||||
// Error returns a concatenation of all the error messages it wraps.
|
|
||||||
func (m PublishMediaInfoRespMultiError) Error() string {
|
|
||||||
msgs := make([]string, 0, len(m))
|
|
||||||
for _, err := range m {
|
|
||||||
msgs = append(msgs, err.Error())
|
|
||||||
}
|
|
||||||
return strings.Join(msgs, "; ")
|
|
||||||
}
|
|
||||||
|
|
||||||
// AllErrors returns a list of validation violation errors.
|
|
||||||
func (m PublishMediaInfoRespMultiError) AllErrors() []error { return m }
|
|
||||||
|
|
||||||
// PublishMediaInfoRespValidationError is the validation error returned by
|
|
||||||
// PublishMediaInfoResp.Validate if the designated constraints aren't met.
|
|
||||||
type PublishMediaInfoRespValidationError struct {
|
|
||||||
field string
|
|
||||||
reason string
|
|
||||||
cause error
|
|
||||||
key bool
|
|
||||||
}
|
|
||||||
|
|
||||||
// Field function returns field value.
|
|
||||||
func (e PublishMediaInfoRespValidationError) Field() string { return e.field }
|
|
||||||
|
|
||||||
// Reason function returns reason value.
|
|
||||||
func (e PublishMediaInfoRespValidationError) Reason() string { return e.reason }
|
|
||||||
|
|
||||||
// Cause function returns cause value.
|
|
||||||
func (e PublishMediaInfoRespValidationError) Cause() error { return e.cause }
|
|
||||||
|
|
||||||
// Key function returns key value.
|
|
||||||
func (e PublishMediaInfoRespValidationError) Key() bool { return e.key }
|
|
||||||
|
|
||||||
// ErrorName returns error name.
|
|
||||||
func (e PublishMediaInfoRespValidationError) ErrorName() string {
|
|
||||||
return "PublishMediaInfoRespValidationError"
|
|
||||||
}
|
|
||||||
|
|
||||||
// Error satisfies the builtin error interface
|
|
||||||
func (e PublishMediaInfoRespValidationError) Error() string {
|
|
||||||
cause := ""
|
|
||||||
if e.cause != nil {
|
|
||||||
cause = fmt.Sprintf(" | caused by: %v", e.cause)
|
|
||||||
}
|
|
||||||
|
|
||||||
key := ""
|
|
||||||
if e.key {
|
|
||||||
key = "key for "
|
|
||||||
}
|
|
||||||
|
|
||||||
return fmt.Sprintf(
|
|
||||||
"invalid %sPublishMediaInfoResp.%s: %s%s",
|
|
||||||
key,
|
|
||||||
e.field,
|
|
||||||
e.reason,
|
|
||||||
cause)
|
|
||||||
}
|
|
||||||
|
|
||||||
var _ error = PublishMediaInfoRespValidationError{}
|
|
||||||
|
|
||||||
var _ interface {
|
|
||||||
Field() string
|
|
||||||
Reason() string
|
|
||||||
Key() bool
|
|
||||||
Cause() error
|
|
||||||
ErrorName() string
|
|
||||||
} = PublishMediaInfoRespValidationError{}
|
|
||||||
|
|
||||||
// Validate checks the field values on WorkListResp_Info with the rules defined
|
// Validate checks the field values on WorkListResp_Info with the rules defined
|
||||||
// in the proto definition for this message. If any rules are violated, the
|
// in the proto definition for this message. If any rules are violated, the
|
||||||
// first error encountered is returned, or nil if there are no violations.
|
// first error encountered is returned, or nil if there are no violations.
|
||||||
|
|||||||
@ -46,7 +46,6 @@ type CastClient interface {
|
|||||||
OAuthAccount(ctx context.Context, in *OAuthAccountReq, opts ...grpc_go.CallOption) (*OAuthAccountResp, common.ErrorWithAttachment)
|
OAuthAccount(ctx context.Context, in *OAuthAccountReq, opts ...grpc_go.CallOption) (*OAuthAccountResp, common.ErrorWithAttachment)
|
||||||
OAuthCodeToToken(ctx context.Context, in *OAuthCodeToTokenReq, opts ...grpc_go.CallOption) (*OAuthCodeToTokenResp, common.ErrorWithAttachment)
|
OAuthCodeToToken(ctx context.Context, in *OAuthCodeToTokenReq, opts ...grpc_go.CallOption) (*OAuthCodeToTokenResp, common.ErrorWithAttachment)
|
||||||
RefreshToken(ctx context.Context, in *RefreshTokenReq, opts ...grpc_go.CallOption) (*RefreshTokenResp, common.ErrorWithAttachment)
|
RefreshToken(ctx context.Context, in *RefreshTokenReq, opts ...grpc_go.CallOption) (*RefreshTokenResp, common.ErrorWithAttachment)
|
||||||
PublishMediaInfo(ctx context.Context, in *PublishMediaInfoReq, opts ...grpc_go.CallOption) (*PublishMediaInfoResp, common.ErrorWithAttachment)
|
|
||||||
Test(ctx context.Context, in *emptypb.Empty, opts ...grpc_go.CallOption) (*emptypb.Empty, common.ErrorWithAttachment)
|
Test(ctx context.Context, in *emptypb.Empty, opts ...grpc_go.CallOption) (*emptypb.Empty, common.ErrorWithAttachment)
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -72,7 +71,6 @@ type CastClientImpl struct {
|
|||||||
OAuthAccount func(ctx context.Context, in *OAuthAccountReq) (*OAuthAccountResp, error)
|
OAuthAccount func(ctx context.Context, in *OAuthAccountReq) (*OAuthAccountResp, error)
|
||||||
OAuthCodeToToken func(ctx context.Context, in *OAuthCodeToTokenReq) (*OAuthCodeToTokenResp, error)
|
OAuthCodeToToken func(ctx context.Context, in *OAuthCodeToTokenReq) (*OAuthCodeToTokenResp, error)
|
||||||
RefreshToken func(ctx context.Context, in *RefreshTokenReq) (*RefreshTokenResp, error)
|
RefreshToken func(ctx context.Context, in *RefreshTokenReq) (*RefreshTokenResp, error)
|
||||||
PublishMediaInfo func(ctx context.Context, in *PublishMediaInfoReq) (*PublishMediaInfoResp, error)
|
|
||||||
Test func(ctx context.Context, in *emptypb.Empty) (*emptypb.Empty, error)
|
Test func(ctx context.Context, in *emptypb.Empty) (*emptypb.Empty, error)
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -190,12 +188,6 @@ func (c *castClient) RefreshToken(ctx context.Context, in *RefreshTokenReq, opts
|
|||||||
return out, c.cc.Invoke(ctx, "/"+interfaceKey+"/RefreshToken", in, out)
|
return out, c.cc.Invoke(ctx, "/"+interfaceKey+"/RefreshToken", in, out)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c *castClient) PublishMediaInfo(ctx context.Context, in *PublishMediaInfoReq, opts ...grpc_go.CallOption) (*PublishMediaInfoResp, common.ErrorWithAttachment) {
|
|
||||||
out := new(PublishMediaInfoResp)
|
|
||||||
interfaceKey := ctx.Value(constant.InterfaceKey).(string)
|
|
||||||
return out, c.cc.Invoke(ctx, "/"+interfaceKey+"/PublishMediaInfo", in, out)
|
|
||||||
}
|
|
||||||
|
|
||||||
func (c *castClient) Test(ctx context.Context, in *emptypb.Empty, opts ...grpc_go.CallOption) (*emptypb.Empty, common.ErrorWithAttachment) {
|
func (c *castClient) Test(ctx context.Context, in *emptypb.Empty, opts ...grpc_go.CallOption) (*emptypb.Empty, common.ErrorWithAttachment) {
|
||||||
out := new(emptypb.Empty)
|
out := new(emptypb.Empty)
|
||||||
interfaceKey := ctx.Value(constant.InterfaceKey).(string)
|
interfaceKey := ctx.Value(constant.InterfaceKey).(string)
|
||||||
@ -223,7 +215,6 @@ type CastServer interface {
|
|||||||
OAuthAccount(context.Context, *OAuthAccountReq) (*OAuthAccountResp, error)
|
OAuthAccount(context.Context, *OAuthAccountReq) (*OAuthAccountResp, error)
|
||||||
OAuthCodeToToken(context.Context, *OAuthCodeToTokenReq) (*OAuthCodeToTokenResp, error)
|
OAuthCodeToToken(context.Context, *OAuthCodeToTokenReq) (*OAuthCodeToTokenResp, error)
|
||||||
RefreshToken(context.Context, *RefreshTokenReq) (*RefreshTokenResp, error)
|
RefreshToken(context.Context, *RefreshTokenReq) (*RefreshTokenResp, error)
|
||||||
PublishMediaInfo(context.Context, *PublishMediaInfoReq) (*PublishMediaInfoResp, error)
|
|
||||||
Test(context.Context, *emptypb.Empty) (*emptypb.Empty, error)
|
Test(context.Context, *emptypb.Empty) (*emptypb.Empty, error)
|
||||||
mustEmbedUnimplementedCastServer()
|
mustEmbedUnimplementedCastServer()
|
||||||
}
|
}
|
||||||
@ -284,9 +275,6 @@ func (UnimplementedCastServer) OAuthCodeToToken(context.Context, *OAuthCodeToTok
|
|||||||
func (UnimplementedCastServer) RefreshToken(context.Context, *RefreshTokenReq) (*RefreshTokenResp, error) {
|
func (UnimplementedCastServer) RefreshToken(context.Context, *RefreshTokenReq) (*RefreshTokenResp, error) {
|
||||||
return nil, status.Errorf(codes.Unimplemented, "method RefreshToken not implemented")
|
return nil, status.Errorf(codes.Unimplemented, "method RefreshToken not implemented")
|
||||||
}
|
}
|
||||||
func (UnimplementedCastServer) PublishMediaInfo(context.Context, *PublishMediaInfoReq) (*PublishMediaInfoResp, error) {
|
|
||||||
return nil, status.Errorf(codes.Unimplemented, "method PublishMediaInfo not implemented")
|
|
||||||
}
|
|
||||||
func (UnimplementedCastServer) Test(context.Context, *emptypb.Empty) (*emptypb.Empty, error) {
|
func (UnimplementedCastServer) Test(context.Context, *emptypb.Empty) (*emptypb.Empty, error) {
|
||||||
return nil, status.Errorf(codes.Unimplemented, "method Test not implemented")
|
return nil, status.Errorf(codes.Unimplemented, "method Test not implemented")
|
||||||
}
|
}
|
||||||
@ -811,35 +799,6 @@ func _Cast_RefreshToken_Handler(srv interface{}, ctx context.Context, dec func(i
|
|||||||
return interceptor(ctx, in, info, handler)
|
return interceptor(ctx, in, info, handler)
|
||||||
}
|
}
|
||||||
|
|
||||||
func _Cast_PublishMediaInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc_go.UnaryServerInterceptor) (interface{}, error) {
|
|
||||||
in := new(PublishMediaInfoReq)
|
|
||||||
if err := dec(in); err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
base := srv.(dubbo3.Dubbo3GrpcService)
|
|
||||||
args := []interface{}{}
|
|
||||||
args = append(args, in)
|
|
||||||
md, _ := metadata.FromIncomingContext(ctx)
|
|
||||||
invAttachment := make(map[string]interface{}, len(md))
|
|
||||||
for k, v := range md {
|
|
||||||
invAttachment[k] = v
|
|
||||||
}
|
|
||||||
invo := invocation.NewRPCInvocation("PublishMediaInfo", args, invAttachment)
|
|
||||||
if interceptor == nil {
|
|
||||||
result := base.XXX_GetProxyImpl().Invoke(ctx, invo)
|
|
||||||
return result, result.Error()
|
|
||||||
}
|
|
||||||
info := &grpc_go.UnaryServerInfo{
|
|
||||||
Server: srv,
|
|
||||||
FullMethod: ctx.Value("XXX_TRIPLE_GO_INTERFACE_NAME").(string),
|
|
||||||
}
|
|
||||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
||||||
result := base.XXX_GetProxyImpl().Invoke(ctx, invo)
|
|
||||||
return result, result.Error()
|
|
||||||
}
|
|
||||||
return interceptor(ctx, in, info, handler)
|
|
||||||
}
|
|
||||||
|
|
||||||
func _Cast_Test_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc_go.UnaryServerInterceptor) (interface{}, error) {
|
func _Cast_Test_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc_go.UnaryServerInterceptor) (interface{}, error) {
|
||||||
in := new(emptypb.Empty)
|
in := new(emptypb.Empty)
|
||||||
if err := dec(in); err != nil {
|
if err := dec(in); err != nil {
|
||||||
@ -944,10 +903,6 @@ var Cast_ServiceDesc = grpc_go.ServiceDesc{
|
|||||||
MethodName: "RefreshToken",
|
MethodName: "RefreshToken",
|
||||||
Handler: _Cast_RefreshToken_Handler,
|
Handler: _Cast_RefreshToken_Handler,
|
||||||
},
|
},
|
||||||
{
|
|
||||||
MethodName: "PublishMediaInfo",
|
|
||||||
Handler: _Cast_PublishMediaInfo_Handler,
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
MethodName: "Test",
|
MethodName: "Test",
|
||||||
Handler: _Cast_Test_Handler,
|
Handler: _Cast_Test_Handler,
|
||||||
|
|||||||
@ -38,7 +38,6 @@ func MediaRouter(r *gin.RouterGroup) {
|
|||||||
work.POST("republish", serviceCast.RePublish)
|
work.POST("republish", serviceCast.RePublish)
|
||||||
work.POST("delete", serviceCast.DelWork)
|
work.POST("delete", serviceCast.DelWork)
|
||||||
work.POST("remind", serviceCast.Remind)
|
work.POST("remind", serviceCast.Remind)
|
||||||
work.POST("publish-info", serviceCast.PublishInfo)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
social := noAuth.Group("social")
|
social := noAuth.Group("social")
|
||||||
|
|||||||
@ -402,20 +402,3 @@ func Remind(ctx *gin.Context) {
|
|||||||
service.Success(ctx, nil)
|
service.Success(ctx, nil)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
func PublishInfo(ctx *gin.Context) {
|
|
||||||
var req *cast.PublishMediaInfoReq
|
|
||||||
var resp *cast.PublishMediaInfoResp
|
|
||||||
var err error
|
|
||||||
if err = ctx.ShouldBind(&req); err != nil {
|
|
||||||
service.Error(ctx, err)
|
|
||||||
return
|
|
||||||
}
|
|
||||||
resp, err = service.CastProvider.PublishMediaInfo(context.Background(), req)
|
|
||||||
if err != nil {
|
|
||||||
service.Error(ctx, err)
|
|
||||||
return
|
|
||||||
}
|
|
||||||
service.Success(ctx, resp)
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user