Compare commits

...

3 Commits

Author SHA1 Message Date
85567c24a5 Update work.go 2025-06-25 11:08:55 +08:00
ce9deac980 1 2025-06-25 10:25:24 +08:00
e0d7b3775c 添加作品数量 2025-06-24 18:27:55 +08:00
9 changed files with 616 additions and 125 deletions

View File

@ -84,6 +84,7 @@ const (
WorkActionENUM_APPROVAL WorkActionENUM = 2 // 审批
WorkActionENUM_APPROVAL_PASS WorkActionENUM = 3 // 审批通过
WorkActionENUM_APPROVAL_REJECT WorkActionENUM = 4 // 审批驳回
WorkActionENUM_APPROVAL_DELETE WorkActionENUM = 5 // 审批删除
)
// Enum value maps for WorkActionENUM.
@ -94,6 +95,7 @@ var (
2: "APPROVAL",
3: "APPROVAL_PASS",
4: "APPROVAL_REJECT",
5: "APPROVAL_DELETE",
}
WorkActionENUM_value = map[string]int32{
"NO_ACTION": 0,
@ -101,6 +103,7 @@ var (
"APPROVAL": 2,
"APPROVAL_PASS": 3,
"APPROVAL_REJECT": 4,
"APPROVAL_DELETE": 5,
}
)
@ -2144,6 +2147,128 @@ func (x *DelWorkReq) GetWorkUuid() string {
return ""
}
type WorkInfoReq struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
WorkUuid string `protobuf:"bytes,1,opt,name=workUuid,proto3" json:"workUuid"`
}
func (x *WorkInfoReq) Reset() {
*x = WorkInfoReq{}
mi := &file_pb_fiee_cast_proto_msgTypes[26]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *WorkInfoReq) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*WorkInfoReq) ProtoMessage() {}
func (x *WorkInfoReq) ProtoReflect() protoreflect.Message {
mi := &file_pb_fiee_cast_proto_msgTypes[26]
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 WorkInfoReq.ProtoReflect.Descriptor instead.
func (*WorkInfoReq) Descriptor() ([]byte, []int) {
return file_pb_fiee_cast_proto_rawDescGZIP(), []int{26}
}
func (x *WorkInfoReq) GetWorkUuid() string {
if x != nil {
return x.WorkUuid
}
return ""
}
type WorkInfoResp struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
WorkStatus uint32 `protobuf:"varint,1,opt,name=workStatus,proto3" json:"workStatus"`
ArtistUuid string `protobuf:"bytes,2,opt,name=artistUuid,proto3" json:"artistUuid"`
ArtistName string `protobuf:"bytes,3,opt,name=artistName,proto3" json:"artistName"`
ArtistPhone string `protobuf:"bytes,4,opt,name=artistPhone,proto3" json:"artistPhone"`
ArtistPhoneAreaCode string `protobuf:"bytes,5,opt,name=artistPhoneAreaCode,proto3" json:"artistPhoneAreaCode"`
}
func (x *WorkInfoResp) Reset() {
*x = WorkInfoResp{}
mi := &file_pb_fiee_cast_proto_msgTypes[27]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *WorkInfoResp) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*WorkInfoResp) ProtoMessage() {}
func (x *WorkInfoResp) ProtoReflect() protoreflect.Message {
mi := &file_pb_fiee_cast_proto_msgTypes[27]
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 WorkInfoResp.ProtoReflect.Descriptor instead.
func (*WorkInfoResp) Descriptor() ([]byte, []int) {
return file_pb_fiee_cast_proto_rawDescGZIP(), []int{27}
}
func (x *WorkInfoResp) GetWorkStatus() uint32 {
if x != nil {
return x.WorkStatus
}
return 0
}
func (x *WorkInfoResp) GetArtistUuid() string {
if x != nil {
return x.ArtistUuid
}
return ""
}
func (x *WorkInfoResp) GetArtistName() string {
if x != nil {
return x.ArtistName
}
return ""
}
func (x *WorkInfoResp) GetArtistPhone() string {
if x != nil {
return x.ArtistPhone
}
return ""
}
func (x *WorkInfoResp) GetArtistPhoneAreaCode() string {
if x != nil {
return x.ArtistPhoneAreaCode
}
return ""
}
// youtube
type OAuthYoutubeUrlReq struct {
state protoimpl.MessageState
@ -2155,7 +2280,7 @@ type OAuthYoutubeUrlReq struct {
func (x *OAuthYoutubeUrlReq) Reset() {
*x = OAuthYoutubeUrlReq{}
mi := &file_pb_fiee_cast_proto_msgTypes[26]
mi := &file_pb_fiee_cast_proto_msgTypes[28]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@ -2167,7 +2292,7 @@ func (x *OAuthYoutubeUrlReq) String() string {
func (*OAuthYoutubeUrlReq) ProtoMessage() {}
func (x *OAuthYoutubeUrlReq) ProtoReflect() protoreflect.Message {
mi := &file_pb_fiee_cast_proto_msgTypes[26]
mi := &file_pb_fiee_cast_proto_msgTypes[28]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@ -2180,7 +2305,7 @@ func (x *OAuthYoutubeUrlReq) ProtoReflect() protoreflect.Message {
// Deprecated: Use OAuthYoutubeUrlReq.ProtoReflect.Descriptor instead.
func (*OAuthYoutubeUrlReq) Descriptor() ([]byte, []int) {
return file_pb_fiee_cast_proto_rawDescGZIP(), []int{26}
return file_pb_fiee_cast_proto_rawDescGZIP(), []int{28}
}
func (x *OAuthYoutubeUrlReq) GetMediaAccountUuid() string {
@ -2200,7 +2325,7 @@ type OAuthYoutubeUrlResp struct {
func (x *OAuthYoutubeUrlResp) Reset() {
*x = OAuthYoutubeUrlResp{}
mi := &file_pb_fiee_cast_proto_msgTypes[27]
mi := &file_pb_fiee_cast_proto_msgTypes[29]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@ -2212,7 +2337,7 @@ func (x *OAuthYoutubeUrlResp) String() string {
func (*OAuthYoutubeUrlResp) ProtoMessage() {}
func (x *OAuthYoutubeUrlResp) ProtoReflect() protoreflect.Message {
mi := &file_pb_fiee_cast_proto_msgTypes[27]
mi := &file_pb_fiee_cast_proto_msgTypes[29]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@ -2225,7 +2350,7 @@ func (x *OAuthYoutubeUrlResp) ProtoReflect() protoreflect.Message {
// Deprecated: Use OAuthYoutubeUrlResp.ProtoReflect.Descriptor instead.
func (*OAuthYoutubeUrlResp) Descriptor() ([]byte, []int) {
return file_pb_fiee_cast_proto_rawDescGZIP(), []int{27}
return file_pb_fiee_cast_proto_rawDescGZIP(), []int{29}
}
func (x *OAuthYoutubeUrlResp) GetUrl() string {
@ -2246,7 +2371,7 @@ type OAuthYoutubeTokenReq struct {
func (x *OAuthYoutubeTokenReq) Reset() {
*x = OAuthYoutubeTokenReq{}
mi := &file_pb_fiee_cast_proto_msgTypes[28]
mi := &file_pb_fiee_cast_proto_msgTypes[30]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@ -2258,7 +2383,7 @@ func (x *OAuthYoutubeTokenReq) String() string {
func (*OAuthYoutubeTokenReq) ProtoMessage() {}
func (x *OAuthYoutubeTokenReq) ProtoReflect() protoreflect.Message {
mi := &file_pb_fiee_cast_proto_msgTypes[28]
mi := &file_pb_fiee_cast_proto_msgTypes[30]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@ -2271,7 +2396,7 @@ func (x *OAuthYoutubeTokenReq) ProtoReflect() protoreflect.Message {
// Deprecated: Use OAuthYoutubeTokenReq.ProtoReflect.Descriptor instead.
func (*OAuthYoutubeTokenReq) Descriptor() ([]byte, []int) {
return file_pb_fiee_cast_proto_rawDescGZIP(), []int{28}
return file_pb_fiee_cast_proto_rawDescGZIP(), []int{30}
}
func (x *OAuthYoutubeTokenReq) GetMediaAccountUuid() string {
@ -2300,7 +2425,7 @@ type OAuthYoutubeTokenResp struct {
func (x *OAuthYoutubeTokenResp) Reset() {
*x = OAuthYoutubeTokenResp{}
mi := &file_pb_fiee_cast_proto_msgTypes[29]
mi := &file_pb_fiee_cast_proto_msgTypes[31]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@ -2312,7 +2437,7 @@ func (x *OAuthYoutubeTokenResp) String() string {
func (*OAuthYoutubeTokenResp) ProtoMessage() {}
func (x *OAuthYoutubeTokenResp) ProtoReflect() protoreflect.Message {
mi := &file_pb_fiee_cast_proto_msgTypes[29]
mi := &file_pb_fiee_cast_proto_msgTypes[31]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@ -2325,7 +2450,7 @@ func (x *OAuthYoutubeTokenResp) ProtoReflect() protoreflect.Message {
// Deprecated: Use OAuthYoutubeTokenResp.ProtoReflect.Descriptor instead.
func (*OAuthYoutubeTokenResp) Descriptor() ([]byte, []int) {
return file_pb_fiee_cast_proto_rawDescGZIP(), []int{29}
return file_pb_fiee_cast_proto_rawDescGZIP(), []int{31}
}
func (x *OAuthYoutubeTokenResp) GetAccessToken() string {
@ -2371,7 +2496,7 @@ type WorkListResp_Info struct {
func (x *WorkListResp_Info) Reset() {
*x = WorkListResp_Info{}
mi := &file_pb_fiee_cast_proto_msgTypes[30]
mi := &file_pb_fiee_cast_proto_msgTypes[32]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@ -2383,7 +2508,7 @@ func (x *WorkListResp_Info) String() string {
func (*WorkListResp_Info) ProtoMessage() {}
func (x *WorkListResp_Info) ProtoReflect() protoreflect.Message {
mi := &file_pb_fiee_cast_proto_msgTypes[30]
mi := &file_pb_fiee_cast_proto_msgTypes[32]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@ -2505,7 +2630,7 @@ type MediaAccountsResp_Info struct {
func (x *MediaAccountsResp_Info) Reset() {
*x = MediaAccountsResp_Info{}
mi := &file_pb_fiee_cast_proto_msgTypes[32]
mi := &file_pb_fiee_cast_proto_msgTypes[34]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@ -2517,7 +2642,7 @@ func (x *MediaAccountsResp_Info) String() string {
func (*MediaAccountsResp_Info) ProtoMessage() {}
func (x *MediaAccountsResp_Info) ProtoReflect() protoreflect.Message {
mi := &file_pb_fiee_cast_proto_msgTypes[32]
mi := &file_pb_fiee_cast_proto_msgTypes[34]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@ -2594,7 +2719,7 @@ type MediaWorksResp_Info struct {
func (x *MediaWorksResp_Info) Reset() {
*x = MediaWorksResp_Info{}
mi := &file_pb_fiee_cast_proto_msgTypes[33]
mi := &file_pb_fiee_cast_proto_msgTypes[35]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@ -2606,7 +2731,7 @@ func (x *MediaWorksResp_Info) String() string {
func (*MediaWorksResp_Info) ProtoMessage() {}
func (x *MediaWorksResp_Info) ProtoReflect() protoreflect.Message {
mi := &file_pb_fiee_cast_proto_msgTypes[33]
mi := &file_pb_fiee_cast_proto_msgTypes[35]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@ -3107,7 +3232,22 @@ var file_pb_fiee_cast_proto_rawDesc = []byte{
0x01, 0x28, 0x05, 0x52, 0x0c, 0x77, 0x6f, 0x72, 0x6b, 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72,
0x79, 0x22, 0x28, 0x0a, 0x0a, 0x44, 0x65, 0x6c, 0x57, 0x6f, 0x72, 0x6b, 0x52, 0x65, 0x71, 0x12,
0x1a, 0x0a, 0x08, 0x77, 0x6f, 0x72, 0x6b, 0x55, 0x75, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28,
0x09, 0x52, 0x08, 0x77, 0x6f, 0x72, 0x6b, 0x55, 0x75, 0x69, 0x64, 0x22, 0x40, 0x0a, 0x12, 0x4f,
0x09, 0x52, 0x08, 0x77, 0x6f, 0x72, 0x6b, 0x55, 0x75, 0x69, 0x64, 0x22, 0x29, 0x0a, 0x0b, 0x57,
0x6f, 0x72, 0x6b, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71, 0x12, 0x1a, 0x0a, 0x08, 0x77, 0x6f,
0x72, 0x6b, 0x55, 0x75, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x77, 0x6f,
0x72, 0x6b, 0x55, 0x75, 0x69, 0x64, 0x22, 0xc2, 0x01, 0x0a, 0x0c, 0x57, 0x6f, 0x72, 0x6b, 0x49,
0x6e, 0x66, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x12, 0x1e, 0x0a, 0x0a, 0x77, 0x6f, 0x72, 0x6b, 0x53,
0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0a, 0x77, 0x6f, 0x72,
0x6b, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x1e, 0x0a, 0x0a, 0x61, 0x72, 0x74, 0x69, 0x73,
0x74, 0x55, 0x75, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x61, 0x72, 0x74,
0x69, 0x73, 0x74, 0x55, 0x75, 0x69, 0x64, 0x12, 0x1e, 0x0a, 0x0a, 0x61, 0x72, 0x74, 0x69, 0x73,
0x74, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x61, 0x72, 0x74,
0x69, 0x73, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x61, 0x72, 0x74, 0x69, 0x73,
0x74, 0x50, 0x68, 0x6f, 0x6e, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x61, 0x72,
0x74, 0x69, 0x73, 0x74, 0x50, 0x68, 0x6f, 0x6e, 0x65, 0x12, 0x30, 0x0a, 0x13, 0x61, 0x72, 0x74,
0x69, 0x73, 0x74, 0x50, 0x68, 0x6f, 0x6e, 0x65, 0x41, 0x72, 0x65, 0x61, 0x43, 0x6f, 0x64, 0x65,
0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x13, 0x61, 0x72, 0x74, 0x69, 0x73, 0x74, 0x50, 0x68,
0x6f, 0x6e, 0x65, 0x41, 0x72, 0x65, 0x61, 0x43, 0x6f, 0x64, 0x65, 0x22, 0x40, 0x0a, 0x12, 0x4f,
0x41, 0x75, 0x74, 0x68, 0x59, 0x6f, 0x75, 0x74, 0x75, 0x62, 0x65, 0x55, 0x72, 0x6c, 0x52, 0x65,
0x71, 0x12, 0x2a, 0x0a, 0x10, 0x6d, 0x65, 0x64, 0x69, 0x61, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e,
0x74, 0x55, 0x75, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x10, 0x6d, 0x65, 0x64,
@ -3131,78 +3271,83 @@ var file_pb_fiee_cast_proto_rawDesc = []byte{
0x0e, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x49, 0x44, 0x45, 0x4e, 0x55, 0x4d, 0x12,
0x0b, 0x0a, 0x07, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x12, 0x0a, 0x0a, 0x06,
0x54, 0x49, 0x4b, 0x54, 0x4f, 0x4b, 0x10, 0x01, 0x12, 0x0b, 0x0a, 0x07, 0x59, 0x4f, 0x55, 0x54,
0x55, 0x42, 0x45, 0x10, 0x02, 0x12, 0x07, 0x0a, 0x03, 0x49, 0x4e, 0x53, 0x10, 0x03, 0x2a, 0x62,
0x55, 0x42, 0x45, 0x10, 0x02, 0x12, 0x07, 0x0a, 0x03, 0x49, 0x4e, 0x53, 0x10, 0x03, 0x2a, 0x77,
0x0a, 0x0e, 0x57, 0x6f, 0x72, 0x6b, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x4e, 0x55, 0x4d,
0x12, 0x0d, 0x0a, 0x09, 0x4e, 0x4f, 0x5f, 0x41, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x10, 0x00, 0x12,
0x0b, 0x0a, 0x07, 0x43, 0x4f, 0x4e, 0x46, 0x49, 0x52, 0x4d, 0x10, 0x01, 0x12, 0x0c, 0x0a, 0x08,
0x41, 0x50, 0x50, 0x52, 0x4f, 0x56, 0x41, 0x4c, 0x10, 0x02, 0x12, 0x11, 0x0a, 0x0d, 0x41, 0x50,
0x50, 0x52, 0x4f, 0x56, 0x41, 0x4c, 0x5f, 0x50, 0x41, 0x53, 0x53, 0x10, 0x03, 0x12, 0x13, 0x0a,
0x0f, 0x41, 0x50, 0x50, 0x52, 0x4f, 0x56, 0x41, 0x4c, 0x5f, 0x52, 0x45, 0x4a, 0x45, 0x43, 0x54,
0x10, 0x04, 0x32, 0xed, 0x07, 0x0a, 0x04, 0x43, 0x61, 0x73, 0x74, 0x12, 0x42, 0x0a, 0x0d, 0x4d,
0x65, 0x64, 0x69, 0x61, 0x55, 0x73, 0x65, 0x72, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x16, 0x2e, 0x43,
0x61, 0x73, 0x74, 0x2e, 0x4d, 0x65, 0x64, 0x69, 0x61, 0x55, 0x73, 0x65, 0x72, 0x4c, 0x69, 0x73,
0x74, 0x52, 0x65, 0x71, 0x1a, 0x17, 0x2e, 0x43, 0x61, 0x73, 0x74, 0x2e, 0x4d, 0x65, 0x64, 0x69,
0x61, 0x55, 0x73, 0x65, 0x72, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x22, 0x00, 0x12,
0x51, 0x0a, 0x12, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x65, 0x64, 0x69, 0x61, 0x41, 0x63,
0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x1b, 0x2e, 0x43, 0x61, 0x73, 0x74, 0x2e, 0x55, 0x70, 0x64,
0x61, 0x74, 0x65, 0x4d, 0x65, 0x64, 0x69, 0x61, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52,
0x65, 0x71, 0x1a, 0x1c, 0x2e, 0x43, 0x61, 0x73, 0x74, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65,
0x4d, 0x65, 0x64, 0x69, 0x61, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70,
0x22, 0x00, 0x12, 0x42, 0x0a, 0x0d, 0x55, 0x6e, 0x62, 0x69, 0x6e, 0x64, 0x4d, 0x61, 0x6e, 0x61,
0x67, 0x65, 0x72, 0x12, 0x16, 0x2e, 0x43, 0x61, 0x73, 0x74, 0x2e, 0x55, 0x6e, 0x62, 0x69, 0x6e,
0x64, 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x52, 0x65, 0x71, 0x1a, 0x17, 0x2e, 0x43, 0x61,
0x73, 0x74, 0x2e, 0x55, 0x6e, 0x62, 0x69, 0x6e, 0x64, 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72,
0x52, 0x65, 0x73, 0x70, 0x22, 0x00, 0x12, 0x3d, 0x0a, 0x0b, 0x42, 0x69, 0x6e, 0x64, 0x4d, 0x61,
0x6e, 0x61, 0x67, 0x65, 0x72, 0x12, 0x14, 0x2e, 0x43, 0x61, 0x73, 0x74, 0x2e, 0x42, 0x69, 0x6e,
0x64, 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x52, 0x65, 0x71, 0x1a, 0x16, 0x2e, 0x67, 0x6f,
0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d,
0x70, 0x74, 0x79, 0x22, 0x00, 0x12, 0x48, 0x0a, 0x0f, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x57,
0x6f, 0x72, 0x6b, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x12, 0x18, 0x2e, 0x43, 0x61, 0x73, 0x74, 0x2e,
0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x57, 0x6f, 0x72, 0x6b, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x52,
0x65, 0x71, 0x1a, 0x19, 0x2e, 0x43, 0x61, 0x73, 0x74, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65,
0x57, 0x6f, 0x72, 0x6b, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x22, 0x00, 0x12,
0x48, 0x0a, 0x0f, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x57, 0x6f, 0x72, 0x6b, 0x56, 0x69, 0x64,
0x65, 0x6f, 0x12, 0x18, 0x2e, 0x43, 0x61, 0x73, 0x74, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65,
0x57, 0x6f, 0x72, 0x6b, 0x56, 0x69, 0x64, 0x65, 0x6f, 0x52, 0x65, 0x71, 0x1a, 0x19, 0x2e, 0x43,
0x61, 0x73, 0x74, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x57, 0x6f, 0x72, 0x6b, 0x56, 0x69,
0x64, 0x65, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x22, 0x00, 0x12, 0x33, 0x0a, 0x08, 0x57, 0x6f, 0x72,
0x6b, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x11, 0x2e, 0x43, 0x61, 0x73, 0x74, 0x2e, 0x57, 0x6f, 0x72,
0x6b, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x1a, 0x12, 0x2e, 0x43, 0x61, 0x73, 0x74, 0x2e,
0x57, 0x6f, 0x72, 0x6b, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x22, 0x00, 0x12, 0x39,
0x0a, 0x0a, 0x57, 0x6f, 0x72, 0x6b, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x12, 0x13, 0x2e, 0x43,
0x61, 0x73, 0x74, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x52, 0x65,
0x71, 0x1a, 0x14, 0x2e, 0x43, 0x61, 0x73, 0x74, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x44, 0x65, 0x74,
0x61, 0x69, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x22, 0x00, 0x12, 0x3f, 0x0a, 0x0c, 0x55, 0x70, 0x64,
0x61, 0x74, 0x65, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x15, 0x2e, 0x43, 0x61, 0x73, 0x74,
0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x71,
0x10, 0x04, 0x12, 0x13, 0x0a, 0x0f, 0x41, 0x50, 0x50, 0x52, 0x4f, 0x56, 0x41, 0x4c, 0x5f, 0x44,
0x45, 0x4c, 0x45, 0x54, 0x45, 0x10, 0x05, 0x32, 0xa2, 0x08, 0x0a, 0x04, 0x43, 0x61, 0x73, 0x74,
0x12, 0x42, 0x0a, 0x0d, 0x4d, 0x65, 0x64, 0x69, 0x61, 0x55, 0x73, 0x65, 0x72, 0x4c, 0x69, 0x73,
0x74, 0x12, 0x16, 0x2e, 0x43, 0x61, 0x73, 0x74, 0x2e, 0x4d, 0x65, 0x64, 0x69, 0x61, 0x55, 0x73,
0x65, 0x72, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x1a, 0x17, 0x2e, 0x43, 0x61, 0x73, 0x74,
0x2e, 0x4d, 0x65, 0x64, 0x69, 0x61, 0x55, 0x73, 0x65, 0x72, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65,
0x73, 0x70, 0x22, 0x00, 0x12, 0x51, 0x0a, 0x12, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x65,
0x64, 0x69, 0x61, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x1b, 0x2e, 0x43, 0x61, 0x73,
0x74, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x65, 0x64, 0x69, 0x61, 0x41, 0x63, 0x63,
0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x1a, 0x1c, 0x2e, 0x43, 0x61, 0x73, 0x74, 0x2e, 0x55,
0x70, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x65, 0x64, 0x69, 0x61, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e,
0x74, 0x52, 0x65, 0x73, 0x70, 0x22, 0x00, 0x12, 0x42, 0x0a, 0x0d, 0x55, 0x6e, 0x62, 0x69, 0x6e,
0x64, 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x12, 0x16, 0x2e, 0x43, 0x61, 0x73, 0x74, 0x2e,
0x55, 0x6e, 0x62, 0x69, 0x6e, 0x64, 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x52, 0x65, 0x71,
0x1a, 0x17, 0x2e, 0x43, 0x61, 0x73, 0x74, 0x2e, 0x55, 0x6e, 0x62, 0x69, 0x6e, 0x64, 0x4d, 0x61,
0x6e, 0x61, 0x67, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x22, 0x00, 0x12, 0x3d, 0x0a, 0x0b, 0x42,
0x69, 0x6e, 0x64, 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x12, 0x14, 0x2e, 0x43, 0x61, 0x73,
0x74, 0x2e, 0x42, 0x69, 0x6e, 0x64, 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x52, 0x65, 0x71,
0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62,
0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x00, 0x12, 0x42, 0x0a, 0x0d, 0x4d, 0x65,
0x64, 0x69, 0x61, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x12, 0x16, 0x2e, 0x43, 0x61,
0x73, 0x74, 0x2e, 0x4d, 0x65, 0x64, 0x69, 0x61, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73,
0x52, 0x65, 0x71, 0x1a, 0x17, 0x2e, 0x43, 0x61, 0x73, 0x74, 0x2e, 0x4d, 0x65, 0x64, 0x69, 0x61,
0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x22, 0x00, 0x12, 0x39,
0x0a, 0x0a, 0x4d, 0x65, 0x64, 0x69, 0x61, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x12, 0x13, 0x2e, 0x43,
0x61, 0x73, 0x74, 0x2e, 0x4d, 0x65, 0x64, 0x69, 0x61, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x52, 0x65,
0x71, 0x1a, 0x14, 0x2e, 0x43, 0x61, 0x73, 0x74, 0x2e, 0x4d, 0x65, 0x64, 0x69, 0x61, 0x57, 0x6f,
0x72, 0x6b, 0x73, 0x52, 0x65, 0x73, 0x70, 0x22, 0x00, 0x12, 0x36, 0x0a, 0x09, 0x52, 0x65, 0x50,
0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x12, 0x12, 0x2e, 0x43, 0x61, 0x73, 0x74, 0x2e, 0x52, 0x65,
0x50, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x52, 0x65, 0x71, 0x1a, 0x13, 0x2e, 0x43, 0x61, 0x73,
0x74, 0x2e, 0x52, 0x65, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x52, 0x65, 0x73, 0x70, 0x22,
0x00, 0x12, 0x35, 0x0a, 0x07, 0x44, 0x65, 0x6c, 0x57, 0x6f, 0x72, 0x6b, 0x12, 0x10, 0x2e, 0x43,
0x61, 0x73, 0x74, 0x2e, 0x44, 0x65, 0x6c, 0x57, 0x6f, 0x72, 0x6b, 0x52, 0x65, 0x71, 0x1a, 0x16,
0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66,
0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x00, 0x12, 0x48, 0x0a, 0x0f, 0x4f, 0x41, 0x75, 0x74,
0x68, 0x59, 0x6f, 0x75, 0x74, 0x75, 0x62, 0x65, 0x55, 0x72, 0x6c, 0x12, 0x18, 0x2e, 0x43, 0x61,
0x73, 0x74, 0x2e, 0x4f, 0x41, 0x75, 0x74, 0x68, 0x59, 0x6f, 0x75, 0x74, 0x75, 0x62, 0x65, 0x55,
0x72, 0x6c, 0x52, 0x65, 0x71, 0x1a, 0x19, 0x2e, 0x43, 0x61, 0x73, 0x74, 0x2e, 0x4f, 0x41, 0x75,
0x74, 0x68, 0x59, 0x6f, 0x75, 0x74, 0x75, 0x62, 0x65, 0x55, 0x72, 0x6c, 0x52, 0x65, 0x73, 0x70,
0x22, 0x00, 0x12, 0x4e, 0x0a, 0x11, 0x4f, 0x41, 0x75, 0x74, 0x68, 0x59, 0x6f, 0x75, 0x74, 0x75,
0x62, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x1a, 0x2e, 0x43, 0x61, 0x73, 0x74, 0x2e, 0x4f,
0x41, 0x75, 0x74, 0x68, 0x59, 0x6f, 0x75, 0x74, 0x75, 0x62, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e,
0x52, 0x65, 0x71, 0x1a, 0x1b, 0x2e, 0x43, 0x61, 0x73, 0x74, 0x2e, 0x4f, 0x41, 0x75, 0x74, 0x68,
0x59, 0x6f, 0x75, 0x74, 0x75, 0x62, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x73, 0x70,
0x22, 0x00, 0x42, 0x0d, 0x5a, 0x0b, 0x2e, 0x2f, 0x63, 0x61, 0x73, 0x74, 0x3b, 0x63, 0x61, 0x73,
0x74, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x00, 0x12, 0x48, 0x0a, 0x0f, 0x55, 0x70,
0x64, 0x61, 0x74, 0x65, 0x57, 0x6f, 0x72, 0x6b, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x12, 0x18, 0x2e,
0x43, 0x61, 0x73, 0x74, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x57, 0x6f, 0x72, 0x6b, 0x49,
0x6d, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x1a, 0x19, 0x2e, 0x43, 0x61, 0x73, 0x74, 0x2e, 0x55,
0x70, 0x64, 0x61, 0x74, 0x65, 0x57, 0x6f, 0x72, 0x6b, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x52, 0x65,
0x73, 0x70, 0x22, 0x00, 0x12, 0x48, 0x0a, 0x0f, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x57, 0x6f,
0x72, 0x6b, 0x56, 0x69, 0x64, 0x65, 0x6f, 0x12, 0x18, 0x2e, 0x43, 0x61, 0x73, 0x74, 0x2e, 0x55,
0x70, 0x64, 0x61, 0x74, 0x65, 0x57, 0x6f, 0x72, 0x6b, 0x56, 0x69, 0x64, 0x65, 0x6f, 0x52, 0x65,
0x71, 0x1a, 0x19, 0x2e, 0x43, 0x61, 0x73, 0x74, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x57,
0x6f, 0x72, 0x6b, 0x56, 0x69, 0x64, 0x65, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x22, 0x00, 0x12, 0x33,
0x0a, 0x08, 0x57, 0x6f, 0x72, 0x6b, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x11, 0x2e, 0x43, 0x61, 0x73,
0x74, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x1a, 0x12, 0x2e,
0x43, 0x61, 0x73, 0x74, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73,
0x70, 0x22, 0x00, 0x12, 0x39, 0x0a, 0x0a, 0x57, 0x6f, 0x72, 0x6b, 0x44, 0x65, 0x74, 0x61, 0x69,
0x6c, 0x12, 0x13, 0x2e, 0x43, 0x61, 0x73, 0x74, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x44, 0x65, 0x74,
0x61, 0x69, 0x6c, 0x52, 0x65, 0x71, 0x1a, 0x14, 0x2e, 0x43, 0x61, 0x73, 0x74, 0x2e, 0x57, 0x6f,
0x72, 0x6b, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x22, 0x00, 0x12, 0x3f,
0x0a, 0x0c, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x15,
0x2e, 0x43, 0x61, 0x73, 0x74, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x53, 0x74, 0x61, 0x74,
0x75, 0x73, 0x52, 0x65, 0x71, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70,
0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x00, 0x12,
0x42, 0x0a, 0x0d, 0x4d, 0x65, 0x64, 0x69, 0x61, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73,
0x12, 0x16, 0x2e, 0x43, 0x61, 0x73, 0x74, 0x2e, 0x4d, 0x65, 0x64, 0x69, 0x61, 0x41, 0x63, 0x63,
0x6f, 0x75, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x71, 0x1a, 0x17, 0x2e, 0x43, 0x61, 0x73, 0x74, 0x2e,
0x4d, 0x65, 0x64, 0x69, 0x61, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x73,
0x70, 0x22, 0x00, 0x12, 0x39, 0x0a, 0x0a, 0x4d, 0x65, 0x64, 0x69, 0x61, 0x57, 0x6f, 0x72, 0x6b,
0x73, 0x12, 0x13, 0x2e, 0x43, 0x61, 0x73, 0x74, 0x2e, 0x4d, 0x65, 0x64, 0x69, 0x61, 0x57, 0x6f,
0x72, 0x6b, 0x73, 0x52, 0x65, 0x71, 0x1a, 0x14, 0x2e, 0x43, 0x61, 0x73, 0x74, 0x2e, 0x4d, 0x65,
0x64, 0x69, 0x61, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x52, 0x65, 0x73, 0x70, 0x22, 0x00, 0x12, 0x36,
0x0a, 0x09, 0x52, 0x65, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x12, 0x12, 0x2e, 0x43, 0x61,
0x73, 0x74, 0x2e, 0x52, 0x65, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x52, 0x65, 0x71, 0x1a,
0x13, 0x2e, 0x43, 0x61, 0x73, 0x74, 0x2e, 0x52, 0x65, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68,
0x52, 0x65, 0x73, 0x70, 0x22, 0x00, 0x12, 0x35, 0x0a, 0x07, 0x44, 0x65, 0x6c, 0x57, 0x6f, 0x72,
0x6b, 0x12, 0x10, 0x2e, 0x43, 0x61, 0x73, 0x74, 0x2e, 0x44, 0x65, 0x6c, 0x57, 0x6f, 0x72, 0x6b,
0x52, 0x65, 0x71, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f,
0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x00, 0x12, 0x33, 0x0a,
0x08, 0x57, 0x6f, 0x72, 0x6b, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x11, 0x2e, 0x43, 0x61, 0x73, 0x74,
0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71, 0x1a, 0x12, 0x2e, 0x43,
0x61, 0x73, 0x74, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x73, 0x70,
0x22, 0x00, 0x12, 0x48, 0x0a, 0x0f, 0x4f, 0x41, 0x75, 0x74, 0x68, 0x59, 0x6f, 0x75, 0x74, 0x75,
0x62, 0x65, 0x55, 0x72, 0x6c, 0x12, 0x18, 0x2e, 0x43, 0x61, 0x73, 0x74, 0x2e, 0x4f, 0x41, 0x75,
0x74, 0x68, 0x59, 0x6f, 0x75, 0x74, 0x75, 0x62, 0x65, 0x55, 0x72, 0x6c, 0x52, 0x65, 0x71, 0x1a,
0x19, 0x2e, 0x43, 0x61, 0x73, 0x74, 0x2e, 0x4f, 0x41, 0x75, 0x74, 0x68, 0x59, 0x6f, 0x75, 0x74,
0x75, 0x62, 0x65, 0x55, 0x72, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x22, 0x00, 0x12, 0x4e, 0x0a, 0x11,
0x4f, 0x41, 0x75, 0x74, 0x68, 0x59, 0x6f, 0x75, 0x74, 0x75, 0x62, 0x65, 0x54, 0x6f, 0x6b, 0x65,
0x6e, 0x12, 0x1a, 0x2e, 0x43, 0x61, 0x73, 0x74, 0x2e, 0x4f, 0x41, 0x75, 0x74, 0x68, 0x59, 0x6f,
0x75, 0x74, 0x75, 0x62, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x71, 0x1a, 0x1b, 0x2e,
0x43, 0x61, 0x73, 0x74, 0x2e, 0x4f, 0x41, 0x75, 0x74, 0x68, 0x59, 0x6f, 0x75, 0x74, 0x75, 0x62,
0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x22, 0x00, 0x42, 0x0d, 0x5a, 0x0b,
0x2e, 0x2f, 0x63, 0x61, 0x73, 0x74, 0x3b, 0x63, 0x61, 0x73, 0x74, 0x62, 0x06, 0x70, 0x72, 0x6f,
0x74, 0x6f, 0x33,
}
var (
@ -3218,7 +3363,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_msgTypes = make([]protoimpl.MessageInfo, 34)
var file_pb_fiee_cast_proto_msgTypes = make([]protoimpl.MessageInfo, 36)
var file_pb_fiee_cast_proto_goTypes = []any{
(PlatformIDENUM)(0), // 0: Cast.PlatformIDENUM
(WorkActionENUM)(0), // 1: Cast.WorkActionENUM
@ -3248,15 +3393,17 @@ var file_pb_fiee_cast_proto_goTypes = []any{
(*RePublishReq)(nil), // 25: Cast.RePublishReq
(*RePublishResp)(nil), // 26: Cast.RePublishResp
(*DelWorkReq)(nil), // 27: Cast.DelWorkReq
(*OAuthYoutubeUrlReq)(nil), // 28: Cast.OAuthYoutubeUrlReq
(*OAuthYoutubeUrlResp)(nil), // 29: Cast.OAuthYoutubeUrlResp
(*OAuthYoutubeTokenReq)(nil), // 30: Cast.OAuthYoutubeTokenReq
(*OAuthYoutubeTokenResp)(nil), // 31: Cast.OAuthYoutubeTokenResp
(*WorkListResp_Info)(nil), // 32: Cast.WorkListResp.Info
nil, // 33: Cast.WorkDetailResp.MediaAccDataEntry
(*MediaAccountsResp_Info)(nil), // 34: Cast.MediaAccountsResp.Info
(*MediaWorksResp_Info)(nil), // 35: Cast.MediaWorksResp.Info
(*emptypb.Empty)(nil), // 36: google.protobuf.Empty
(*WorkInfoReq)(nil), // 28: Cast.WorkInfoReq
(*WorkInfoResp)(nil), // 29: Cast.WorkInfoResp
(*OAuthYoutubeUrlReq)(nil), // 30: Cast.OAuthYoutubeUrlReq
(*OAuthYoutubeUrlResp)(nil), // 31: Cast.OAuthYoutubeUrlResp
(*OAuthYoutubeTokenReq)(nil), // 32: Cast.OAuthYoutubeTokenReq
(*OAuthYoutubeTokenResp)(nil), // 33: Cast.OAuthYoutubeTokenResp
(*WorkListResp_Info)(nil), // 34: Cast.WorkListResp.Info
nil, // 35: Cast.WorkDetailResp.MediaAccDataEntry
(*MediaAccountsResp_Info)(nil), // 36: Cast.MediaAccountsResp.Info
(*MediaWorksResp_Info)(nil), // 37: Cast.MediaWorksResp.Info
(*emptypb.Empty)(nil), // 38: google.protobuf.Empty
}
var file_pb_fiee_cast_proto_depIdxs = []int32{
0, // 0: Cast.MediaUserListReq.platformID:type_name -> Cast.PlatformIDENUM
@ -3270,15 +3417,15 @@ var file_pb_fiee_cast_proto_depIdxs = []int32{
12, // 8: Cast.UpdateWorkVideoReq.publishConfig1:type_name -> Cast.PublishConfig
12, // 9: Cast.UpdateWorkVideoReq.publishConfig2:type_name -> Cast.PublishConfig
12, // 10: Cast.UpdateWorkVideoReq.publishConfig3:type_name -> Cast.PublishConfig
32, // 11: Cast.WorkListResp.data:type_name -> Cast.WorkListResp.Info
34, // 11: Cast.WorkListResp.data:type_name -> Cast.WorkListResp.Info
12, // 12: Cast.WorkDetailResp.publishConfig1:type_name -> Cast.PublishConfig
12, // 13: Cast.WorkDetailResp.publishConfig2:type_name -> Cast.PublishConfig
12, // 14: Cast.WorkDetailResp.publishConfig3:type_name -> Cast.PublishConfig
18, // 15: Cast.WorkDetailResp.WorkLogData:type_name -> Cast.WorkLogInfo
33, // 16: Cast.WorkDetailResp.mediaAccData:type_name -> Cast.WorkDetailResp.MediaAccDataEntry
35, // 16: Cast.WorkDetailResp.mediaAccData:type_name -> Cast.WorkDetailResp.MediaAccDataEntry
1, // 17: Cast.UpdateStatusReq.workAction:type_name -> Cast.WorkActionENUM
34, // 18: Cast.MediaAccountsResp.data:type_name -> Cast.MediaAccountsResp.Info
35, // 19: Cast.MediaWorksResp.data:type_name -> Cast.MediaWorksResp.Info
36, // 18: Cast.MediaAccountsResp.data:type_name -> Cast.MediaAccountsResp.Info
37, // 19: Cast.MediaWorksResp.data:type_name -> Cast.MediaWorksResp.Info
3, // 20: Cast.WorkDetailResp.MediaAccDataEntry.value:type_name -> Cast.MediaUserInfo
2, // 21: Cast.Cast.MediaUserList:input_type -> Cast.MediaUserListReq
5, // 22: Cast.Cast.UpdateMediaAccount:input_type -> Cast.UpdateMediaAccountReq
@ -3293,25 +3440,27 @@ var file_pb_fiee_cast_proto_depIdxs = []int32{
23, // 31: Cast.Cast.MediaWorks:input_type -> Cast.MediaWorksReq
25, // 32: Cast.Cast.RePublish:input_type -> Cast.RePublishReq
27, // 33: Cast.Cast.DelWork:input_type -> Cast.DelWorkReq
28, // 34: Cast.Cast.OAuthYoutubeUrl:input_type -> Cast.OAuthYoutubeUrlReq
30, // 35: Cast.Cast.OAuthYoutubeToken:input_type -> Cast.OAuthYoutubeTokenReq
4, // 36: Cast.Cast.MediaUserList:output_type -> Cast.MediaUserListResp
6, // 37: Cast.Cast.UpdateMediaAccount:output_type -> Cast.UpdateMediaAccountResp
8, // 38: Cast.Cast.UnbindManager:output_type -> Cast.UnbindManagerResp
36, // 39: Cast.Cast.BindManager:output_type -> google.protobuf.Empty
11, // 40: Cast.Cast.UpdateWorkImage:output_type -> Cast.UpdateWorkImageResp
14, // 41: Cast.Cast.UpdateWorkVideo:output_type -> Cast.UpdateWorkVideoResp
16, // 42: Cast.Cast.WorkList:output_type -> Cast.WorkListResp
19, // 43: Cast.Cast.WorkDetail:output_type -> Cast.WorkDetailResp
36, // 44: Cast.Cast.UpdateStatus:output_type -> google.protobuf.Empty
22, // 45: Cast.Cast.MediaAccounts:output_type -> Cast.MediaAccountsResp
24, // 46: Cast.Cast.MediaWorks:output_type -> Cast.MediaWorksResp
26, // 47: Cast.Cast.RePublish:output_type -> Cast.RePublishResp
36, // 48: Cast.Cast.DelWork:output_type -> google.protobuf.Empty
29, // 49: Cast.Cast.OAuthYoutubeUrl:output_type -> Cast.OAuthYoutubeUrlResp
31, // 50: Cast.Cast.OAuthYoutubeToken:output_type -> Cast.OAuthYoutubeTokenResp
36, // [36:51] is the sub-list for method output_type
21, // [21:36] is the sub-list for method input_type
28, // 34: Cast.Cast.WorkInfo:input_type -> Cast.WorkInfoReq
30, // 35: Cast.Cast.OAuthYoutubeUrl:input_type -> Cast.OAuthYoutubeUrlReq
32, // 36: Cast.Cast.OAuthYoutubeToken:input_type -> Cast.OAuthYoutubeTokenReq
4, // 37: Cast.Cast.MediaUserList:output_type -> Cast.MediaUserListResp
6, // 38: Cast.Cast.UpdateMediaAccount:output_type -> Cast.UpdateMediaAccountResp
8, // 39: Cast.Cast.UnbindManager:output_type -> Cast.UnbindManagerResp
38, // 40: Cast.Cast.BindManager:output_type -> google.protobuf.Empty
11, // 41: Cast.Cast.UpdateWorkImage:output_type -> Cast.UpdateWorkImageResp
14, // 42: Cast.Cast.UpdateWorkVideo:output_type -> Cast.UpdateWorkVideoResp
16, // 43: Cast.Cast.WorkList:output_type -> Cast.WorkListResp
19, // 44: Cast.Cast.WorkDetail:output_type -> Cast.WorkDetailResp
38, // 45: Cast.Cast.UpdateStatus:output_type -> google.protobuf.Empty
22, // 46: Cast.Cast.MediaAccounts:output_type -> Cast.MediaAccountsResp
24, // 47: Cast.Cast.MediaWorks:output_type -> Cast.MediaWorksResp
26, // 48: Cast.Cast.RePublish:output_type -> Cast.RePublishResp
38, // 49: Cast.Cast.DelWork:output_type -> google.protobuf.Empty
29, // 50: Cast.Cast.WorkInfo:output_type -> Cast.WorkInfoResp
31, // 51: Cast.Cast.OAuthYoutubeUrl:output_type -> Cast.OAuthYoutubeUrlResp
33, // 52: Cast.Cast.OAuthYoutubeToken:output_type -> Cast.OAuthYoutubeTokenResp
37, // [37:53] is the sub-list for method output_type
21, // [21:37] is the sub-list for method input_type
21, // [21:21] is the sub-list for extension type_name
21, // [21:21] is the sub-list for extension extendee
0, // [0:21] is the sub-list for field type_name
@ -3328,7 +3477,7 @@ func file_pb_fiee_cast_proto_init() {
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_pb_fiee_cast_proto_rawDesc,
NumEnums: 2,
NumMessages: 34,
NumMessages: 36,
NumExtensions: 0,
NumServices: 1,
},

View File

@ -3331,6 +3331,216 @@ var _ interface {
ErrorName() string
} = DelWorkReqValidationError{}
// Validate checks the field values on WorkInfoReq 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 *WorkInfoReq) Validate() error {
return m.validate(false)
}
// ValidateAll checks the field values on WorkInfoReq 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 WorkInfoReqMultiError, or
// nil if none found.
func (m *WorkInfoReq) ValidateAll() error {
return m.validate(true)
}
func (m *WorkInfoReq) validate(all bool) error {
if m == nil {
return nil
}
var errors []error
// no validation rules for WorkUuid
if len(errors) > 0 {
return WorkInfoReqMultiError(errors)
}
return nil
}
// WorkInfoReqMultiError is an error wrapping multiple validation errors
// returned by WorkInfoReq.ValidateAll() if the designated constraints aren't met.
type WorkInfoReqMultiError []error
// Error returns a concatenation of all the error messages it wraps.
func (m WorkInfoReqMultiError) Error() string {
var msgs []string
for _, err := range m {
msgs = append(msgs, err.Error())
}
return strings.Join(msgs, "; ")
}
// AllErrors returns a list of validation violation errors.
func (m WorkInfoReqMultiError) AllErrors() []error { return m }
// WorkInfoReqValidationError is the validation error returned by
// WorkInfoReq.Validate if the designated constraints aren't met.
type WorkInfoReqValidationError struct {
field string
reason string
cause error
key bool
}
// Field function returns field value.
func (e WorkInfoReqValidationError) Field() string { return e.field }
// Reason function returns reason value.
func (e WorkInfoReqValidationError) Reason() string { return e.reason }
// Cause function returns cause value.
func (e WorkInfoReqValidationError) Cause() error { return e.cause }
// Key function returns key value.
func (e WorkInfoReqValidationError) Key() bool { return e.key }
// ErrorName returns error name.
func (e WorkInfoReqValidationError) ErrorName() string { return "WorkInfoReqValidationError" }
// Error satisfies the builtin error interface
func (e WorkInfoReqValidationError) 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 %sWorkInfoReq.%s: %s%s",
key,
e.field,
e.reason,
cause)
}
var _ error = WorkInfoReqValidationError{}
var _ interface {
Field() string
Reason() string
Key() bool
Cause() error
ErrorName() string
} = WorkInfoReqValidationError{}
// Validate checks the field values on WorkInfoResp 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 *WorkInfoResp) Validate() error {
return m.validate(false)
}
// ValidateAll checks the field values on WorkInfoResp 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 WorkInfoRespMultiError, or
// nil if none found.
func (m *WorkInfoResp) ValidateAll() error {
return m.validate(true)
}
func (m *WorkInfoResp) validate(all bool) error {
if m == nil {
return nil
}
var errors []error
// no validation rules for WorkStatus
// no validation rules for ArtistUuid
// no validation rules for ArtistName
// no validation rules for ArtistPhone
// no validation rules for ArtistPhoneAreaCode
if len(errors) > 0 {
return WorkInfoRespMultiError(errors)
}
return nil
}
// WorkInfoRespMultiError is an error wrapping multiple validation errors
// returned by WorkInfoResp.ValidateAll() if the designated constraints aren't met.
type WorkInfoRespMultiError []error
// Error returns a concatenation of all the error messages it wraps.
func (m WorkInfoRespMultiError) Error() string {
var msgs []string
for _, err := range m {
msgs = append(msgs, err.Error())
}
return strings.Join(msgs, "; ")
}
// AllErrors returns a list of validation violation errors.
func (m WorkInfoRespMultiError) AllErrors() []error { return m }
// WorkInfoRespValidationError is the validation error returned by
// WorkInfoResp.Validate if the designated constraints aren't met.
type WorkInfoRespValidationError struct {
field string
reason string
cause error
key bool
}
// Field function returns field value.
func (e WorkInfoRespValidationError) Field() string { return e.field }
// Reason function returns reason value.
func (e WorkInfoRespValidationError) Reason() string { return e.reason }
// Cause function returns cause value.
func (e WorkInfoRespValidationError) Cause() error { return e.cause }
// Key function returns key value.
func (e WorkInfoRespValidationError) Key() bool { return e.key }
// ErrorName returns error name.
func (e WorkInfoRespValidationError) ErrorName() string { return "WorkInfoRespValidationError" }
// Error satisfies the builtin error interface
func (e WorkInfoRespValidationError) 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 %sWorkInfoResp.%s: %s%s",
key,
e.field,
e.reason,
cause)
}
var _ error = WorkInfoRespValidationError{}
var _ interface {
Field() string
Reason() string
Key() bool
Cause() error
ErrorName() string
} = WorkInfoRespValidationError{}
// Validate checks the field values on OAuthYoutubeUrlReq 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.

View File

@ -42,6 +42,7 @@ type CastClient interface {
MediaWorks(ctx context.Context, in *MediaWorksReq, opts ...grpc_go.CallOption) (*MediaWorksResp, common.ErrorWithAttachment)
RePublish(ctx context.Context, in *RePublishReq, opts ...grpc_go.CallOption) (*RePublishResp, common.ErrorWithAttachment)
DelWork(ctx context.Context, in *DelWorkReq, opts ...grpc_go.CallOption) (*emptypb.Empty, common.ErrorWithAttachment)
WorkInfo(ctx context.Context, in *WorkInfoReq, opts ...grpc_go.CallOption) (*WorkInfoResp, common.ErrorWithAttachment)
OAuthYoutubeUrl(ctx context.Context, in *OAuthYoutubeUrlReq, opts ...grpc_go.CallOption) (*OAuthYoutubeUrlResp, common.ErrorWithAttachment)
OAuthYoutubeToken(ctx context.Context, in *OAuthYoutubeTokenReq, opts ...grpc_go.CallOption) (*OAuthYoutubeTokenResp, common.ErrorWithAttachment)
}
@ -64,6 +65,7 @@ type CastClientImpl struct {
MediaWorks func(ctx context.Context, in *MediaWorksReq) (*MediaWorksResp, error)
RePublish func(ctx context.Context, in *RePublishReq) (*RePublishResp, error)
DelWork func(ctx context.Context, in *DelWorkReq) (*emptypb.Empty, error)
WorkInfo func(ctx context.Context, in *WorkInfoReq) (*WorkInfoResp, error)
OAuthYoutubeUrl func(ctx context.Context, in *OAuthYoutubeUrlReq) (*OAuthYoutubeUrlResp, error)
OAuthYoutubeToken func(ctx context.Context, in *OAuthYoutubeTokenReq) (*OAuthYoutubeTokenResp, error)
}
@ -158,6 +160,12 @@ func (c *castClient) DelWork(ctx context.Context, in *DelWorkReq, opts ...grpc_g
return out, c.cc.Invoke(ctx, "/"+interfaceKey+"/DelWork", in, out)
}
func (c *castClient) WorkInfo(ctx context.Context, in *WorkInfoReq, opts ...grpc_go.CallOption) (*WorkInfoResp, common.ErrorWithAttachment) {
out := new(WorkInfoResp)
interfaceKey := ctx.Value(constant.InterfaceKey).(string)
return out, c.cc.Invoke(ctx, "/"+interfaceKey+"/WorkInfo", in, out)
}
func (c *castClient) OAuthYoutubeUrl(ctx context.Context, in *OAuthYoutubeUrlReq, opts ...grpc_go.CallOption) (*OAuthYoutubeUrlResp, common.ErrorWithAttachment) {
out := new(OAuthYoutubeUrlResp)
interfaceKey := ctx.Value(constant.InterfaceKey).(string)
@ -187,6 +195,7 @@ type CastServer interface {
MediaWorks(context.Context, *MediaWorksReq) (*MediaWorksResp, error)
RePublish(context.Context, *RePublishReq) (*RePublishResp, error)
DelWork(context.Context, *DelWorkReq) (*emptypb.Empty, error)
WorkInfo(context.Context, *WorkInfoReq) (*WorkInfoResp, error)
OAuthYoutubeUrl(context.Context, *OAuthYoutubeUrlReq) (*OAuthYoutubeUrlResp, error)
OAuthYoutubeToken(context.Context, *OAuthYoutubeTokenReq) (*OAuthYoutubeTokenResp, error)
mustEmbedUnimplementedCastServer()
@ -236,6 +245,9 @@ func (UnimplementedCastServer) RePublish(context.Context, *RePublishReq) (*RePub
func (UnimplementedCastServer) DelWork(context.Context, *DelWorkReq) (*emptypb.Empty, error) {
return nil, status.Errorf(codes.Unimplemented, "method DelWork not implemented")
}
func (UnimplementedCastServer) WorkInfo(context.Context, *WorkInfoReq) (*WorkInfoResp, error) {
return nil, status.Errorf(codes.Unimplemented, "method WorkInfo not implemented")
}
func (UnimplementedCastServer) OAuthYoutubeUrl(context.Context, *OAuthYoutubeUrlReq) (*OAuthYoutubeUrlResp, error) {
return nil, status.Errorf(codes.Unimplemented, "method OAuthYoutubeUrl not implemented")
}
@ -647,6 +659,35 @@ func _Cast_DelWork_Handler(srv interface{}, ctx context.Context, dec func(interf
return interceptor(ctx, in, info, handler)
}
func _Cast_WorkInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc_go.UnaryServerInterceptor) (interface{}, error) {
in := new(WorkInfoReq)
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("WorkInfo", 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_OAuthYoutubeUrl_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc_go.UnaryServerInterceptor) (interface{}, error) {
in := new(OAuthYoutubeUrlReq)
if err := dec(in); err != nil {
@ -764,6 +805,10 @@ var Cast_ServiceDesc = grpc_go.ServiceDesc{
MethodName: "DelWork",
Handler: _Cast_DelWork_Handler,
},
{
MethodName: "WorkInfo",
Handler: _Cast_WorkInfo_Handler,
},
{
MethodName: "OAuthYoutubeUrl",
Handler: _Cast_OAuthYoutubeUrl_Handler,

View File

@ -20,8 +20,9 @@ const (
)
const (
ErrNotLogin = "请先登录"
ErrOffline = "您已经下线"
ErrNotLogin = "请先登录"
ErrOffline = "您已经下线"
InvalidStatus = "状态非法"
)
const (

11
pkg/model/cast/work.go Normal file
View File

@ -0,0 +1,11 @@
package cast
const (
WorkStatusPending = 1 // 待提交
WorkStatusReviewing = 2 // 审核中
WorkStatusReviewFailed = 3 // 审核失败
WorkStatusArtistConfirming = 4 // 待艺人确认
WorkStatusArtistRejected = 5 // 艺人驳回
WorkStatusPublishSuccess = 6 // 发布成功
WorkStatusPublishFailed = 7 // 发布失败
)

5
pkg/model/query/cast.go Normal file
View File

@ -0,0 +1,5 @@
package query
type RemindReq struct {
WorkUuid string `json:"workUuid"`
}

View File

@ -22,6 +22,7 @@ func MediaRouter(r *gin.RouterGroup) {
mediaNoLogin := r.Group("media")
{
mediaNoLogin.GET("oauth2callback", serviceCast.OAuth2Callback)
mediaNoLogin.GET("test", serviceCast.Test)
}
work := auth.Group("work")
@ -33,5 +34,6 @@ func MediaRouter(r *gin.RouterGroup) {
work.POST("detail", serviceCast.WorkDetail)
work.POST("republish", serviceCast.RePublish)
work.POST("delete", serviceCast.DelWork)
work.POST("remind", serviceCast.Remind)
}
}

View File

@ -196,3 +196,8 @@ func OAuth2Callback(ctx *gin.Context) {
service.Success(ctx, resp)
return
}
func Test(ctx *gin.Context) {
service.Success(ctx, nil)
return
}

View File

@ -145,7 +145,7 @@ func WorkList(ctx *gin.Context) {
}
}
if len(workUuidApprovalIDMap) > 0 {
_ = RefreshWorkApprovalStatus(workUuidApprovalIDMap)
_ = RefreshWorkApprovalStatus(ctx, workUuidApprovalIDMap)
}
}
service.Success(ctx, resp)
@ -240,7 +240,7 @@ func UserBundleBalanceCost() {
service.BundleProvider.AddBundleBalance(context.Background(), &bundle.AddBundleBalanceReq{})
}
func RefreshWorkApprovalStatus(approvalIDWorkUuidMap map[int]string) (err error) {
func RefreshWorkApprovalStatus(ctx *gin.Context, approvalIDWorkUuidMap map[int]string) (err error) {
var castS = new(CastService)
var data = make(map[int]modelCast.Item)
var approvalIDs []int
@ -252,8 +252,22 @@ func RefreshWorkApprovalStatus(approvalIDWorkUuidMap map[int]string) (err error)
}
data, err = castS.ApprovalDetail(approvalIDs)
// status: 1待审批 2审批通过 3审批不通过 6撤销发其中 7撤销完成
if len(data) > 0 {
for approvalId, v := range data {
var newData = make(map[int]modelCast.Item, len(approvalIDs))
for _, v := range approvalIDs {
newData[v] = data[v]
}
newCtx := NewCtxWithUserInfo(ctx)
if len(newData) > 0 {
for approvalId, v := range newData {
if v.ID == 0 {
_, _ = service.CastProvider.UpdateStatus(newCtx, &cast.UpdateStatusReq{
WorkAction: cast.WorkActionENUM_APPROVAL_DELETE,
WorkUuid: approvalIDWorkUuidMap[approvalId],
ApprovalID: fmt.Sprint(approvalId),
ApprovalReply: "",
})
continue
}
var workAction cast.WorkActionENUM
if v.Status == 2 {
workAction = cast.WorkActionENUM_APPROVAL_PASS
@ -262,7 +276,7 @@ func RefreshWorkApprovalStatus(approvalIDWorkUuidMap map[int]string) (err error)
} else {
continue
}
_, _ = service.CastProvider.UpdateStatus(context.Background(), &cast.UpdateStatusReq{
_, _ = service.CastProvider.UpdateStatus(newCtx, &cast.UpdateStatusReq{
WorkAction: workAction,
WorkUuid: approvalIDWorkUuidMap[approvalId],
ApprovalID: fmt.Sprint(approvalId),
@ -289,3 +303,52 @@ func DelWork(ctx *gin.Context) {
service.Success(ctx, nil)
return
}
func Remind(ctx *gin.Context) {
var req *cast.WorkInfoReq
var err error
var workInfo *cast.WorkInfoResp
if err = ctx.ShouldBind(&req); err != nil {
service.Error(ctx, err)
return
}
workInfo, err = service.CastProvider.WorkInfo(context.Background(), req)
if err != nil {
service.Error(ctx, err)
return
}
if workInfo.WorkStatus != modelCast.WorkStatusArtistConfirming {
service.Error(ctx, errors.New(e.InvalidStatus))
return
}
if workInfo.ArtistPhoneAreaCode == "" {
workInfo.ArtistPhoneAreaCode = "86"
}
if workInfo.ArtistPhoneAreaCode == "86" {
_, err = service.AccountFieeProvider.SendMsg(context.Background(), &accountFiee.SendMsgRequest{
Domain: "app",
TelNum: workInfo.ArtistPhone,
Project: "fiee",
SignNo: 0, // TODO 模板ID
MId: 0,
Scope: "",
Zone: workInfo.ArtistPhoneAreaCode,
NonceStr: "",
})
} else {
_, err = service.AccountFieeProvider.SendNationMsg(context.Background(), &accountFiee.SendNationMsgRequest{
Domain: "app",
TelNum: workInfo.ArtistPhone,
Project: "fiee",
SignNo: 0, // TODO 模板ID
MId: 0,
Scope: "",
})
}
if err != nil {
service.Error(ctx, err)
return
}
service.Success(ctx, nil)
return
}