This commit is contained in:
戴育兵 2025-06-06 11:45:47 +08:00
parent a922813d24
commit 4f6101be68
10 changed files with 1086 additions and 85 deletions

View File

@ -7,6 +7,7 @@
package cast package cast
import ( import (
_ "github.com/envoyproxy/protoc-gen-validate/validate"
protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl" protoimpl "google.golang.org/protobuf/runtime/protoimpl"
_ "google.golang.org/protobuf/types/descriptorpb" _ "google.golang.org/protobuf/types/descriptorpb"
@ -23,19 +24,182 @@ const (
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
) )
type PlatformType int32
const (
PlatformType_UNKNOWN PlatformType = 0
PlatformType_TIKTOK PlatformType = 1
PlatformType_YOUTUBE PlatformType = 2
PlatformType_INS PlatformType = 3
)
// Enum value maps for PlatformType.
var (
PlatformType_name = map[int32]string{
0: "UNKNOWN",
1: "TIKTOK",
2: "YOUTUBE",
3: "INS",
}
PlatformType_value = map[string]int32{
"UNKNOWN": 0,
"TIKTOK": 1,
"YOUTUBE": 2,
"INS": 3,
}
)
func (x PlatformType) Enum() *PlatformType {
p := new(PlatformType)
*p = x
return p
}
func (x PlatformType) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (PlatformType) Descriptor() protoreflect.EnumDescriptor {
return file_pb_fiee_cast_proto_enumTypes[0].Descriptor()
}
func (PlatformType) Type() protoreflect.EnumType {
return &file_pb_fiee_cast_proto_enumTypes[0]
}
func (x PlatformType) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use PlatformType.Descriptor instead.
func (PlatformType) EnumDescriptor() ([]byte, []int) {
return file_pb_fiee_cast_proto_rawDescGZIP(), []int{0}
}
type MediaUserListReq struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Phone string `protobuf:"bytes,1,opt,name=phone,proto3" json:"phone,omitempty"`
UserPlatformName string `protobuf:"bytes,2,opt,name=userPlatformName,proto3" json:"userPlatformName,omitempty"`
ManagerName string `protobuf:"bytes,3,opt,name=managerName,proto3" json:"managerName,omitempty"`
PlatformType uint32 `protobuf:"varint,4,opt,name=platformType,proto3" json:"platformType,omitempty"`
}
func (x *MediaUserListReq) Reset() {
*x = MediaUserListReq{}
mi := &file_pb_fiee_cast_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *MediaUserListReq) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*MediaUserListReq) ProtoMessage() {}
func (x *MediaUserListReq) ProtoReflect() protoreflect.Message {
mi := &file_pb_fiee_cast_proto_msgTypes[0]
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 MediaUserListReq.ProtoReflect.Descriptor instead.
func (*MediaUserListReq) Descriptor() ([]byte, []int) {
return file_pb_fiee_cast_proto_rawDescGZIP(), []int{0}
}
func (x *MediaUserListReq) GetPhone() string {
if x != nil {
return x.Phone
}
return ""
}
func (x *MediaUserListReq) GetUserPlatformName() string {
if x != nil {
return x.UserPlatformName
}
return ""
}
func (x *MediaUserListReq) GetManagerName() string {
if x != nil {
return x.ManagerName
}
return ""
}
func (x *MediaUserListReq) GetPlatformType() uint32 {
if x != nil {
return x.PlatformType
}
return 0
}
type MediaUserListResp struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
}
func (x *MediaUserListResp) Reset() {
*x = MediaUserListResp{}
mi := &file_pb_fiee_cast_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *MediaUserListResp) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*MediaUserListResp) ProtoMessage() {}
func (x *MediaUserListResp) ProtoReflect() protoreflect.Message {
mi := &file_pb_fiee_cast_proto_msgTypes[1]
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 MediaUserListResp.ProtoReflect.Descriptor instead.
func (*MediaUserListResp) Descriptor() ([]byte, []int) {
return file_pb_fiee_cast_proto_rawDescGZIP(), []int{1}
}
type UpdateMediaAccountReq struct { type UpdateMediaAccountReq struct {
state protoimpl.MessageState state protoimpl.MessageState
sizeCache protoimpl.SizeCache sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields unknownFields protoimpl.UnknownFields
Phone string `protobuf:"bytes,1,opt,name=phone,proto3" json:"phone,omitempty"` PlatformType PlatformType `protobuf:"varint,1,opt,name=platformType,proto3,enum=Cast.PlatformType" json:"platformType,omitempty"`
BindUserID string `protobuf:"bytes,2,opt,name=bindUserID,proto3" json:"bindUserID,omitempty"` PlatformUserName string `protobuf:"bytes,2,opt,name=platformUserName,proto3" json:"platformUserName,omitempty"`
AccountUuid string `protobuf:"bytes,3,opt,name=accountUuid,proto3" json:"accountUuid,omitempty"` PlatformUserID string `protobuf:"bytes,3,opt,name=platformUserID,proto3" json:"platformUserID,omitempty"`
ArtistUuid string `protobuf:"bytes,4,opt,name=artistUuid,proto3" json:"artistUuid,omitempty"`
ArtistUserName string `protobuf:"bytes,5,opt,name=artistUserName,proto3" json:"artistUserName,omitempty"`
ArtistPhone string `protobuf:"bytes,6,opt,name=artistPhone,proto3" json:"artistPhone,omitempty"`
MediaAccountUuid string `protobuf:"bytes,7,opt,name=mediaAccountUuid,proto3" json:"mediaAccountUuid,omitempty"`
ManagerUuid string `protobuf:"bytes,8,opt,name=managerUuid,proto3" json:"managerUuid,omitempty"`
ManagerUserName string `protobuf:"bytes,9,opt,name=managerUserName,proto3" json:"managerUserName,omitempty"`
} }
func (x *UpdateMediaAccountReq) Reset() { func (x *UpdateMediaAccountReq) Reset() {
*x = UpdateMediaAccountReq{} *x = UpdateMediaAccountReq{}
mi := &file_pb_fiee_cast_proto_msgTypes[0] mi := &file_pb_fiee_cast_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi) ms.StoreMessageInfo(mi)
} }
@ -47,7 +211,7 @@ func (x *UpdateMediaAccountReq) String() string {
func (*UpdateMediaAccountReq) ProtoMessage() {} func (*UpdateMediaAccountReq) ProtoMessage() {}
func (x *UpdateMediaAccountReq) ProtoReflect() protoreflect.Message { func (x *UpdateMediaAccountReq) ProtoReflect() protoreflect.Message {
mi := &file_pb_fiee_cast_proto_msgTypes[0] mi := &file_pb_fiee_cast_proto_msgTypes[2]
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 {
@ -60,26 +224,68 @@ func (x *UpdateMediaAccountReq) ProtoReflect() protoreflect.Message {
// Deprecated: Use UpdateMediaAccountReq.ProtoReflect.Descriptor instead. // Deprecated: Use UpdateMediaAccountReq.ProtoReflect.Descriptor instead.
func (*UpdateMediaAccountReq) Descriptor() ([]byte, []int) { func (*UpdateMediaAccountReq) Descriptor() ([]byte, []int) {
return file_pb_fiee_cast_proto_rawDescGZIP(), []int{0} return file_pb_fiee_cast_proto_rawDescGZIP(), []int{2}
} }
func (x *UpdateMediaAccountReq) GetPhone() string { func (x *UpdateMediaAccountReq) GetPlatformType() PlatformType {
if x != nil { if x != nil {
return x.Phone return x.PlatformType
}
return PlatformType_UNKNOWN
}
func (x *UpdateMediaAccountReq) GetPlatformUserName() string {
if x != nil {
return x.PlatformUserName
} }
return "" return ""
} }
func (x *UpdateMediaAccountReq) GetBindUserID() string { func (x *UpdateMediaAccountReq) GetPlatformUserID() string {
if x != nil { if x != nil {
return x.BindUserID return x.PlatformUserID
} }
return "" return ""
} }
func (x *UpdateMediaAccountReq) GetAccountUuid() string { func (x *UpdateMediaAccountReq) GetArtistUuid() string {
if x != nil { if x != nil {
return x.AccountUuid return x.ArtistUuid
}
return ""
}
func (x *UpdateMediaAccountReq) GetArtistUserName() string {
if x != nil {
return x.ArtistUserName
}
return ""
}
func (x *UpdateMediaAccountReq) GetArtistPhone() string {
if x != nil {
return x.ArtistPhone
}
return ""
}
func (x *UpdateMediaAccountReq) GetMediaAccountUuid() string {
if x != nil {
return x.MediaAccountUuid
}
return ""
}
func (x *UpdateMediaAccountReq) GetManagerUuid() string {
if x != nil {
return x.ManagerUuid
}
return ""
}
func (x *UpdateMediaAccountReq) GetManagerUserName() string {
if x != nil {
return x.ManagerUserName
} }
return "" return ""
} }
@ -89,12 +295,12 @@ type UpdateMediaAccountResp struct {
sizeCache protoimpl.SizeCache sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields unknownFields protoimpl.UnknownFields
AccountUuid string `protobuf:"bytes,1,opt,name=accountUuid,proto3" json:"accountUuid,omitempty"` MediaAccountUuid string `protobuf:"bytes,1,opt,name=mediaAccountUuid,proto3" json:"mediaAccountUuid,omitempty"`
} }
func (x *UpdateMediaAccountResp) Reset() { func (x *UpdateMediaAccountResp) Reset() {
*x = UpdateMediaAccountResp{} *x = UpdateMediaAccountResp{}
mi := &file_pb_fiee_cast_proto_msgTypes[1] mi := &file_pb_fiee_cast_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi) ms.StoreMessageInfo(mi)
} }
@ -106,7 +312,7 @@ func (x *UpdateMediaAccountResp) String() string {
func (*UpdateMediaAccountResp) ProtoMessage() {} func (*UpdateMediaAccountResp) ProtoMessage() {}
func (x *UpdateMediaAccountResp) ProtoReflect() protoreflect.Message { func (x *UpdateMediaAccountResp) ProtoReflect() protoreflect.Message {
mi := &file_pb_fiee_cast_proto_msgTypes[1] mi := &file_pb_fiee_cast_proto_msgTypes[3]
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 {
@ -119,12 +325,12 @@ func (x *UpdateMediaAccountResp) ProtoReflect() protoreflect.Message {
// Deprecated: Use UpdateMediaAccountResp.ProtoReflect.Descriptor instead. // Deprecated: Use UpdateMediaAccountResp.ProtoReflect.Descriptor instead.
func (*UpdateMediaAccountResp) Descriptor() ([]byte, []int) { func (*UpdateMediaAccountResp) Descriptor() ([]byte, []int) {
return file_pb_fiee_cast_proto_rawDescGZIP(), []int{1} return file_pb_fiee_cast_proto_rawDescGZIP(), []int{3}
} }
func (x *UpdateMediaAccountResp) GetAccountUuid() string { func (x *UpdateMediaAccountResp) GetMediaAccountUuid() string {
if x != nil { if x != nil {
return x.AccountUuid return x.MediaAccountUuid
} }
return "" return ""
} }
@ -141,7 +347,7 @@ type UpdateWorkReq struct {
func (x *UpdateWorkReq) Reset() { func (x *UpdateWorkReq) Reset() {
*x = UpdateWorkReq{} *x = UpdateWorkReq{}
mi := &file_pb_fiee_cast_proto_msgTypes[2] mi := &file_pb_fiee_cast_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi) ms.StoreMessageInfo(mi)
} }
@ -153,7 +359,7 @@ func (x *UpdateWorkReq) String() string {
func (*UpdateWorkReq) ProtoMessage() {} func (*UpdateWorkReq) ProtoMessage() {}
func (x *UpdateWorkReq) ProtoReflect() protoreflect.Message { func (x *UpdateWorkReq) ProtoReflect() protoreflect.Message {
mi := &file_pb_fiee_cast_proto_msgTypes[2] mi := &file_pb_fiee_cast_proto_msgTypes[4]
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 {
@ -166,7 +372,7 @@ func (x *UpdateWorkReq) ProtoReflect() protoreflect.Message {
// Deprecated: Use UpdateWorkReq.ProtoReflect.Descriptor instead. // Deprecated: Use UpdateWorkReq.ProtoReflect.Descriptor instead.
func (*UpdateWorkReq) Descriptor() ([]byte, []int) { func (*UpdateWorkReq) Descriptor() ([]byte, []int) {
return file_pb_fiee_cast_proto_rawDescGZIP(), []int{2} return file_pb_fiee_cast_proto_rawDescGZIP(), []int{4}
} }
func (x *UpdateWorkReq) GetTitle() string { func (x *UpdateWorkReq) GetTitle() string {
@ -200,7 +406,7 @@ type UpdateWorkResp struct {
func (x *UpdateWorkResp) Reset() { func (x *UpdateWorkResp) Reset() {
*x = UpdateWorkResp{} *x = UpdateWorkResp{}
mi := &file_pb_fiee_cast_proto_msgTypes[3] mi := &file_pb_fiee_cast_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi) ms.StoreMessageInfo(mi)
} }
@ -212,7 +418,7 @@ func (x *UpdateWorkResp) String() string {
func (*UpdateWorkResp) ProtoMessage() {} func (*UpdateWorkResp) ProtoMessage() {}
func (x *UpdateWorkResp) ProtoReflect() protoreflect.Message { func (x *UpdateWorkResp) ProtoReflect() protoreflect.Message {
mi := &file_pb_fiee_cast_proto_msgTypes[3] mi := &file_pb_fiee_cast_proto_msgTypes[5]
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 {
@ -225,7 +431,7 @@ func (x *UpdateWorkResp) ProtoReflect() protoreflect.Message {
// Deprecated: Use UpdateWorkResp.ProtoReflect.Descriptor instead. // Deprecated: Use UpdateWorkResp.ProtoReflect.Descriptor instead.
func (*UpdateWorkResp) Descriptor() ([]byte, []int) { func (*UpdateWorkResp) Descriptor() ([]byte, []int) {
return file_pb_fiee_cast_proto_rawDescGZIP(), []int{3} return file_pb_fiee_cast_proto_rawDescGZIP(), []int{5}
} }
func (x *UpdateWorkResp) GetWorkUuid() string { func (x *UpdateWorkResp) GetWorkUuid() string {
@ -245,37 +451,76 @@ var file_pb_fiee_cast_proto_rawDesc = []byte{
0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x64, 0x65, 0x73, 0x63, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x64, 0x65, 0x73, 0x63,
0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1b, 0x67, 0x6f, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1b, 0x67, 0x6f,
0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x65, 0x6d, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x65, 0x6d,
0x70, 0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x6f, 0x0a, 0x15, 0x55, 0x70, 0x64, 0x70, 0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x15, 0x63, 0x6f, 0x6d, 0x6d, 0x6f,
0x61, 0x74, 0x65, 0x4d, 0x65, 0x64, 0x69, 0x61, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x6e, 0x2f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
0x65, 0x71, 0x12, 0x14, 0x0a, 0x05, 0x70, 0x68, 0x6f, 0x6e, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x22, 0x9a, 0x01, 0x0a, 0x10, 0x4d, 0x65, 0x64, 0x69, 0x61, 0x55, 0x73, 0x65, 0x72, 0x4c, 0x69,
0x09, 0x52, 0x05, 0x70, 0x68, 0x6f, 0x6e, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x62, 0x69, 0x6e, 0x64, 0x73, 0x74, 0x52, 0x65, 0x71, 0x12, 0x14, 0x0a, 0x05, 0x70, 0x68, 0x6f, 0x6e, 0x65, 0x18, 0x01,
0x55, 0x73, 0x65, 0x72, 0x49, 0x44, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x62, 0x69, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x70, 0x68, 0x6f, 0x6e, 0x65, 0x12, 0x2a, 0x0a, 0x10, 0x75,
0x6e, 0x64, 0x55, 0x73, 0x65, 0x72, 0x49, 0x44, 0x12, 0x20, 0x0a, 0x0b, 0x61, 0x63, 0x63, 0x6f, 0x73, 0x65, 0x72, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x4e, 0x61, 0x6d, 0x65, 0x18,
0x75, 0x6e, 0x74, 0x55, 0x75, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x61, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x10, 0x75, 0x73, 0x65, 0x72, 0x50, 0x6c, 0x61, 0x74, 0x66,
0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x55, 0x75, 0x69, 0x64, 0x22, 0x3a, 0x0a, 0x16, 0x55, 0x70, 0x6f, 0x72, 0x6d, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x6d, 0x61, 0x6e, 0x61, 0x67,
0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x6d, 0x61,
0x6e, 0x61, 0x67, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x22, 0x0a, 0x0c, 0x70, 0x6c, 0x61,
0x74, 0x66, 0x6f, 0x72, 0x6d, 0x54, 0x79, 0x70, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0d, 0x52,
0x0c, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x54, 0x79, 0x70, 0x65, 0x22, 0x13, 0x0a,
0x11, 0x4d, 0x65, 0x64, 0x69, 0x61, 0x55, 0x73, 0x65, 0x72, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65,
0x73, 0x70, 0x22, 0x85, 0x03, 0x0a, 0x15, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x65, 0x64,
0x69, 0x61, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x12, 0x36, 0x0a, 0x0c,
0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x54, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01,
0x28, 0x0e, 0x32, 0x12, 0x2e, 0x43, 0x61, 0x73, 0x74, 0x2e, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f,
0x72, 0x6d, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0c, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d,
0x54, 0x79, 0x70, 0x65, 0x12, 0x2a, 0x0a, 0x10, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d,
0x55, 0x73, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x10,
0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x55, 0x73, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65,
0x12, 0x26, 0x0a, 0x0e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x55, 0x73, 0x65, 0x72,
0x49, 0x44, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f,
0x72, 0x6d, 0x55, 0x73, 0x65, 0x72, 0x49, 0x44, 0x12, 0x1e, 0x0a, 0x0a, 0x61, 0x72, 0x74, 0x69,
0x73, 0x74, 0x55, 0x75, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x61, 0x72,
0x74, 0x69, 0x73, 0x74, 0x55, 0x75, 0x69, 0x64, 0x12, 0x26, 0x0a, 0x0e, 0x61, 0x72, 0x74, 0x69,
0x73, 0x74, 0x55, 0x73, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09,
0x52, 0x0e, 0x61, 0x72, 0x74, 0x69, 0x73, 0x74, 0x55, 0x73, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65,
0x12, 0x20, 0x0a, 0x0b, 0x61, 0x72, 0x74, 0x69, 0x73, 0x74, 0x50, 0x68, 0x6f, 0x6e, 0x65, 0x18,
0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x61, 0x72, 0x74, 0x69, 0x73, 0x74, 0x50, 0x68, 0x6f,
0x6e, 0x65, 0x12, 0x2a, 0x0a, 0x10, 0x6d, 0x65, 0x64, 0x69, 0x61, 0x41, 0x63, 0x63, 0x6f, 0x75,
0x6e, 0x74, 0x55, 0x75, 0x69, 0x64, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x10, 0x6d, 0x65,
0x64, 0x69, 0x61, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x55, 0x75, 0x69, 0x64, 0x12, 0x20,
0x0a, 0x0b, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x55, 0x75, 0x69, 0x64, 0x18, 0x08, 0x20,
0x01, 0x28, 0x09, 0x52, 0x0b, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x55, 0x75, 0x69, 0x64,
0x12, 0x28, 0x0a, 0x0f, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x55, 0x73, 0x65, 0x72, 0x4e,
0x61, 0x6d, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x6d, 0x61, 0x6e, 0x61, 0x67,
0x65, 0x72, 0x55, 0x73, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0x44, 0x0a, 0x16, 0x55, 0x70,
0x64, 0x61, 0x74, 0x65, 0x4d, 0x65, 0x64, 0x69, 0x61, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x65, 0x64, 0x69, 0x61, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74,
0x52, 0x65, 0x73, 0x70, 0x12, 0x20, 0x0a, 0x0b, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x55, 0x52, 0x65, 0x73, 0x70, 0x12, 0x2a, 0x0a, 0x10, 0x6d, 0x65, 0x64, 0x69, 0x61, 0x41, 0x63, 0x63,
0x75, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6f, 0x75, 0x6e, 0x74, 0x55, 0x75, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x10,
0x6e, 0x74, 0x55, 0x75, 0x69, 0x64, 0x22, 0x55, 0x0a, 0x0d, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x6d, 0x65, 0x64, 0x69, 0x61, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x55, 0x75, 0x69, 0x64,
0x57, 0x6f, 0x72, 0x6b, 0x52, 0x65, 0x71, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x22, 0x55, 0x0a, 0x0d, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x57, 0x6f, 0x72, 0x6b, 0x52, 0x65,
0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x12, 0x18, 0x0a, 0x71, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x52, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65,
0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e,
0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x22, 0x2c, 0x0a, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09,
0x0e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x57, 0x6f, 0x72, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x12, 0x52, 0x05, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x22, 0x2c, 0x0a, 0x0e, 0x55, 0x70, 0x64, 0x61, 0x74,
0x1a, 0x0a, 0x08, 0x77, 0x6f, 0x72, 0x6b, 0x55, 0x75, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x65, 0x57, 0x6f, 0x72, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x12, 0x1a, 0x0a, 0x08, 0x77, 0x6f, 0x72,
0x09, 0x52, 0x08, 0x77, 0x6f, 0x72, 0x6b, 0x55, 0x75, 0x69, 0x64, 0x32, 0x94, 0x01, 0x0a, 0x04, 0x6b, 0x55, 0x75, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x77, 0x6f, 0x72,
0x43, 0x61, 0x73, 0x74, 0x12, 0x51, 0x0a, 0x12, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x65, 0x6b, 0x55, 0x75, 0x69, 0x64, 0x2a, 0x3d, 0x0a, 0x0c, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72,
0x64, 0x69, 0x61, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x1b, 0x2e, 0x43, 0x61, 0x73, 0x6d, 0x54, 0x79, 0x70, 0x65, 0x12, 0x0b, 0x0a, 0x07, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e,
0x74, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x65, 0x64, 0x69, 0x61, 0x41, 0x63, 0x63, 0x10, 0x00, 0x12, 0x0a, 0x0a, 0x06, 0x54, 0x49, 0x4b, 0x54, 0x4f, 0x4b, 0x10, 0x01, 0x12, 0x0b,
0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x1a, 0x1c, 0x2e, 0x43, 0x61, 0x73, 0x74, 0x2e, 0x55, 0x0a, 0x07, 0x59, 0x4f, 0x55, 0x54, 0x55, 0x42, 0x45, 0x10, 0x02, 0x12, 0x07, 0x0a, 0x03, 0x49,
0x4e, 0x53, 0x10, 0x03, 0x32, 0xd8, 0x01, 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, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x65, 0x64, 0x69, 0x61, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e,
0x74, 0x52, 0x65, 0x73, 0x70, 0x22, 0x00, 0x12, 0x39, 0x0a, 0x0a, 0x55, 0x70, 0x64, 0x61, 0x74, 0x74, 0x52, 0x65, 0x71, 0x1a, 0x1c, 0x2e, 0x43, 0x61, 0x73, 0x74, 0x2e, 0x55, 0x70, 0x64, 0x61,
0x65, 0x57, 0x6f, 0x72, 0x6b, 0x12, 0x13, 0x2e, 0x43, 0x61, 0x73, 0x74, 0x2e, 0x55, 0x70, 0x64, 0x74, 0x65, 0x4d, 0x65, 0x64, 0x69, 0x61, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65,
0x61, 0x74, 0x65, 0x57, 0x6f, 0x72, 0x6b, 0x52, 0x65, 0x71, 0x1a, 0x14, 0x2e, 0x43, 0x61, 0x73, 0x73, 0x70, 0x22, 0x00, 0x12, 0x39, 0x0a, 0x0a, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x57, 0x6f,
0x74, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x57, 0x6f, 0x72, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x72, 0x6b, 0x12, 0x13, 0x2e, 0x43, 0x61, 0x73, 0x74, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65,
0x22, 0x00, 0x42, 0x0d, 0x5a, 0x0b, 0x2e, 0x2f, 0x63, 0x61, 0x73, 0x74, 0x3b, 0x63, 0x61, 0x73, 0x57, 0x6f, 0x72, 0x6b, 0x52, 0x65, 0x71, 0x1a, 0x14, 0x2e, 0x43, 0x61, 0x73, 0x74, 0x2e, 0x55,
0x74, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 0x70, 0x64, 0x61, 0x74, 0x65, 0x57, 0x6f, 0x72, 0x6b, 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 ( var (
@ -290,23 +535,30 @@ func file_pb_fiee_cast_proto_rawDescGZIP() []byte {
return file_pb_fiee_cast_proto_rawDescData return file_pb_fiee_cast_proto_rawDescData
} }
var file_pb_fiee_cast_proto_msgTypes = make([]protoimpl.MessageInfo, 4) var file_pb_fiee_cast_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
var file_pb_fiee_cast_proto_msgTypes = make([]protoimpl.MessageInfo, 6)
var file_pb_fiee_cast_proto_goTypes = []any{ var file_pb_fiee_cast_proto_goTypes = []any{
(*UpdateMediaAccountReq)(nil), // 0: Cast.UpdateMediaAccountReq (PlatformType)(0), // 0: Cast.PlatformType
(*UpdateMediaAccountResp)(nil), // 1: Cast.UpdateMediaAccountResp (*MediaUserListReq)(nil), // 1: Cast.MediaUserListReq
(*UpdateWorkReq)(nil), // 2: Cast.UpdateWorkReq (*MediaUserListResp)(nil), // 2: Cast.MediaUserListResp
(*UpdateWorkResp)(nil), // 3: Cast.UpdateWorkResp (*UpdateMediaAccountReq)(nil), // 3: Cast.UpdateMediaAccountReq
(*UpdateMediaAccountResp)(nil), // 4: Cast.UpdateMediaAccountResp
(*UpdateWorkReq)(nil), // 5: Cast.UpdateWorkReq
(*UpdateWorkResp)(nil), // 6: Cast.UpdateWorkResp
} }
var file_pb_fiee_cast_proto_depIdxs = []int32{ var file_pb_fiee_cast_proto_depIdxs = []int32{
0, // 0: Cast.Cast.UpdateMediaAccount:input_type -> Cast.UpdateMediaAccountReq 0, // 0: Cast.UpdateMediaAccountReq.platformType:type_name -> Cast.PlatformType
2, // 1: Cast.Cast.UpdateWork:input_type -> Cast.UpdateWorkReq 1, // 1: Cast.Cast.MediaUserList:input_type -> Cast.MediaUserListReq
1, // 2: Cast.Cast.UpdateMediaAccount:output_type -> Cast.UpdateMediaAccountResp 3, // 2: Cast.Cast.UpdateMediaAccount:input_type -> Cast.UpdateMediaAccountReq
3, // 3: Cast.Cast.UpdateWork:output_type -> Cast.UpdateWorkResp 5, // 3: Cast.Cast.UpdateWork:input_type -> Cast.UpdateWorkReq
2, // [2:4] is the sub-list for method output_type 2, // 4: Cast.Cast.MediaUserList:output_type -> Cast.MediaUserListResp
0, // [0:2] is the sub-list for method input_type 4, // 5: Cast.Cast.UpdateMediaAccount:output_type -> Cast.UpdateMediaAccountResp
0, // [0:0] is the sub-list for extension type_name 6, // 6: Cast.Cast.UpdateWork:output_type -> Cast.UpdateWorkResp
0, // [0:0] is the sub-list for extension extendee 4, // [4:7] is the sub-list for method output_type
0, // [0:0] is the sub-list for field type_name 1, // [1:4] is the sub-list for method input_type
1, // [1:1] is the sub-list for extension type_name
1, // [1:1] is the sub-list for extension extendee
0, // [0:1] is the sub-list for field type_name
} }
func init() { file_pb_fiee_cast_proto_init() } func init() { file_pb_fiee_cast_proto_init() }
@ -319,13 +571,14 @@ func file_pb_fiee_cast_proto_init() {
File: protoimpl.DescBuilder{ File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(), GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_pb_fiee_cast_proto_rawDesc, RawDescriptor: file_pb_fiee_cast_proto_rawDesc,
NumEnums: 0, NumEnums: 1,
NumMessages: 4, NumMessages: 6,
NumExtensions: 0, NumExtensions: 0,
NumServices: 1, NumServices: 1,
}, },
GoTypes: file_pb_fiee_cast_proto_goTypes, GoTypes: file_pb_fiee_cast_proto_goTypes,
DependencyIndexes: file_pb_fiee_cast_proto_depIdxs, DependencyIndexes: file_pb_fiee_cast_proto_depIdxs,
EnumInfos: file_pb_fiee_cast_proto_enumTypes,
MessageInfos: file_pb_fiee_cast_proto_msgTypes, MessageInfos: file_pb_fiee_cast_proto_msgTypes,
}.Build() }.Build()
File_pb_fiee_cast_proto = out.File File_pb_fiee_cast_proto = out.File

View File

@ -0,0 +1,678 @@
// Code generated by protoc-gen-validate. DO NOT EDIT.
// source: pb/fiee/cast.proto
package cast
import (
"bytes"
"errors"
"fmt"
"net"
"net/mail"
"net/url"
"regexp"
"sort"
"strings"
"time"
"unicode/utf8"
"google.golang.org/protobuf/types/known/anypb"
)
// ensure the imports are used
var (
_ = bytes.MinRead
_ = errors.New("")
_ = fmt.Print
_ = utf8.UTFMax
_ = (*regexp.Regexp)(nil)
_ = (*strings.Reader)(nil)
_ = net.IPv4len
_ = time.Duration(0)
_ = (*url.URL)(nil)
_ = (*mail.Address)(nil)
_ = anypb.Any{}
_ = sort.Sort
)
// Validate checks the field values on MediaUserListReq 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 *MediaUserListReq) Validate() error {
return m.validate(false)
}
// ValidateAll checks the field values on MediaUserListReq 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
// MediaUserListReqMultiError, or nil if none found.
func (m *MediaUserListReq) ValidateAll() error {
return m.validate(true)
}
func (m *MediaUserListReq) validate(all bool) error {
if m == nil {
return nil
}
var errors []error
// no validation rules for Phone
// no validation rules for UserPlatformName
// no validation rules for ManagerName
// no validation rules for PlatformType
if len(errors) > 0 {
return MediaUserListReqMultiError(errors)
}
return nil
}
// MediaUserListReqMultiError is an error wrapping multiple validation errors
// returned by MediaUserListReq.ValidateAll() if the designated constraints
// aren't met.
type MediaUserListReqMultiError []error
// Error returns a concatenation of all the error messages it wraps.
func (m MediaUserListReqMultiError) 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 MediaUserListReqMultiError) AllErrors() []error { return m }
// MediaUserListReqValidationError is the validation error returned by
// MediaUserListReq.Validate if the designated constraints aren't met.
type MediaUserListReqValidationError struct {
field string
reason string
cause error
key bool
}
// Field function returns field value.
func (e MediaUserListReqValidationError) Field() string { return e.field }
// Reason function returns reason value.
func (e MediaUserListReqValidationError) Reason() string { return e.reason }
// Cause function returns cause value.
func (e MediaUserListReqValidationError) Cause() error { return e.cause }
// Key function returns key value.
func (e MediaUserListReqValidationError) Key() bool { return e.key }
// ErrorName returns error name.
func (e MediaUserListReqValidationError) ErrorName() string { return "MediaUserListReqValidationError" }
// Error satisfies the builtin error interface
func (e MediaUserListReqValidationError) 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 %sMediaUserListReq.%s: %s%s",
key,
e.field,
e.reason,
cause)
}
var _ error = MediaUserListReqValidationError{}
var _ interface {
Field() string
Reason() string
Key() bool
Cause() error
ErrorName() string
} = MediaUserListReqValidationError{}
// Validate checks the field values on MediaUserListResp 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 *MediaUserListResp) Validate() error {
return m.validate(false)
}
// ValidateAll checks the field values on MediaUserListResp 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
// MediaUserListRespMultiError, or nil if none found.
func (m *MediaUserListResp) ValidateAll() error {
return m.validate(true)
}
func (m *MediaUserListResp) validate(all bool) error {
if m == nil {
return nil
}
var errors []error
if len(errors) > 0 {
return MediaUserListRespMultiError(errors)
}
return nil
}
// MediaUserListRespMultiError is an error wrapping multiple validation errors
// returned by MediaUserListResp.ValidateAll() if the designated constraints
// aren't met.
type MediaUserListRespMultiError []error
// Error returns a concatenation of all the error messages it wraps.
func (m MediaUserListRespMultiError) 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 MediaUserListRespMultiError) AllErrors() []error { return m }
// MediaUserListRespValidationError is the validation error returned by
// MediaUserListResp.Validate if the designated constraints aren't met.
type MediaUserListRespValidationError struct {
field string
reason string
cause error
key bool
}
// Field function returns field value.
func (e MediaUserListRespValidationError) Field() string { return e.field }
// Reason function returns reason value.
func (e MediaUserListRespValidationError) Reason() string { return e.reason }
// Cause function returns cause value.
func (e MediaUserListRespValidationError) Cause() error { return e.cause }
// Key function returns key value.
func (e MediaUserListRespValidationError) Key() bool { return e.key }
// ErrorName returns error name.
func (e MediaUserListRespValidationError) ErrorName() string {
return "MediaUserListRespValidationError"
}
// Error satisfies the builtin error interface
func (e MediaUserListRespValidationError) 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 %sMediaUserListResp.%s: %s%s",
key,
e.field,
e.reason,
cause)
}
var _ error = MediaUserListRespValidationError{}
var _ interface {
Field() string
Reason() string
Key() bool
Cause() error
ErrorName() string
} = MediaUserListRespValidationError{}
// Validate checks the field values on UpdateMediaAccountReq 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 *UpdateMediaAccountReq) Validate() error {
return m.validate(false)
}
// ValidateAll checks the field values on UpdateMediaAccountReq 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
// UpdateMediaAccountReqMultiError, or nil if none found.
func (m *UpdateMediaAccountReq) ValidateAll() error {
return m.validate(true)
}
func (m *UpdateMediaAccountReq) validate(all bool) error {
if m == nil {
return nil
}
var errors []error
// no validation rules for PlatformType
// no validation rules for PlatformUserName
// no validation rules for PlatformUserID
// no validation rules for ArtistUuid
// no validation rules for ArtistUserName
// no validation rules for ArtistPhone
// no validation rules for MediaAccountUuid
// no validation rules for ManagerUuid
// no validation rules for ManagerUserName
if len(errors) > 0 {
return UpdateMediaAccountReqMultiError(errors)
}
return nil
}
// UpdateMediaAccountReqMultiError is an error wrapping multiple validation
// errors returned by UpdateMediaAccountReq.ValidateAll() if the designated
// constraints aren't met.
type UpdateMediaAccountReqMultiError []error
// Error returns a concatenation of all the error messages it wraps.
func (m UpdateMediaAccountReqMultiError) 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 UpdateMediaAccountReqMultiError) AllErrors() []error { return m }
// UpdateMediaAccountReqValidationError is the validation error returned by
// UpdateMediaAccountReq.Validate if the designated constraints aren't met.
type UpdateMediaAccountReqValidationError struct {
field string
reason string
cause error
key bool
}
// Field function returns field value.
func (e UpdateMediaAccountReqValidationError) Field() string { return e.field }
// Reason function returns reason value.
func (e UpdateMediaAccountReqValidationError) Reason() string { return e.reason }
// Cause function returns cause value.
func (e UpdateMediaAccountReqValidationError) Cause() error { return e.cause }
// Key function returns key value.
func (e UpdateMediaAccountReqValidationError) Key() bool { return e.key }
// ErrorName returns error name.
func (e UpdateMediaAccountReqValidationError) ErrorName() string {
return "UpdateMediaAccountReqValidationError"
}
// Error satisfies the builtin error interface
func (e UpdateMediaAccountReqValidationError) 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 %sUpdateMediaAccountReq.%s: %s%s",
key,
e.field,
e.reason,
cause)
}
var _ error = UpdateMediaAccountReqValidationError{}
var _ interface {
Field() string
Reason() string
Key() bool
Cause() error
ErrorName() string
} = UpdateMediaAccountReqValidationError{}
// Validate checks the field values on UpdateMediaAccountResp 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 *UpdateMediaAccountResp) Validate() error {
return m.validate(false)
}
// ValidateAll checks the field values on UpdateMediaAccountResp 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
// UpdateMediaAccountRespMultiError, or nil if none found.
func (m *UpdateMediaAccountResp) ValidateAll() error {
return m.validate(true)
}
func (m *UpdateMediaAccountResp) validate(all bool) error {
if m == nil {
return nil
}
var errors []error
// no validation rules for MediaAccountUuid
if len(errors) > 0 {
return UpdateMediaAccountRespMultiError(errors)
}
return nil
}
// UpdateMediaAccountRespMultiError is an error wrapping multiple validation
// errors returned by UpdateMediaAccountResp.ValidateAll() if the designated
// constraints aren't met.
type UpdateMediaAccountRespMultiError []error
// Error returns a concatenation of all the error messages it wraps.
func (m UpdateMediaAccountRespMultiError) 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 UpdateMediaAccountRespMultiError) AllErrors() []error { return m }
// UpdateMediaAccountRespValidationError is the validation error returned by
// UpdateMediaAccountResp.Validate if the designated constraints aren't met.
type UpdateMediaAccountRespValidationError struct {
field string
reason string
cause error
key bool
}
// Field function returns field value.
func (e UpdateMediaAccountRespValidationError) Field() string { return e.field }
// Reason function returns reason value.
func (e UpdateMediaAccountRespValidationError) Reason() string { return e.reason }
// Cause function returns cause value.
func (e UpdateMediaAccountRespValidationError) Cause() error { return e.cause }
// Key function returns key value.
func (e UpdateMediaAccountRespValidationError) Key() bool { return e.key }
// ErrorName returns error name.
func (e UpdateMediaAccountRespValidationError) ErrorName() string {
return "UpdateMediaAccountRespValidationError"
}
// Error satisfies the builtin error interface
func (e UpdateMediaAccountRespValidationError) 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 %sUpdateMediaAccountResp.%s: %s%s",
key,
e.field,
e.reason,
cause)
}
var _ error = UpdateMediaAccountRespValidationError{}
var _ interface {
Field() string
Reason() string
Key() bool
Cause() error
ErrorName() string
} = UpdateMediaAccountRespValidationError{}
// Validate checks the field values on UpdateWorkReq 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 *UpdateWorkReq) Validate() error {
return m.validate(false)
}
// ValidateAll checks the field values on UpdateWorkReq 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 UpdateWorkReqMultiError, or
// nil if none found.
func (m *UpdateWorkReq) ValidateAll() error {
return m.validate(true)
}
func (m *UpdateWorkReq) validate(all bool) error {
if m == nil {
return nil
}
var errors []error
// no validation rules for Title
// no validation rules for Content
// no validation rules for Image
if len(errors) > 0 {
return UpdateWorkReqMultiError(errors)
}
return nil
}
// UpdateWorkReqMultiError is an error wrapping multiple validation errors
// returned by UpdateWorkReq.ValidateAll() if the designated constraints
// aren't met.
type UpdateWorkReqMultiError []error
// Error returns a concatenation of all the error messages it wraps.
func (m UpdateWorkReqMultiError) 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 UpdateWorkReqMultiError) AllErrors() []error { return m }
// UpdateWorkReqValidationError is the validation error returned by
// UpdateWorkReq.Validate if the designated constraints aren't met.
type UpdateWorkReqValidationError struct {
field string
reason string
cause error
key bool
}
// Field function returns field value.
func (e UpdateWorkReqValidationError) Field() string { return e.field }
// Reason function returns reason value.
func (e UpdateWorkReqValidationError) Reason() string { return e.reason }
// Cause function returns cause value.
func (e UpdateWorkReqValidationError) Cause() error { return e.cause }
// Key function returns key value.
func (e UpdateWorkReqValidationError) Key() bool { return e.key }
// ErrorName returns error name.
func (e UpdateWorkReqValidationError) ErrorName() string { return "UpdateWorkReqValidationError" }
// Error satisfies the builtin error interface
func (e UpdateWorkReqValidationError) 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 %sUpdateWorkReq.%s: %s%s",
key,
e.field,
e.reason,
cause)
}
var _ error = UpdateWorkReqValidationError{}
var _ interface {
Field() string
Reason() string
Key() bool
Cause() error
ErrorName() string
} = UpdateWorkReqValidationError{}
// Validate checks the field values on UpdateWorkResp 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 *UpdateWorkResp) Validate() error {
return m.validate(false)
}
// ValidateAll checks the field values on UpdateWorkResp 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 UpdateWorkRespMultiError,
// or nil if none found.
func (m *UpdateWorkResp) ValidateAll() error {
return m.validate(true)
}
func (m *UpdateWorkResp) validate(all bool) error {
if m == nil {
return nil
}
var errors []error
// no validation rules for WorkUuid
if len(errors) > 0 {
return UpdateWorkRespMultiError(errors)
}
return nil
}
// UpdateWorkRespMultiError is an error wrapping multiple validation errors
// returned by UpdateWorkResp.ValidateAll() if the designated constraints
// aren't met.
type UpdateWorkRespMultiError []error
// Error returns a concatenation of all the error messages it wraps.
func (m UpdateWorkRespMultiError) 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 UpdateWorkRespMultiError) AllErrors() []error { return m }
// UpdateWorkRespValidationError is the validation error returned by
// UpdateWorkResp.Validate if the designated constraints aren't met.
type UpdateWorkRespValidationError struct {
field string
reason string
cause error
key bool
}
// Field function returns field value.
func (e UpdateWorkRespValidationError) Field() string { return e.field }
// Reason function returns reason value.
func (e UpdateWorkRespValidationError) Reason() string { return e.reason }
// Cause function returns cause value.
func (e UpdateWorkRespValidationError) Cause() error { return e.cause }
// Key function returns key value.
func (e UpdateWorkRespValidationError) Key() bool { return e.key }
// ErrorName returns error name.
func (e UpdateWorkRespValidationError) ErrorName() string { return "UpdateWorkRespValidationError" }
// Error satisfies the builtin error interface
func (e UpdateWorkRespValidationError) 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 %sUpdateWorkResp.%s: %s%s",
key,
e.field,
e.reason,
cause)
}
var _ error = UpdateWorkRespValidationError{}
var _ interface {
Field() string
Reason() string
Key() bool
Cause() error
ErrorName() string
} = UpdateWorkRespValidationError{}

View File

@ -7,6 +7,7 @@ import (
fmt "fmt" fmt "fmt"
math "math" math "math"
proto "github.com/golang/protobuf/proto" proto "github.com/golang/protobuf/proto"
_ "github.com/envoyproxy/protoc-gen-validate/validate"
_ "google.golang.org/protobuf/types/known/wrapperspb" _ "google.golang.org/protobuf/types/known/wrapperspb"
_ "google.golang.org/protobuf/types/descriptorpb" _ "google.golang.org/protobuf/types/descriptorpb"
_ "google.golang.org/protobuf/types/known/emptypb" _ "google.golang.org/protobuf/types/known/emptypb"
@ -17,6 +18,12 @@ var _ = proto.Marshal
var _ = fmt.Errorf var _ = fmt.Errorf
var _ = math.Inf var _ = math.Inf
func (this *MediaUserListReq) Validate() error {
return nil
}
func (this *MediaUserListResp) Validate() error {
return nil
}
func (this *UpdateMediaAccountReq) Validate() error { func (this *UpdateMediaAccountReq) Validate() error {
return nil return nil
} }

View File

@ -28,6 +28,7 @@ const _ = grpc_go.SupportPackageIsVersion7
// //
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
type CastClient interface { type CastClient interface {
MediaUserList(ctx context.Context, in *MediaUserListReq, opts ...grpc_go.CallOption) (*MediaUserListResp, common.ErrorWithAttachment)
UpdateMediaAccount(ctx context.Context, in *UpdateMediaAccountReq, opts ...grpc_go.CallOption) (*UpdateMediaAccountResp, common.ErrorWithAttachment) UpdateMediaAccount(ctx context.Context, in *UpdateMediaAccountReq, opts ...grpc_go.CallOption) (*UpdateMediaAccountResp, common.ErrorWithAttachment)
UpdateWork(ctx context.Context, in *UpdateWorkReq, opts ...grpc_go.CallOption) (*UpdateWorkResp, common.ErrorWithAttachment) UpdateWork(ctx context.Context, in *UpdateWorkReq, opts ...grpc_go.CallOption) (*UpdateWorkResp, common.ErrorWithAttachment)
} }
@ -37,6 +38,7 @@ type castClient struct {
} }
type CastClientImpl struct { type CastClientImpl struct {
MediaUserList func(ctx context.Context, in *MediaUserListReq) (*MediaUserListResp, error)
UpdateMediaAccount func(ctx context.Context, in *UpdateMediaAccountReq) (*UpdateMediaAccountResp, error) UpdateMediaAccount func(ctx context.Context, in *UpdateMediaAccountReq) (*UpdateMediaAccountResp, error)
UpdateWork func(ctx context.Context, in *UpdateWorkReq) (*UpdateWorkResp, error) UpdateWork func(ctx context.Context, in *UpdateWorkReq) (*UpdateWorkResp, error)
} }
@ -53,6 +55,12 @@ func NewCastClient(cc *triple.TripleConn) CastClient {
return &castClient{cc} return &castClient{cc}
} }
func (c *castClient) MediaUserList(ctx context.Context, in *MediaUserListReq, opts ...grpc_go.CallOption) (*MediaUserListResp, common.ErrorWithAttachment) {
out := new(MediaUserListResp)
interfaceKey := ctx.Value(constant.InterfaceKey).(string)
return out, c.cc.Invoke(ctx, "/"+interfaceKey+"/MediaUserList", in, out)
}
func (c *castClient) UpdateMediaAccount(ctx context.Context, in *UpdateMediaAccountReq, opts ...grpc_go.CallOption) (*UpdateMediaAccountResp, common.ErrorWithAttachment) { func (c *castClient) UpdateMediaAccount(ctx context.Context, in *UpdateMediaAccountReq, opts ...grpc_go.CallOption) (*UpdateMediaAccountResp, common.ErrorWithAttachment) {
out := new(UpdateMediaAccountResp) out := new(UpdateMediaAccountResp)
interfaceKey := ctx.Value(constant.InterfaceKey).(string) interfaceKey := ctx.Value(constant.InterfaceKey).(string)
@ -69,6 +77,7 @@ func (c *castClient) UpdateWork(ctx context.Context, in *UpdateWorkReq, opts ...
// All implementations must embed UnimplementedCastServer // All implementations must embed UnimplementedCastServer
// for forward compatibility // for forward compatibility
type CastServer interface { type CastServer interface {
MediaUserList(context.Context, *MediaUserListReq) (*MediaUserListResp, error)
UpdateMediaAccount(context.Context, *UpdateMediaAccountReq) (*UpdateMediaAccountResp, error) UpdateMediaAccount(context.Context, *UpdateMediaAccountReq) (*UpdateMediaAccountResp, error)
UpdateWork(context.Context, *UpdateWorkReq) (*UpdateWorkResp, error) UpdateWork(context.Context, *UpdateWorkReq) (*UpdateWorkResp, error)
mustEmbedUnimplementedCastServer() mustEmbedUnimplementedCastServer()
@ -79,6 +88,9 @@ type UnimplementedCastServer struct {
proxyImpl protocol.Invoker proxyImpl protocol.Invoker
} }
func (UnimplementedCastServer) MediaUserList(context.Context, *MediaUserListReq) (*MediaUserListResp, error) {
return nil, status.Errorf(codes.Unimplemented, "method MediaUserList not implemented")
}
func (UnimplementedCastServer) UpdateMediaAccount(context.Context, *UpdateMediaAccountReq) (*UpdateMediaAccountResp, error) { func (UnimplementedCastServer) UpdateMediaAccount(context.Context, *UpdateMediaAccountReq) (*UpdateMediaAccountResp, error) {
return nil, status.Errorf(codes.Unimplemented, "method UpdateMediaAccount not implemented") return nil, status.Errorf(codes.Unimplemented, "method UpdateMediaAccount not implemented")
} }
@ -113,6 +125,35 @@ func RegisterCastServer(s grpc_go.ServiceRegistrar, srv CastServer) {
s.RegisterService(&Cast_ServiceDesc, srv) s.RegisterService(&Cast_ServiceDesc, srv)
} }
func _Cast_MediaUserList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc_go.UnaryServerInterceptor) (interface{}, error) {
in := new(MediaUserListReq)
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("MediaUserList", 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_UpdateMediaAccount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc_go.UnaryServerInterceptor) (interface{}, error) { func _Cast_UpdateMediaAccount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc_go.UnaryServerInterceptor) (interface{}, error) {
in := new(UpdateMediaAccountReq) in := new(UpdateMediaAccountReq)
if err := dec(in); err != nil { if err := dec(in); err != nil {
@ -178,6 +219,10 @@ var Cast_ServiceDesc = grpc_go.ServiceDesc{
ServiceName: "Cast.Cast", ServiceName: "Cast.Cast",
HandlerType: (*CastServer)(nil), HandlerType: (*CastServer)(nil),
Methods: []grpc_go.MethodDesc{ Methods: []grpc_go.MethodDesc{
{
MethodName: "MediaUserList",
Handler: _Cast_MediaUserList_Handler,
},
{ {
MethodName: "UpdateMediaAccount", MethodName: "UpdateMediaAccount",
Handler: _Cast_UpdateMediaAccount_Handler, Handler: _Cast_UpdateMediaAccount_Handler,

5
go.mod
View File

@ -112,7 +112,9 @@ require (
) )
require ( require (
github.com/360EntSecGroup-Skylar/excelize v1.4.1
github.com/BurntSushi/toml v1.2.1 github.com/BurntSushi/toml v1.2.1
github.com/PuerkitoBio/goquery v1.10.3
github.com/disintegration/imaging v1.6.2 github.com/disintegration/imaging v1.6.2
github.com/fonchain_enterprise/utils/objstorage v0.0.0-00010101000000-000000000000 github.com/fonchain_enterprise/utils/objstorage v0.0.0-00010101000000-000000000000
github.com/gin-contrib/pprof v1.4.0 github.com/gin-contrib/pprof v1.4.0
@ -127,8 +129,6 @@ require (
require ( require (
cloud.google.com/go v0.65.0 // indirect cloud.google.com/go v0.65.0 // indirect
github.com/360EntSecGroup-Skylar/excelize v1.4.1 // indirect
github.com/PuerkitoBio/goquery v1.10.3 // indirect
github.com/afex/hystrix-go v0.0.0-20180502004556-fa1af6a1f4f5 // indirect github.com/afex/hystrix-go v0.0.0-20180502004556-fa1af6a1f4f5 // indirect
github.com/alibaba/sentinel-golang v1.0.4 // indirect github.com/alibaba/sentinel-golang v1.0.4 // indirect
github.com/aliyun/alibaba-cloud-sdk-go v1.61.18 // indirect github.com/aliyun/alibaba-cloud-sdk-go v1.61.18 // indirect
@ -156,7 +156,6 @@ require (
github.com/go-logr/stdr v1.2.2 // indirect github.com/go-logr/stdr v1.2.2 // indirect
github.com/go-resty/resty/v2 v2.7.0 // indirect github.com/go-resty/resty/v2 v2.7.0 // indirect
github.com/golang/mock v1.5.0 // indirect github.com/golang/mock v1.5.0 // indirect
github.com/google/go-cmp v0.6.0 // indirect
github.com/google/uuid v1.6.0 // indirect github.com/google/uuid v1.6.0 // indirect
github.com/gopherjs/gopherjs v0.0.0-20200217142428-fce0ec30dd00 // indirect github.com/gopherjs/gopherjs v0.0.0-20200217142428-fce0ec30dd00 // indirect
github.com/grpc-ecosystem/grpc-opentracing v0.0.0-20180507213350-8e809c8a8645 // indirect github.com/grpc-ecosystem/grpc-opentracing v0.0.0-20180507213350-8e809c8a8645 // indirect

14
go.sum
View File

@ -286,6 +286,7 @@ github.com/go-ole/go-ole v1.2.4 h1:nNBDSCOigTSiarFpYE9J/KtEA1IOW4CNeqT9TQDqCxI=
github.com/go-ole/go-ole v1.2.4/go.mod h1:XCwSNxSkXRo4vlyPy93sltvi/qJq0jqQhjqQNIwKuxM= github.com/go-ole/go-ole v1.2.4/go.mod h1:XCwSNxSkXRo4vlyPy93sltvi/qJq0jqQhjqQNIwKuxM=
github.com/go-playground/assert/v2 v2.0.1/go.mod h1:VDjEfimB/XKnb+ZQfWdccd7VUvScMdVu0Titje2rxJ4= github.com/go-playground/assert/v2 v2.0.1/go.mod h1:VDjEfimB/XKnb+ZQfWdccd7VUvScMdVu0Titje2rxJ4=
github.com/go-playground/assert/v2 v2.2.0 h1:JvknZsQTYeFEAhQwI4qEt9cyV5ONwRHC+lYKSsYSR8s= github.com/go-playground/assert/v2 v2.2.0 h1:JvknZsQTYeFEAhQwI4qEt9cyV5ONwRHC+lYKSsYSR8s=
github.com/go-playground/assert/v2 v2.2.0/go.mod h1:VDjEfimB/XKnb+ZQfWdccd7VUvScMdVu0Titje2rxJ4=
github.com/go-playground/locales v0.13.0/go.mod h1:taPMhCMXrRLJO55olJkUXHZBHCxTMfnGwq/HNwmWNS8= github.com/go-playground/locales v0.13.0/go.mod h1:taPMhCMXrRLJO55olJkUXHZBHCxTMfnGwq/HNwmWNS8=
github.com/go-playground/locales v0.14.0/go.mod h1:sawfccIbzZTqEDETgFXqTho0QybSa7l++s0DH+LDiLs= github.com/go-playground/locales v0.14.0/go.mod h1:sawfccIbzZTqEDETgFXqTho0QybSa7l++s0DH+LDiLs=
github.com/go-playground/locales v0.14.1 h1:EWaQ/wswjilfKLTECiXz7Rh+3BjFhfDFKv/oXslEjJA= github.com/go-playground/locales v0.14.1 h1:EWaQ/wswjilfKLTECiXz7Rh+3BjFhfDFKv/oXslEjJA=
@ -387,8 +388,7 @@ github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/
github.com/google/go-cmp v0.5.6/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.6/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
github.com/google/go-cmp v0.5.7/go.mod h1:n+brtR0CgQNWTVd5ZUFpTBC8YFBDLK/h/bpaJ8/DtOE= github.com/google/go-cmp v0.5.7/go.mod h1:n+brtR0CgQNWTVd5ZUFpTBC8YFBDLK/h/bpaJ8/DtOE=
github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY=
github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38= github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI=
github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY=
github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY=
github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg=
github.com/google/martian v2.1.0+incompatible/go.mod h1:9I4somxYTbIHy5NJKHRl3wXiIaQGbYVAs8BPL6v8lEs= github.com/google/martian v2.1.0+incompatible/go.mod h1:9I4somxYTbIHy5NJKHRl3wXiIaQGbYVAs8BPL6v8lEs=
@ -958,10 +958,10 @@ golang.org/x/crypto v0.0.0-20210711020723-a769d52b0f97/go.mod h1:GvvjBRRGRdwPK5y
golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc=
golang.org/x/crypto v0.0.0-20211215153901-e495a2d5b3d3/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4= golang.org/x/crypto v0.0.0-20211215153901-e495a2d5b3d3/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4=
golang.org/x/crypto v0.13.0/go.mod h1:y6Z2r+Rw4iayiXXAIxJIDAJ1zMW4yaTpebo8fPOliYc= golang.org/x/crypto v0.13.0/go.mod h1:y6Z2r+Rw4iayiXXAIxJIDAJ1zMW4yaTpebo8fPOliYc=
golang.org/x/crypto v0.19.0 h1:ENy+Az/9Y1vSrlrvBSyna3PITt4tiZLf7sgCjZBX7Wo=
golang.org/x/crypto v0.19.0/go.mod h1:Iy9bg/ha4yyC70EfRS8jz+B6ybOBKMaSxLj6P6oBDfU= golang.org/x/crypto v0.19.0/go.mod h1:Iy9bg/ha4yyC70EfRS8jz+B6ybOBKMaSxLj6P6oBDfU=
golang.org/x/crypto v0.23.0/go.mod h1:CKFgDieR+mRhux2Lsu27y0fO304Db0wZe70UKqHu0v8= golang.org/x/crypto v0.23.0/go.mod h1:CKFgDieR+mRhux2Lsu27y0fO304Db0wZe70UKqHu0v8=
golang.org/x/crypto v0.31.0/go.mod h1:kDsLvtWBEx7MV9tJOj9bnXsPbxwJQ6csT/x4KIN4Ssk= golang.org/x/crypto v0.31.0/go.mod h1:kDsLvtWBEx7MV9tJOj9bnXsPbxwJQ6csT/x4KIN4Ssk=
golang.org/x/crypto v0.37.0 h1:kJNSjF/Xp7kU0iB2Z+9viTPMW4EqqsrywMXLJOOsXSE=
golang.org/x/crypto v0.37.0/go.mod h1:vg+k43peMZ0pUMhYmVAWysMK35e6ioLh3wB8ZCAfbVc= golang.org/x/crypto v0.37.0/go.mod h1:vg+k43peMZ0pUMhYmVAWysMK35e6ioLh3wB8ZCAfbVc=
golang.org/x/exp v0.0.0-20180321215751-8460e604b9de/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= golang.org/x/exp v0.0.0-20180321215751-8460e604b9de/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA=
golang.org/x/exp v0.0.0-20180807140117-3d87b88a115f/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= golang.org/x/exp v0.0.0-20180807140117-3d87b88a115f/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA=
@ -1060,7 +1060,6 @@ golang.org/x/net v0.0.0-20220722155237-a158d28d115b/go.mod h1:XRhObCWvk6IyKnWLug
golang.org/x/net v0.6.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs= golang.org/x/net v0.6.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs=
golang.org/x/net v0.10.0/go.mod h1:0qNGK6F8kojg2nk9dLZ2mShWaEBan6FAoqfSigmmuDg= golang.org/x/net v0.10.0/go.mod h1:0qNGK6F8kojg2nk9dLZ2mShWaEBan6FAoqfSigmmuDg=
golang.org/x/net v0.15.0/go.mod h1:idbUs1IY1+zTqbi8yxTbhexhEEk5ur9LInksu6HrEpk= golang.org/x/net v0.15.0/go.mod h1:idbUs1IY1+zTqbi8yxTbhexhEEk5ur9LInksu6HrEpk=
golang.org/x/net v0.21.0 h1:AQyQV4dYCvJ7vGmJyKki9+PBdyvhkSd8EIx/qb0AYv4=
golang.org/x/net v0.21.0/go.mod h1:bIjVDfnllIU7BJ2DNgfnXvpSvtn8VRwhlsaeUTyUS44= golang.org/x/net v0.21.0/go.mod h1:bIjVDfnllIU7BJ2DNgfnXvpSvtn8VRwhlsaeUTyUS44=
golang.org/x/net v0.25.0/go.mod h1:JkAGAh7GEvH74S6FOH42FLoXpXbE/aqXSrIQjXgsiwM= golang.org/x/net v0.25.0/go.mod h1:JkAGAh7GEvH74S6FOH42FLoXpXbE/aqXSrIQjXgsiwM=
golang.org/x/net v0.33.0/go.mod h1:HXLR5J+9DxmrqMwG9qjGCxZ+zKXxBru04zlTvWlWuN4= golang.org/x/net v0.33.0/go.mod h1:HXLR5J+9DxmrqMwG9qjGCxZ+zKXxBru04zlTvWlWuN4=
@ -1086,12 +1085,12 @@ golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJ
golang.org/x/sync v0.0.0-20201207232520-09787c993a3a/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20201207232520-09787c993a3a/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
golang.org/x/sync v0.0.0-20210220032951-036812b2e83c/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20210220032951-036812b2e83c/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
golang.org/x/sync v0.1.0 h1:wsuoTGHzEhffawBOhz5CYhcrV4IdKZbEyZjBMuTp12o=
golang.org/x/sync v0.1.0/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.1.0/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
golang.org/x/sync v0.3.0/go.mod h1:FU7BRWz2tNW+3quACPkgCx/L+uEAv1htQ0V83Z9Rj+Y= golang.org/x/sync v0.3.0/go.mod h1:FU7BRWz2tNW+3quACPkgCx/L+uEAv1htQ0V83Z9Rj+Y=
golang.org/x/sync v0.6.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= golang.org/x/sync v0.6.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk=
golang.org/x/sync v0.7.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= golang.org/x/sync v0.7.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk=
golang.org/x/sync v0.10.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= golang.org/x/sync v0.10.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk=
golang.org/x/sync v0.13.0 h1:AauUjRAJ9OSnvULf/ARrrVywoJDy0YS2AwQ98I37610=
golang.org/x/sync v0.13.0/go.mod h1:1dzgHSNfp02xaA81J2MS99Qcpr2w7fw1gpm99rleRqA= golang.org/x/sync v0.13.0/go.mod h1:1dzgHSNfp02xaA81J2MS99Qcpr2w7fw1gpm99rleRqA=
golang.org/x/sys v0.0.0-20180823144017-11551d06cbcc/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20180823144017-11551d06cbcc/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
@ -1175,10 +1174,9 @@ golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.8.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.8.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.12.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.12.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.17.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/sys v0.17.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
golang.org/x/sys v0.18.0 h1:DBdB3niSjOA/O0blCZBqDefyWNYveAYMNF1Wum0DYQ4=
golang.org/x/sys v0.18.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
golang.org/x/sys v0.20.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/sys v0.20.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
golang.org/x/sys v0.28.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/sys v0.28.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
golang.org/x/sys v0.32.0 h1:s77OFDvIQeibCmezSnk/q6iAfkdiQaJi4VzroCFrN20=
golang.org/x/sys v0.32.0/go.mod h1:BJP2sWEmIv4KK5OTEluFJCKSidICx8ciO85XgH3Ak8k= golang.org/x/sys v0.32.0/go.mod h1:BJP2sWEmIv4KK5OTEluFJCKSidICx8ciO85XgH3Ak8k=
golang.org/x/telemetry v0.0.0-20240228155512-f48c80bd79b2/go.mod h1:TeRTkGYfJXctD9OcfyVLyj2J3IxLnKwHJR8f4D8a3YE= golang.org/x/telemetry v0.0.0-20240228155512-f48c80bd79b2/go.mod h1:TeRTkGYfJXctD9OcfyVLyj2J3IxLnKwHJR8f4D8a3YE=
golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=
@ -1201,10 +1199,10 @@ golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ=
golang.org/x/text v0.7.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= golang.org/x/text v0.7.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8=
golang.org/x/text v0.9.0/go.mod h1:e1OnstbJyHTd6l/uOt8jFFHp6TRDWZR/bV3emEE/zU8= golang.org/x/text v0.9.0/go.mod h1:e1OnstbJyHTd6l/uOt8jFFHp6TRDWZR/bV3emEE/zU8=
golang.org/x/text v0.13.0/go.mod h1:TvPlkZtksWOMsz7fbANvkp4WM8x/WCo/om8BMLbz+aE= golang.org/x/text v0.13.0/go.mod h1:TvPlkZtksWOMsz7fbANvkp4WM8x/WCo/om8BMLbz+aE=
golang.org/x/text v0.14.0 h1:ScX5w1eTa3QqT8oi6+ziP7dTV1S2+ALU0bI+0zXKWiQ=
golang.org/x/text v0.14.0/go.mod h1:18ZOQIKpY8NJVqYksKHtTdi31H5itFRjB5/qKTNYzSU= golang.org/x/text v0.14.0/go.mod h1:18ZOQIKpY8NJVqYksKHtTdi31H5itFRjB5/qKTNYzSU=
golang.org/x/text v0.15.0/go.mod h1:18ZOQIKpY8NJVqYksKHtTdi31H5itFRjB5/qKTNYzSU= golang.org/x/text v0.15.0/go.mod h1:18ZOQIKpY8NJVqYksKHtTdi31H5itFRjB5/qKTNYzSU=
golang.org/x/text v0.21.0/go.mod h1:4IBbMaMmOPCJ8SecivzSH54+73PCFmPWxNTLm+vZkEQ= golang.org/x/text v0.21.0/go.mod h1:4IBbMaMmOPCJ8SecivzSH54+73PCFmPWxNTLm+vZkEQ=
golang.org/x/text v0.24.0 h1:dd5Bzh4yt5KYA8f9CJHCP4FB4D51c2c6JvN37xJJkJ0=
golang.org/x/text v0.24.0/go.mod h1:L8rBsPeo2pSS+xqN0d5u2ikmjtmoJbDBT1b7nHvFCdU= golang.org/x/text v0.24.0/go.mod h1:L8rBsPeo2pSS+xqN0d5u2ikmjtmoJbDBT1b7nHvFCdU=
golang.org/x/time v0.0.0-20180412165947-fbb02b2291d2/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/time v0.0.0-20180412165947-fbb02b2291d2/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=

View File

@ -2,6 +2,8 @@ package middleware
import ( import (
"bytes" "bytes"
"fmt"
"io"
"io/ioutil" "io/ioutil"
"log" "log"
"net" "net"
@ -24,7 +26,13 @@ func NewLogger() gin.HandlerFunc {
latencyTime := endTime.Sub(startTime) // 请求方式 latencyTime := endTime.Sub(startTime) // 请求方式
path := c.Request.URL.Path path := c.Request.URL.Path
query := c.Request.URL.RawQuery query := c.Request.URL.RawQuery
data, _ := ioutil.ReadAll(c.Request.Body) data, _ := io.ReadAll(c.Request.Body)
val := c.GetHeader("Accept-Language")
if val == "" {
c.Request.Header.Set("Accept-Language", "zh-CN")
}
val2 := c.GetHeader("Accept-Language")
fmt.Println(val2)
log.Printf("[%s] %s %d %s %s %s %s %s %s", path, c.Request.Method, c.Writer.Status(), query, log.Printf("[%s] %s %d %s %s %s %s %s %s", path, c.Request.Method, c.Writer.Status(), query,
string(data), c.ClientIP(), c.Request.UserAgent(), c.Errors.ByType(gin.ErrorTypePrivate).String(), latencyTime.String()) string(data), c.ClientIP(), c.Request.UserAgent(), c.Errors.ByType(gin.ErrorTypePrivate).String(), latencyTime.String())

View File

@ -1,8 +1,6 @@
package router package router
import ( import (
"fonchain-fiee/pkg/middleware"
"fonchain-fiee/pkg/service"
serviceCast "fonchain-fiee/pkg/service/cast" serviceCast "fonchain-fiee/pkg/service/cast"
"github.com/gin-gonic/gin" "github.com/gin-gonic/gin"
) )
@ -10,9 +8,14 @@ import (
func MediaRouter(r *gin.RouterGroup) { func MediaRouter(r *gin.RouterGroup) {
//noAuth := r.Group("") //noAuth := r.Group("")
auth := r.Group("") auth := r.Group("")
auth.Use(middleware.CheckLogin(service.AccountProvider)) //auth.Use(middleware.CheckLogin(service.AccountProvider))
media := auth.Group("media") media := auth.Group("media")
{ {
media.POST("update-account", serviceCast.UpdateMediaAccount) media.POST("update-account", serviceCast.UpdateMediaAccount)
} }
work := auth.Group("work")
{
work.POST("update-work", serviceCast.UpdateWork)
}
} }

View File

@ -8,10 +8,17 @@ import (
func UpdateMediaAccount(ctx *gin.Context) { func UpdateMediaAccount(ctx *gin.Context) {
var req *cast.UpdateMediaAccountReq var req *cast.UpdateMediaAccountReq
if err := ctx.ShouldBind(&req); err != nil { var err error
if err = ctx.ShouldBind(&req); err != nil {
service.Error(ctx, err) service.Error(ctx, err)
return return
} }
if err = req.Validate(); err != nil {
service.Error(ctx, err)
return
}
// 查询艺人的信息
service.AccountFieeProvider.Info
resp, err := service.CastProvider.UpdateMediaAccount(ctx, req) resp, err := service.CastProvider.UpdateMediaAccount(ctx, req)
if err != nil { if err != nil {
service.Error(ctx, err) service.Error(ctx, err)

View File

@ -8,6 +8,7 @@ import (
"fonchain-fiee/api/account" "fonchain-fiee/api/account"
"fonchain-fiee/api/accountFiee" "fonchain-fiee/api/accountFiee"
"fonchain-fiee/api/bundle" "fonchain-fiee/api/bundle"
"fonchain-fiee/api/cast"
"fonchain-fiee/api/order" "fonchain-fiee/api/order"
"fonchain-fiee/api/payment" "fonchain-fiee/api/payment"
pkConfig "fonchain-fiee/pkg/config" pkConfig "fonchain-fiee/pkg/config"
@ -20,6 +21,7 @@ var AccountFieeProvider = new(accountFiee.AccountFieeClientImpl)
var BundleProvider = new(bundle.BundleClientImpl) var BundleProvider = new(bundle.BundleClientImpl)
var OrderProvider = new(order.OrderClientImpl) var OrderProvider = new(order.OrderClientImpl)
var PaymentProvider = new(payment.PaymentCentClientImpl) var PaymentProvider = new(payment.PaymentCentClientImpl)
var CastProvider = new(cast.CastClientImpl)
func init() { func init() {
config.SetConsumerService(BundleProvider) config.SetConsumerService(BundleProvider)
@ -27,6 +29,7 @@ func init() {
config.SetConsumerService(AccountProvider) config.SetConsumerService(AccountProvider)
config.SetConsumerService(PaymentProvider) config.SetConsumerService(PaymentProvider)
config.SetConsumerService(AccountFieeProvider) config.SetConsumerService(AccountFieeProvider)
config.SetConsumerService(CastProvider)
if err := config.Load(); err != nil { if err := config.Load(); err != nil {
panic(err) panic(err)