feat: Add player_configs feature and migrate user preferences
- Implemented player_configs table to store multiple player configurations per user. - Migrated existing player settings from user_preferences to player_configs. - Removed player-related columns from user_preferences. - Added referral state fields to user for tracking referral rewards. - Created migration scripts for database changes and data migration. - Added test cases for app services and usage helpers. - Introduced video job service interfaces and implementations.
This commit is contained in:
@@ -9,6 +9,7 @@ package appv1
|
||||
import (
|
||||
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
||||
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
||||
wrapperspb "google.golang.org/protobuf/types/known/wrapperspb"
|
||||
reflect "reflect"
|
||||
sync "sync"
|
||||
unsafe "unsafe"
|
||||
@@ -107,6 +108,7 @@ type UpdateMeRequest struct {
|
||||
Email *string `protobuf:"bytes,2,opt,name=email,proto3,oneof" json:"email,omitempty"`
|
||||
Language *string `protobuf:"bytes,3,opt,name=language,proto3,oneof" json:"language,omitempty"`
|
||||
Locale *string `protobuf:"bytes,4,opt,name=locale,proto3,oneof" json:"locale,omitempty"`
|
||||
TelegramId *string `protobuf:"bytes,5,opt,name=telegram_id,json=telegramId,proto3,oneof" json:"telegram_id,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
@@ -169,6 +171,13 @@ func (x *UpdateMeRequest) GetLocale() string {
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *UpdateMeRequest) GetTelegramId() string {
|
||||
if x != nil && x.TelegramId != nil {
|
||||
return *x.TelegramId
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
type UpdateMeResponse struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
User *User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
|
||||
@@ -889,19 +898,22 @@ var File_app_v1_account_proto protoreflect.FileDescriptor
|
||||
|
||||
const file_app_v1_account_proto_rawDesc = "" +
|
||||
"\n" +
|
||||
"\x14app/v1/account.proto\x12\rstream.app.v1\x1a\x13app/v1/common.proto\"\x0e\n" +
|
||||
"\x14app/v1/account.proto\x12\rstream.app.v1\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x13app/v1/common.proto\"\x0e\n" +
|
||||
"\fGetMeRequest\"8\n" +
|
||||
"\rGetMeResponse\x12'\n" +
|
||||
"\x04user\x18\x01 \x01(\v2\x13.stream.app.v1.UserR\x04user\"\xba\x01\n" +
|
||||
"\x04user\x18\x01 \x01(\v2\x13.stream.app.v1.UserR\x04user\"\xf0\x01\n" +
|
||||
"\x0fUpdateMeRequest\x12\x1f\n" +
|
||||
"\busername\x18\x01 \x01(\tH\x00R\busername\x88\x01\x01\x12\x19\n" +
|
||||
"\x05email\x18\x02 \x01(\tH\x01R\x05email\x88\x01\x01\x12\x1f\n" +
|
||||
"\blanguage\x18\x03 \x01(\tH\x02R\blanguage\x88\x01\x01\x12\x1b\n" +
|
||||
"\x06locale\x18\x04 \x01(\tH\x03R\x06locale\x88\x01\x01B\v\n" +
|
||||
"\x06locale\x18\x04 \x01(\tH\x03R\x06locale\x88\x01\x01\x12$\n" +
|
||||
"\vtelegram_id\x18\x05 \x01(\tH\x04R\n" +
|
||||
"telegramId\x88\x01\x01B\v\n" +
|
||||
"\t_usernameB\b\n" +
|
||||
"\x06_emailB\v\n" +
|
||||
"\t_languageB\t\n" +
|
||||
"\a_locale\";\n" +
|
||||
"\a_localeB\x0e\n" +
|
||||
"\f_telegram_id\";\n" +
|
||||
"\x10UpdateMeResponse\x12'\n" +
|
||||
"\x04user\x18\x01 \x01(\v2\x13.stream.app.v1.UserR\x04user\"\x11\n" +
|
||||
"\x0fDeleteMeRequest\"\x14\n" +
|
||||
@@ -956,12 +968,13 @@ const file_app_v1_account_proto_rawDesc = "" +
|
||||
"\x1fMarkAllNotificationsReadRequest\"+\n" +
|
||||
"\x19DeleteNotificationRequest\x12\x0e\n" +
|
||||
"\x02id\x18\x01 \x01(\tR\x02id\"\x1b\n" +
|
||||
"\x19ClearNotificationsRequest2\xbf\x02\n" +
|
||||
"\x19ClearNotificationsRequest2\x83\x03\n" +
|
||||
"\x0eAccountService\x12B\n" +
|
||||
"\x05GetMe\x12\x1b.stream.app.v1.GetMeRequest\x1a\x1c.stream.app.v1.GetMeResponse\x12K\n" +
|
||||
"\bUpdateMe\x12\x1e.stream.app.v1.UpdateMeRequest\x1a\x1f.stream.app.v1.UpdateMeResponse\x12J\n" +
|
||||
"\bDeleteMe\x12\x1e.stream.app.v1.DeleteMeRequest\x1a\x1e.stream.app.v1.MessageResponse\x12P\n" +
|
||||
"\vClearMyData\x12!.stream.app.v1.ClearMyDataRequest\x1a\x1e.stream.app.v1.MessageResponse2\xdb\x01\n" +
|
||||
"\vClearMyData\x12!.stream.app.v1.ClearMyDataRequest\x1a\x1e.stream.app.v1.MessageResponse\x12B\n" +
|
||||
"\vGetUserById\x12\x1c.google.protobuf.StringValue\x1a\x13.stream.app.v1.User\"\x002\xdb\x01\n" +
|
||||
"\x12PreferencesService\x12]\n" +
|
||||
"\x0eGetPreferences\x12$.stream.app.v1.GetPreferencesRequest\x1a%.stream.app.v1.GetPreferencesResponse\x12f\n" +
|
||||
"\x11UpdatePreferences\x12'.stream.app.v1.UpdatePreferencesRequest\x1a(.stream.app.v1.UpdatePreferencesResponse2[\n" +
|
||||
@@ -1009,7 +1022,8 @@ var file_app_v1_account_proto_goTypes = []any{
|
||||
(*User)(nil), // 18: stream.app.v1.User
|
||||
(*Preferences)(nil), // 19: stream.app.v1.Preferences
|
||||
(*Notification)(nil), // 20: stream.app.v1.Notification
|
||||
(*MessageResponse)(nil), // 21: stream.app.v1.MessageResponse
|
||||
(*wrapperspb.StringValue)(nil), // 21: google.protobuf.StringValue
|
||||
(*MessageResponse)(nil), // 22: stream.app.v1.MessageResponse
|
||||
}
|
||||
var file_app_v1_account_proto_depIdxs = []int32{
|
||||
18, // 0: stream.app.v1.GetMeResponse.user:type_name -> stream.app.v1.User
|
||||
@@ -1021,28 +1035,30 @@ var file_app_v1_account_proto_depIdxs = []int32{
|
||||
2, // 6: stream.app.v1.AccountService.UpdateMe:input_type -> stream.app.v1.UpdateMeRequest
|
||||
4, // 7: stream.app.v1.AccountService.DeleteMe:input_type -> stream.app.v1.DeleteMeRequest
|
||||
5, // 8: stream.app.v1.AccountService.ClearMyData:input_type -> stream.app.v1.ClearMyDataRequest
|
||||
6, // 9: stream.app.v1.PreferencesService.GetPreferences:input_type -> stream.app.v1.GetPreferencesRequest
|
||||
8, // 10: stream.app.v1.PreferencesService.UpdatePreferences:input_type -> stream.app.v1.UpdatePreferencesRequest
|
||||
10, // 11: stream.app.v1.UsageService.GetUsage:input_type -> stream.app.v1.GetUsageRequest
|
||||
12, // 12: stream.app.v1.NotificationsService.ListNotifications:input_type -> stream.app.v1.ListNotificationsRequest
|
||||
14, // 13: stream.app.v1.NotificationsService.MarkNotificationRead:input_type -> stream.app.v1.MarkNotificationReadRequest
|
||||
15, // 14: stream.app.v1.NotificationsService.MarkAllNotificationsRead:input_type -> stream.app.v1.MarkAllNotificationsReadRequest
|
||||
16, // 15: stream.app.v1.NotificationsService.DeleteNotification:input_type -> stream.app.v1.DeleteNotificationRequest
|
||||
17, // 16: stream.app.v1.NotificationsService.ClearNotifications:input_type -> stream.app.v1.ClearNotificationsRequest
|
||||
1, // 17: stream.app.v1.AccountService.GetMe:output_type -> stream.app.v1.GetMeResponse
|
||||
3, // 18: stream.app.v1.AccountService.UpdateMe:output_type -> stream.app.v1.UpdateMeResponse
|
||||
21, // 19: stream.app.v1.AccountService.DeleteMe:output_type -> stream.app.v1.MessageResponse
|
||||
21, // 20: stream.app.v1.AccountService.ClearMyData:output_type -> stream.app.v1.MessageResponse
|
||||
7, // 21: stream.app.v1.PreferencesService.GetPreferences:output_type -> stream.app.v1.GetPreferencesResponse
|
||||
9, // 22: stream.app.v1.PreferencesService.UpdatePreferences:output_type -> stream.app.v1.UpdatePreferencesResponse
|
||||
11, // 23: stream.app.v1.UsageService.GetUsage:output_type -> stream.app.v1.GetUsageResponse
|
||||
13, // 24: stream.app.v1.NotificationsService.ListNotifications:output_type -> stream.app.v1.ListNotificationsResponse
|
||||
21, // 25: stream.app.v1.NotificationsService.MarkNotificationRead:output_type -> stream.app.v1.MessageResponse
|
||||
21, // 26: stream.app.v1.NotificationsService.MarkAllNotificationsRead:output_type -> stream.app.v1.MessageResponse
|
||||
21, // 27: stream.app.v1.NotificationsService.DeleteNotification:output_type -> stream.app.v1.MessageResponse
|
||||
21, // 28: stream.app.v1.NotificationsService.ClearNotifications:output_type -> stream.app.v1.MessageResponse
|
||||
17, // [17:29] is the sub-list for method output_type
|
||||
5, // [5:17] is the sub-list for method input_type
|
||||
21, // 9: stream.app.v1.AccountService.GetUserById:input_type -> google.protobuf.StringValue
|
||||
6, // 10: stream.app.v1.PreferencesService.GetPreferences:input_type -> stream.app.v1.GetPreferencesRequest
|
||||
8, // 11: stream.app.v1.PreferencesService.UpdatePreferences:input_type -> stream.app.v1.UpdatePreferencesRequest
|
||||
10, // 12: stream.app.v1.UsageService.GetUsage:input_type -> stream.app.v1.GetUsageRequest
|
||||
12, // 13: stream.app.v1.NotificationsService.ListNotifications:input_type -> stream.app.v1.ListNotificationsRequest
|
||||
14, // 14: stream.app.v1.NotificationsService.MarkNotificationRead:input_type -> stream.app.v1.MarkNotificationReadRequest
|
||||
15, // 15: stream.app.v1.NotificationsService.MarkAllNotificationsRead:input_type -> stream.app.v1.MarkAllNotificationsReadRequest
|
||||
16, // 16: stream.app.v1.NotificationsService.DeleteNotification:input_type -> stream.app.v1.DeleteNotificationRequest
|
||||
17, // 17: stream.app.v1.NotificationsService.ClearNotifications:input_type -> stream.app.v1.ClearNotificationsRequest
|
||||
1, // 18: stream.app.v1.AccountService.GetMe:output_type -> stream.app.v1.GetMeResponse
|
||||
3, // 19: stream.app.v1.AccountService.UpdateMe:output_type -> stream.app.v1.UpdateMeResponse
|
||||
22, // 20: stream.app.v1.AccountService.DeleteMe:output_type -> stream.app.v1.MessageResponse
|
||||
22, // 21: stream.app.v1.AccountService.ClearMyData:output_type -> stream.app.v1.MessageResponse
|
||||
18, // 22: stream.app.v1.AccountService.GetUserById:output_type -> stream.app.v1.User
|
||||
7, // 23: stream.app.v1.PreferencesService.GetPreferences:output_type -> stream.app.v1.GetPreferencesResponse
|
||||
9, // 24: stream.app.v1.PreferencesService.UpdatePreferences:output_type -> stream.app.v1.UpdatePreferencesResponse
|
||||
11, // 25: stream.app.v1.UsageService.GetUsage:output_type -> stream.app.v1.GetUsageResponse
|
||||
13, // 26: stream.app.v1.NotificationsService.ListNotifications:output_type -> stream.app.v1.ListNotificationsResponse
|
||||
22, // 27: stream.app.v1.NotificationsService.MarkNotificationRead:output_type -> stream.app.v1.MessageResponse
|
||||
22, // 28: stream.app.v1.NotificationsService.MarkAllNotificationsRead:output_type -> stream.app.v1.MessageResponse
|
||||
22, // 29: stream.app.v1.NotificationsService.DeleteNotification:output_type -> stream.app.v1.MessageResponse
|
||||
22, // 30: stream.app.v1.NotificationsService.ClearNotifications:output_type -> stream.app.v1.MessageResponse
|
||||
18, // [18:31] is the sub-list for method output_type
|
||||
5, // [5:18] is the sub-list for method input_type
|
||||
5, // [5:5] is the sub-list for extension type_name
|
||||
5, // [5:5] is the sub-list for extension extendee
|
||||
0, // [0:5] is the sub-list for field type_name
|
||||
|
||||
@@ -11,6 +11,7 @@ import (
|
||||
grpc "google.golang.org/grpc"
|
||||
codes "google.golang.org/grpc/codes"
|
||||
status "google.golang.org/grpc/status"
|
||||
wrapperspb "google.golang.org/protobuf/types/known/wrapperspb"
|
||||
)
|
||||
|
||||
// This is a compile-time assertion to ensure that this generated file
|
||||
@@ -23,6 +24,7 @@ const (
|
||||
AccountService_UpdateMe_FullMethodName = "/stream.app.v1.AccountService/UpdateMe"
|
||||
AccountService_DeleteMe_FullMethodName = "/stream.app.v1.AccountService/DeleteMe"
|
||||
AccountService_ClearMyData_FullMethodName = "/stream.app.v1.AccountService/ClearMyData"
|
||||
AccountService_GetUserById_FullMethodName = "/stream.app.v1.AccountService/GetUserById"
|
||||
)
|
||||
|
||||
// AccountServiceClient is the client API for AccountService service.
|
||||
@@ -33,6 +35,7 @@ type AccountServiceClient interface {
|
||||
UpdateMe(ctx context.Context, in *UpdateMeRequest, opts ...grpc.CallOption) (*UpdateMeResponse, error)
|
||||
DeleteMe(ctx context.Context, in *DeleteMeRequest, opts ...grpc.CallOption) (*MessageResponse, error)
|
||||
ClearMyData(ctx context.Context, in *ClearMyDataRequest, opts ...grpc.CallOption) (*MessageResponse, error)
|
||||
GetUserById(ctx context.Context, in *wrapperspb.StringValue, opts ...grpc.CallOption) (*User, error)
|
||||
}
|
||||
|
||||
type accountServiceClient struct {
|
||||
@@ -83,6 +86,16 @@ func (c *accountServiceClient) ClearMyData(ctx context.Context, in *ClearMyDataR
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *accountServiceClient) GetUserById(ctx context.Context, in *wrapperspb.StringValue, opts ...grpc.CallOption) (*User, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(User)
|
||||
err := c.cc.Invoke(ctx, AccountService_GetUserById_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
// AccountServiceServer is the server API for AccountService service.
|
||||
// All implementations must embed UnimplementedAccountServiceServer
|
||||
// for forward compatibility.
|
||||
@@ -91,6 +104,7 @@ type AccountServiceServer interface {
|
||||
UpdateMe(context.Context, *UpdateMeRequest) (*UpdateMeResponse, error)
|
||||
DeleteMe(context.Context, *DeleteMeRequest) (*MessageResponse, error)
|
||||
ClearMyData(context.Context, *ClearMyDataRequest) (*MessageResponse, error)
|
||||
GetUserById(context.Context, *wrapperspb.StringValue) (*User, error)
|
||||
mustEmbedUnimplementedAccountServiceServer()
|
||||
}
|
||||
|
||||
@@ -113,6 +127,9 @@ func (UnimplementedAccountServiceServer) DeleteMe(context.Context, *DeleteMeRequ
|
||||
func (UnimplementedAccountServiceServer) ClearMyData(context.Context, *ClearMyDataRequest) (*MessageResponse, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method ClearMyData not implemented")
|
||||
}
|
||||
func (UnimplementedAccountServiceServer) GetUserById(context.Context, *wrapperspb.StringValue) (*User, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method GetUserById not implemented")
|
||||
}
|
||||
func (UnimplementedAccountServiceServer) mustEmbedUnimplementedAccountServiceServer() {}
|
||||
func (UnimplementedAccountServiceServer) testEmbeddedByValue() {}
|
||||
|
||||
@@ -206,6 +223,24 @@ func _AccountService_ClearMyData_Handler(srv interface{}, ctx context.Context, d
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _AccountService_GetUserById_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(wrapperspb.StringValue)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(AccountServiceServer).GetUserById(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: AccountService_GetUserById_FullMethodName,
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(AccountServiceServer).GetUserById(ctx, req.(*wrapperspb.StringValue))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
// AccountService_ServiceDesc is the grpc.ServiceDesc for AccountService service.
|
||||
// It's only intended for direct use with grpc.RegisterService,
|
||||
// and not to be introspected or modified (even as a copy)
|
||||
@@ -229,6 +264,10 @@ var AccountService_ServiceDesc = grpc.ServiceDesc{
|
||||
MethodName: "ClearMyData",
|
||||
Handler: _AccountService_ClearMyData_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "GetUserById",
|
||||
Handler: _AccountService_GetUserById_Handler,
|
||||
},
|
||||
},
|
||||
Streams: []grpc.StreamDesc{},
|
||||
Metadata: "app/v1/account.proto",
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -19,40 +19,46 @@ import (
|
||||
const _ = grpc.SupportPackageIsVersion9
|
||||
|
||||
const (
|
||||
AdminService_GetAdminDashboard_FullMethodName = "/stream.app.v1.AdminService/GetAdminDashboard"
|
||||
AdminService_ListAdminUsers_FullMethodName = "/stream.app.v1.AdminService/ListAdminUsers"
|
||||
AdminService_GetAdminUser_FullMethodName = "/stream.app.v1.AdminService/GetAdminUser"
|
||||
AdminService_CreateAdminUser_FullMethodName = "/stream.app.v1.AdminService/CreateAdminUser"
|
||||
AdminService_UpdateAdminUser_FullMethodName = "/stream.app.v1.AdminService/UpdateAdminUser"
|
||||
AdminService_UpdateAdminUserRole_FullMethodName = "/stream.app.v1.AdminService/UpdateAdminUserRole"
|
||||
AdminService_DeleteAdminUser_FullMethodName = "/stream.app.v1.AdminService/DeleteAdminUser"
|
||||
AdminService_ListAdminVideos_FullMethodName = "/stream.app.v1.AdminService/ListAdminVideos"
|
||||
AdminService_GetAdminVideo_FullMethodName = "/stream.app.v1.AdminService/GetAdminVideo"
|
||||
AdminService_CreateAdminVideo_FullMethodName = "/stream.app.v1.AdminService/CreateAdminVideo"
|
||||
AdminService_UpdateAdminVideo_FullMethodName = "/stream.app.v1.AdminService/UpdateAdminVideo"
|
||||
AdminService_DeleteAdminVideo_FullMethodName = "/stream.app.v1.AdminService/DeleteAdminVideo"
|
||||
AdminService_ListAdminPayments_FullMethodName = "/stream.app.v1.AdminService/ListAdminPayments"
|
||||
AdminService_GetAdminPayment_FullMethodName = "/stream.app.v1.AdminService/GetAdminPayment"
|
||||
AdminService_CreateAdminPayment_FullMethodName = "/stream.app.v1.AdminService/CreateAdminPayment"
|
||||
AdminService_UpdateAdminPayment_FullMethodName = "/stream.app.v1.AdminService/UpdateAdminPayment"
|
||||
AdminService_ListAdminPlans_FullMethodName = "/stream.app.v1.AdminService/ListAdminPlans"
|
||||
AdminService_CreateAdminPlan_FullMethodName = "/stream.app.v1.AdminService/CreateAdminPlan"
|
||||
AdminService_UpdateAdminPlan_FullMethodName = "/stream.app.v1.AdminService/UpdateAdminPlan"
|
||||
AdminService_DeleteAdminPlan_FullMethodName = "/stream.app.v1.AdminService/DeleteAdminPlan"
|
||||
AdminService_ListAdminAdTemplates_FullMethodName = "/stream.app.v1.AdminService/ListAdminAdTemplates"
|
||||
AdminService_GetAdminAdTemplate_FullMethodName = "/stream.app.v1.AdminService/GetAdminAdTemplate"
|
||||
AdminService_CreateAdminAdTemplate_FullMethodName = "/stream.app.v1.AdminService/CreateAdminAdTemplate"
|
||||
AdminService_UpdateAdminAdTemplate_FullMethodName = "/stream.app.v1.AdminService/UpdateAdminAdTemplate"
|
||||
AdminService_DeleteAdminAdTemplate_FullMethodName = "/stream.app.v1.AdminService/DeleteAdminAdTemplate"
|
||||
AdminService_ListAdminJobs_FullMethodName = "/stream.app.v1.AdminService/ListAdminJobs"
|
||||
AdminService_GetAdminJob_FullMethodName = "/stream.app.v1.AdminService/GetAdminJob"
|
||||
AdminService_GetAdminJobLogs_FullMethodName = "/stream.app.v1.AdminService/GetAdminJobLogs"
|
||||
AdminService_CreateAdminJob_FullMethodName = "/stream.app.v1.AdminService/CreateAdminJob"
|
||||
AdminService_CancelAdminJob_FullMethodName = "/stream.app.v1.AdminService/CancelAdminJob"
|
||||
AdminService_RetryAdminJob_FullMethodName = "/stream.app.v1.AdminService/RetryAdminJob"
|
||||
AdminService_ListAdminAgents_FullMethodName = "/stream.app.v1.AdminService/ListAdminAgents"
|
||||
AdminService_RestartAdminAgent_FullMethodName = "/stream.app.v1.AdminService/RestartAdminAgent"
|
||||
AdminService_UpdateAdminAgent_FullMethodName = "/stream.app.v1.AdminService/UpdateAdminAgent"
|
||||
AdminService_GetAdminDashboard_FullMethodName = "/stream.app.v1.AdminService/GetAdminDashboard"
|
||||
AdminService_ListAdminUsers_FullMethodName = "/stream.app.v1.AdminService/ListAdminUsers"
|
||||
AdminService_GetAdminUser_FullMethodName = "/stream.app.v1.AdminService/GetAdminUser"
|
||||
AdminService_CreateAdminUser_FullMethodName = "/stream.app.v1.AdminService/CreateAdminUser"
|
||||
AdminService_UpdateAdminUser_FullMethodName = "/stream.app.v1.AdminService/UpdateAdminUser"
|
||||
AdminService_UpdateAdminUserReferralSettings_FullMethodName = "/stream.app.v1.AdminService/UpdateAdminUserReferralSettings"
|
||||
AdminService_UpdateAdminUserRole_FullMethodName = "/stream.app.v1.AdminService/UpdateAdminUserRole"
|
||||
AdminService_DeleteAdminUser_FullMethodName = "/stream.app.v1.AdminService/DeleteAdminUser"
|
||||
AdminService_ListAdminVideos_FullMethodName = "/stream.app.v1.AdminService/ListAdminVideos"
|
||||
AdminService_GetAdminVideo_FullMethodName = "/stream.app.v1.AdminService/GetAdminVideo"
|
||||
AdminService_CreateAdminVideo_FullMethodName = "/stream.app.v1.AdminService/CreateAdminVideo"
|
||||
AdminService_UpdateAdminVideo_FullMethodName = "/stream.app.v1.AdminService/UpdateAdminVideo"
|
||||
AdminService_DeleteAdminVideo_FullMethodName = "/stream.app.v1.AdminService/DeleteAdminVideo"
|
||||
AdminService_ListAdminPayments_FullMethodName = "/stream.app.v1.AdminService/ListAdminPayments"
|
||||
AdminService_GetAdminPayment_FullMethodName = "/stream.app.v1.AdminService/GetAdminPayment"
|
||||
AdminService_CreateAdminPayment_FullMethodName = "/stream.app.v1.AdminService/CreateAdminPayment"
|
||||
AdminService_UpdateAdminPayment_FullMethodName = "/stream.app.v1.AdminService/UpdateAdminPayment"
|
||||
AdminService_ListAdminPlans_FullMethodName = "/stream.app.v1.AdminService/ListAdminPlans"
|
||||
AdminService_CreateAdminPlan_FullMethodName = "/stream.app.v1.AdminService/CreateAdminPlan"
|
||||
AdminService_UpdateAdminPlan_FullMethodName = "/stream.app.v1.AdminService/UpdateAdminPlan"
|
||||
AdminService_DeleteAdminPlan_FullMethodName = "/stream.app.v1.AdminService/DeleteAdminPlan"
|
||||
AdminService_ListAdminAdTemplates_FullMethodName = "/stream.app.v1.AdminService/ListAdminAdTemplates"
|
||||
AdminService_GetAdminAdTemplate_FullMethodName = "/stream.app.v1.AdminService/GetAdminAdTemplate"
|
||||
AdminService_CreateAdminAdTemplate_FullMethodName = "/stream.app.v1.AdminService/CreateAdminAdTemplate"
|
||||
AdminService_UpdateAdminAdTemplate_FullMethodName = "/stream.app.v1.AdminService/UpdateAdminAdTemplate"
|
||||
AdminService_DeleteAdminAdTemplate_FullMethodName = "/stream.app.v1.AdminService/DeleteAdminAdTemplate"
|
||||
AdminService_ListAdminPlayerConfigs_FullMethodName = "/stream.app.v1.AdminService/ListAdminPlayerConfigs"
|
||||
AdminService_GetAdminPlayerConfig_FullMethodName = "/stream.app.v1.AdminService/GetAdminPlayerConfig"
|
||||
AdminService_CreateAdminPlayerConfig_FullMethodName = "/stream.app.v1.AdminService/CreateAdminPlayerConfig"
|
||||
AdminService_UpdateAdminPlayerConfig_FullMethodName = "/stream.app.v1.AdminService/UpdateAdminPlayerConfig"
|
||||
AdminService_DeleteAdminPlayerConfig_FullMethodName = "/stream.app.v1.AdminService/DeleteAdminPlayerConfig"
|
||||
AdminService_ListAdminJobs_FullMethodName = "/stream.app.v1.AdminService/ListAdminJobs"
|
||||
AdminService_GetAdminJob_FullMethodName = "/stream.app.v1.AdminService/GetAdminJob"
|
||||
AdminService_GetAdminJobLogs_FullMethodName = "/stream.app.v1.AdminService/GetAdminJobLogs"
|
||||
AdminService_CreateAdminJob_FullMethodName = "/stream.app.v1.AdminService/CreateAdminJob"
|
||||
AdminService_CancelAdminJob_FullMethodName = "/stream.app.v1.AdminService/CancelAdminJob"
|
||||
AdminService_RetryAdminJob_FullMethodName = "/stream.app.v1.AdminService/RetryAdminJob"
|
||||
AdminService_ListAdminAgents_FullMethodName = "/stream.app.v1.AdminService/ListAdminAgents"
|
||||
AdminService_RestartAdminAgent_FullMethodName = "/stream.app.v1.AdminService/RestartAdminAgent"
|
||||
AdminService_UpdateAdminAgent_FullMethodName = "/stream.app.v1.AdminService/UpdateAdminAgent"
|
||||
)
|
||||
|
||||
// AdminServiceClient is the client API for AdminService service.
|
||||
@@ -64,6 +70,7 @@ type AdminServiceClient interface {
|
||||
GetAdminUser(ctx context.Context, in *GetAdminUserRequest, opts ...grpc.CallOption) (*GetAdminUserResponse, error)
|
||||
CreateAdminUser(ctx context.Context, in *CreateAdminUserRequest, opts ...grpc.CallOption) (*CreateAdminUserResponse, error)
|
||||
UpdateAdminUser(ctx context.Context, in *UpdateAdminUserRequest, opts ...grpc.CallOption) (*UpdateAdminUserResponse, error)
|
||||
UpdateAdminUserReferralSettings(ctx context.Context, in *UpdateAdminUserReferralSettingsRequest, opts ...grpc.CallOption) (*UpdateAdminUserReferralSettingsResponse, error)
|
||||
UpdateAdminUserRole(ctx context.Context, in *UpdateAdminUserRoleRequest, opts ...grpc.CallOption) (*UpdateAdminUserRoleResponse, error)
|
||||
DeleteAdminUser(ctx context.Context, in *DeleteAdminUserRequest, opts ...grpc.CallOption) (*MessageResponse, error)
|
||||
ListAdminVideos(ctx context.Context, in *ListAdminVideosRequest, opts ...grpc.CallOption) (*ListAdminVideosResponse, error)
|
||||
@@ -84,6 +91,11 @@ type AdminServiceClient interface {
|
||||
CreateAdminAdTemplate(ctx context.Context, in *CreateAdminAdTemplateRequest, opts ...grpc.CallOption) (*CreateAdminAdTemplateResponse, error)
|
||||
UpdateAdminAdTemplate(ctx context.Context, in *UpdateAdminAdTemplateRequest, opts ...grpc.CallOption) (*UpdateAdminAdTemplateResponse, error)
|
||||
DeleteAdminAdTemplate(ctx context.Context, in *DeleteAdminAdTemplateRequest, opts ...grpc.CallOption) (*MessageResponse, error)
|
||||
ListAdminPlayerConfigs(ctx context.Context, in *ListAdminPlayerConfigsRequest, opts ...grpc.CallOption) (*ListAdminPlayerConfigsResponse, error)
|
||||
GetAdminPlayerConfig(ctx context.Context, in *GetAdminPlayerConfigRequest, opts ...grpc.CallOption) (*GetAdminPlayerConfigResponse, error)
|
||||
CreateAdminPlayerConfig(ctx context.Context, in *CreateAdminPlayerConfigRequest, opts ...grpc.CallOption) (*CreateAdminPlayerConfigResponse, error)
|
||||
UpdateAdminPlayerConfig(ctx context.Context, in *UpdateAdminPlayerConfigRequest, opts ...grpc.CallOption) (*UpdateAdminPlayerConfigResponse, error)
|
||||
DeleteAdminPlayerConfig(ctx context.Context, in *DeleteAdminPlayerConfigRequest, opts ...grpc.CallOption) (*MessageResponse, error)
|
||||
ListAdminJobs(ctx context.Context, in *ListAdminJobsRequest, opts ...grpc.CallOption) (*ListAdminJobsResponse, error)
|
||||
GetAdminJob(ctx context.Context, in *GetAdminJobRequest, opts ...grpc.CallOption) (*GetAdminJobResponse, error)
|
||||
GetAdminJobLogs(ctx context.Context, in *GetAdminJobLogsRequest, opts ...grpc.CallOption) (*GetAdminJobLogsResponse, error)
|
||||
@@ -153,6 +165,16 @@ func (c *adminServiceClient) UpdateAdminUser(ctx context.Context, in *UpdateAdmi
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *adminServiceClient) UpdateAdminUserReferralSettings(ctx context.Context, in *UpdateAdminUserReferralSettingsRequest, opts ...grpc.CallOption) (*UpdateAdminUserReferralSettingsResponse, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(UpdateAdminUserReferralSettingsResponse)
|
||||
err := c.cc.Invoke(ctx, AdminService_UpdateAdminUserReferralSettings_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *adminServiceClient) UpdateAdminUserRole(ctx context.Context, in *UpdateAdminUserRoleRequest, opts ...grpc.CallOption) (*UpdateAdminUserRoleResponse, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(UpdateAdminUserRoleResponse)
|
||||
@@ -353,6 +375,56 @@ func (c *adminServiceClient) DeleteAdminAdTemplate(ctx context.Context, in *Dele
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *adminServiceClient) ListAdminPlayerConfigs(ctx context.Context, in *ListAdminPlayerConfigsRequest, opts ...grpc.CallOption) (*ListAdminPlayerConfigsResponse, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(ListAdminPlayerConfigsResponse)
|
||||
err := c.cc.Invoke(ctx, AdminService_ListAdminPlayerConfigs_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *adminServiceClient) GetAdminPlayerConfig(ctx context.Context, in *GetAdminPlayerConfigRequest, opts ...grpc.CallOption) (*GetAdminPlayerConfigResponse, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(GetAdminPlayerConfigResponse)
|
||||
err := c.cc.Invoke(ctx, AdminService_GetAdminPlayerConfig_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *adminServiceClient) CreateAdminPlayerConfig(ctx context.Context, in *CreateAdminPlayerConfigRequest, opts ...grpc.CallOption) (*CreateAdminPlayerConfigResponse, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(CreateAdminPlayerConfigResponse)
|
||||
err := c.cc.Invoke(ctx, AdminService_CreateAdminPlayerConfig_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *adminServiceClient) UpdateAdminPlayerConfig(ctx context.Context, in *UpdateAdminPlayerConfigRequest, opts ...grpc.CallOption) (*UpdateAdminPlayerConfigResponse, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(UpdateAdminPlayerConfigResponse)
|
||||
err := c.cc.Invoke(ctx, AdminService_UpdateAdminPlayerConfig_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *adminServiceClient) DeleteAdminPlayerConfig(ctx context.Context, in *DeleteAdminPlayerConfigRequest, opts ...grpc.CallOption) (*MessageResponse, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(MessageResponse)
|
||||
err := c.cc.Invoke(ctx, AdminService_DeleteAdminPlayerConfig_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *adminServiceClient) ListAdminJobs(ctx context.Context, in *ListAdminJobsRequest, opts ...grpc.CallOption) (*ListAdminJobsResponse, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(ListAdminJobsResponse)
|
||||
@@ -452,6 +524,7 @@ type AdminServiceServer interface {
|
||||
GetAdminUser(context.Context, *GetAdminUserRequest) (*GetAdminUserResponse, error)
|
||||
CreateAdminUser(context.Context, *CreateAdminUserRequest) (*CreateAdminUserResponse, error)
|
||||
UpdateAdminUser(context.Context, *UpdateAdminUserRequest) (*UpdateAdminUserResponse, error)
|
||||
UpdateAdminUserReferralSettings(context.Context, *UpdateAdminUserReferralSettingsRequest) (*UpdateAdminUserReferralSettingsResponse, error)
|
||||
UpdateAdminUserRole(context.Context, *UpdateAdminUserRoleRequest) (*UpdateAdminUserRoleResponse, error)
|
||||
DeleteAdminUser(context.Context, *DeleteAdminUserRequest) (*MessageResponse, error)
|
||||
ListAdminVideos(context.Context, *ListAdminVideosRequest) (*ListAdminVideosResponse, error)
|
||||
@@ -472,6 +545,11 @@ type AdminServiceServer interface {
|
||||
CreateAdminAdTemplate(context.Context, *CreateAdminAdTemplateRequest) (*CreateAdminAdTemplateResponse, error)
|
||||
UpdateAdminAdTemplate(context.Context, *UpdateAdminAdTemplateRequest) (*UpdateAdminAdTemplateResponse, error)
|
||||
DeleteAdminAdTemplate(context.Context, *DeleteAdminAdTemplateRequest) (*MessageResponse, error)
|
||||
ListAdminPlayerConfigs(context.Context, *ListAdminPlayerConfigsRequest) (*ListAdminPlayerConfigsResponse, error)
|
||||
GetAdminPlayerConfig(context.Context, *GetAdminPlayerConfigRequest) (*GetAdminPlayerConfigResponse, error)
|
||||
CreateAdminPlayerConfig(context.Context, *CreateAdminPlayerConfigRequest) (*CreateAdminPlayerConfigResponse, error)
|
||||
UpdateAdminPlayerConfig(context.Context, *UpdateAdminPlayerConfigRequest) (*UpdateAdminPlayerConfigResponse, error)
|
||||
DeleteAdminPlayerConfig(context.Context, *DeleteAdminPlayerConfigRequest) (*MessageResponse, error)
|
||||
ListAdminJobs(context.Context, *ListAdminJobsRequest) (*ListAdminJobsResponse, error)
|
||||
GetAdminJob(context.Context, *GetAdminJobRequest) (*GetAdminJobResponse, error)
|
||||
GetAdminJobLogs(context.Context, *GetAdminJobLogsRequest) (*GetAdminJobLogsResponse, error)
|
||||
@@ -506,6 +584,9 @@ func (UnimplementedAdminServiceServer) CreateAdminUser(context.Context, *CreateA
|
||||
func (UnimplementedAdminServiceServer) UpdateAdminUser(context.Context, *UpdateAdminUserRequest) (*UpdateAdminUserResponse, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method UpdateAdminUser not implemented")
|
||||
}
|
||||
func (UnimplementedAdminServiceServer) UpdateAdminUserReferralSettings(context.Context, *UpdateAdminUserReferralSettingsRequest) (*UpdateAdminUserReferralSettingsResponse, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method UpdateAdminUserReferralSettings not implemented")
|
||||
}
|
||||
func (UnimplementedAdminServiceServer) UpdateAdminUserRole(context.Context, *UpdateAdminUserRoleRequest) (*UpdateAdminUserRoleResponse, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method UpdateAdminUserRole not implemented")
|
||||
}
|
||||
@@ -566,6 +647,21 @@ func (UnimplementedAdminServiceServer) UpdateAdminAdTemplate(context.Context, *U
|
||||
func (UnimplementedAdminServiceServer) DeleteAdminAdTemplate(context.Context, *DeleteAdminAdTemplateRequest) (*MessageResponse, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method DeleteAdminAdTemplate not implemented")
|
||||
}
|
||||
func (UnimplementedAdminServiceServer) ListAdminPlayerConfigs(context.Context, *ListAdminPlayerConfigsRequest) (*ListAdminPlayerConfigsResponse, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method ListAdminPlayerConfigs not implemented")
|
||||
}
|
||||
func (UnimplementedAdminServiceServer) GetAdminPlayerConfig(context.Context, *GetAdminPlayerConfigRequest) (*GetAdminPlayerConfigResponse, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method GetAdminPlayerConfig not implemented")
|
||||
}
|
||||
func (UnimplementedAdminServiceServer) CreateAdminPlayerConfig(context.Context, *CreateAdminPlayerConfigRequest) (*CreateAdminPlayerConfigResponse, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method CreateAdminPlayerConfig not implemented")
|
||||
}
|
||||
func (UnimplementedAdminServiceServer) UpdateAdminPlayerConfig(context.Context, *UpdateAdminPlayerConfigRequest) (*UpdateAdminPlayerConfigResponse, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method UpdateAdminPlayerConfig not implemented")
|
||||
}
|
||||
func (UnimplementedAdminServiceServer) DeleteAdminPlayerConfig(context.Context, *DeleteAdminPlayerConfigRequest) (*MessageResponse, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method DeleteAdminPlayerConfig not implemented")
|
||||
}
|
||||
func (UnimplementedAdminServiceServer) ListAdminJobs(context.Context, *ListAdminJobsRequest) (*ListAdminJobsResponse, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method ListAdminJobs not implemented")
|
||||
}
|
||||
@@ -704,6 +800,24 @@ func _AdminService_UpdateAdminUser_Handler(srv interface{}, ctx context.Context,
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _AdminService_UpdateAdminUserReferralSettings_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(UpdateAdminUserReferralSettingsRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(AdminServiceServer).UpdateAdminUserReferralSettings(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: AdminService_UpdateAdminUserReferralSettings_FullMethodName,
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(AdminServiceServer).UpdateAdminUserReferralSettings(ctx, req.(*UpdateAdminUserReferralSettingsRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _AdminService_UpdateAdminUserRole_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(UpdateAdminUserRoleRequest)
|
||||
if err := dec(in); err != nil {
|
||||
@@ -1064,6 +1178,96 @@ func _AdminService_DeleteAdminAdTemplate_Handler(srv interface{}, ctx context.Co
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _AdminService_ListAdminPlayerConfigs_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(ListAdminPlayerConfigsRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(AdminServiceServer).ListAdminPlayerConfigs(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: AdminService_ListAdminPlayerConfigs_FullMethodName,
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(AdminServiceServer).ListAdminPlayerConfigs(ctx, req.(*ListAdminPlayerConfigsRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _AdminService_GetAdminPlayerConfig_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(GetAdminPlayerConfigRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(AdminServiceServer).GetAdminPlayerConfig(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: AdminService_GetAdminPlayerConfig_FullMethodName,
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(AdminServiceServer).GetAdminPlayerConfig(ctx, req.(*GetAdminPlayerConfigRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _AdminService_CreateAdminPlayerConfig_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(CreateAdminPlayerConfigRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(AdminServiceServer).CreateAdminPlayerConfig(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: AdminService_CreateAdminPlayerConfig_FullMethodName,
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(AdminServiceServer).CreateAdminPlayerConfig(ctx, req.(*CreateAdminPlayerConfigRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _AdminService_UpdateAdminPlayerConfig_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(UpdateAdminPlayerConfigRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(AdminServiceServer).UpdateAdminPlayerConfig(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: AdminService_UpdateAdminPlayerConfig_FullMethodName,
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(AdminServiceServer).UpdateAdminPlayerConfig(ctx, req.(*UpdateAdminPlayerConfigRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _AdminService_DeleteAdminPlayerConfig_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(DeleteAdminPlayerConfigRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(AdminServiceServer).DeleteAdminPlayerConfig(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: AdminService_DeleteAdminPlayerConfig_FullMethodName,
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(AdminServiceServer).DeleteAdminPlayerConfig(ctx, req.(*DeleteAdminPlayerConfigRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _AdminService_ListAdminJobs_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(ListAdminJobsRequest)
|
||||
if err := dec(in); err != nil {
|
||||
@@ -1253,6 +1457,10 @@ var AdminService_ServiceDesc = grpc.ServiceDesc{
|
||||
MethodName: "UpdateAdminUser",
|
||||
Handler: _AdminService_UpdateAdminUser_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "UpdateAdminUserReferralSettings",
|
||||
Handler: _AdminService_UpdateAdminUserReferralSettings_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "UpdateAdminUserRole",
|
||||
Handler: _AdminService_UpdateAdminUserRole_Handler,
|
||||
@@ -1333,6 +1541,26 @@ var AdminService_ServiceDesc = grpc.ServiceDesc{
|
||||
MethodName: "DeleteAdminAdTemplate",
|
||||
Handler: _AdminService_DeleteAdminAdTemplate_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "ListAdminPlayerConfigs",
|
||||
Handler: _AdminService_ListAdminPlayerConfigs_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "GetAdminPlayerConfig",
|
||||
Handler: _AdminService_GetAdminPlayerConfig_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "CreateAdminPlayerConfig",
|
||||
Handler: _AdminService_CreateAdminPlayerConfig_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "UpdateAdminPlayerConfig",
|
||||
Handler: _AdminService_UpdateAdminPlayerConfig_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "DeleteAdminPlayerConfig",
|
||||
Handler: _AdminService_DeleteAdminPlayerConfig_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "ListAdminJobs",
|
||||
Handler: _AdminService_ListAdminJobs_Handler,
|
||||
|
||||
@@ -122,6 +122,7 @@ type RegisterRequest struct {
|
||||
Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"`
|
||||
Email string `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"`
|
||||
Password string `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"`
|
||||
RefUsername *string `protobuf:"bytes,4,opt,name=ref_username,json=refUsername,proto3,oneof" json:"ref_username,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
@@ -177,6 +178,13 @@ func (x *RegisterRequest) GetPassword() string {
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *RegisterRequest) GetRefUsername() string {
|
||||
if x != nil && x.RefUsername != nil {
|
||||
return *x.RefUsername
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
type RegisterResponse struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
User *User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
|
||||
@@ -488,6 +496,7 @@ func (x *GetGoogleLoginUrlResponse) GetUrl() string {
|
||||
type CompleteGoogleLoginRequest struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"`
|
||||
RefUsername *string `protobuf:"bytes,2,opt,name=ref_username,json=refUsername,proto3,oneof" json:"ref_username,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
@@ -529,6 +538,13 @@ func (x *CompleteGoogleLoginRequest) GetCode() string {
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *CompleteGoogleLoginRequest) GetRefUsername() string {
|
||||
if x != nil && x.RefUsername != nil {
|
||||
return *x.RefUsername
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
type CompleteGoogleLoginResponse struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
User *User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
|
||||
@@ -582,11 +598,13 @@ const file_app_v1_auth_proto_rawDesc = "" +
|
||||
"\x05email\x18\x01 \x01(\tR\x05email\x12\x1a\n" +
|
||||
"\bpassword\x18\x02 \x01(\tR\bpassword\"8\n" +
|
||||
"\rLoginResponse\x12'\n" +
|
||||
"\x04user\x18\x01 \x01(\v2\x13.stream.app.v1.UserR\x04user\"_\n" +
|
||||
"\x04user\x18\x01 \x01(\v2\x13.stream.app.v1.UserR\x04user\"\x98\x01\n" +
|
||||
"\x0fRegisterRequest\x12\x1a\n" +
|
||||
"\busername\x18\x01 \x01(\tR\busername\x12\x14\n" +
|
||||
"\x05email\x18\x02 \x01(\tR\x05email\x12\x1a\n" +
|
||||
"\bpassword\x18\x03 \x01(\tR\bpassword\";\n" +
|
||||
"\bpassword\x18\x03 \x01(\tR\bpassword\x12&\n" +
|
||||
"\fref_username\x18\x04 \x01(\tH\x00R\vrefUsername\x88\x01\x01B\x0f\n" +
|
||||
"\r_ref_username\";\n" +
|
||||
"\x10RegisterResponse\x12'\n" +
|
||||
"\x04user\x18\x01 \x01(\v2\x13.stream.app.v1.UserR\x04user\"\x0f\n" +
|
||||
"\rLogoutRequest\"e\n" +
|
||||
@@ -600,9 +618,11 @@ const file_app_v1_auth_proto_rawDesc = "" +
|
||||
"\fnew_password\x18\x02 \x01(\tR\vnewPassword\"\x1a\n" +
|
||||
"\x18GetGoogleLoginUrlRequest\"-\n" +
|
||||
"\x19GetGoogleLoginUrlResponse\x12\x10\n" +
|
||||
"\x03url\x18\x01 \x01(\tR\x03url\"0\n" +
|
||||
"\x03url\x18\x01 \x01(\tR\x03url\"i\n" +
|
||||
"\x1aCompleteGoogleLoginRequest\x12\x12\n" +
|
||||
"\x04code\x18\x01 \x01(\tR\x04code\"F\n" +
|
||||
"\x04code\x18\x01 \x01(\tR\x04code\x12&\n" +
|
||||
"\fref_username\x18\x02 \x01(\tH\x00R\vrefUsername\x88\x01\x01B\x0f\n" +
|
||||
"\r_ref_username\"F\n" +
|
||||
"\x1bCompleteGoogleLoginResponse\x12'\n" +
|
||||
"\x04user\x18\x01 \x01(\v2\x13.stream.app.v1.UserR\x04user2\xc2\x05\n" +
|
||||
"\vAuthService\x12B\n" +
|
||||
@@ -677,6 +697,8 @@ func file_app_v1_auth_proto_init() {
|
||||
return
|
||||
}
|
||||
file_app_v1_common_proto_init()
|
||||
file_app_v1_auth_proto_msgTypes[2].OneofWrappers = []any{}
|
||||
file_app_v1_auth_proto_msgTypes[10].OneofWrappers = []any{}
|
||||
type x struct{}
|
||||
out := protoimpl.TypeBuilder{
|
||||
File: protoimpl.DescBuilder{
|
||||
|
||||
@@ -637,6 +637,506 @@ func (x *DeleteAdTemplateRequest) GetId() string {
|
||||
return ""
|
||||
}
|
||||
|
||||
type ListPlayerConfigsRequest struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *ListPlayerConfigsRequest) Reset() {
|
||||
*x = ListPlayerConfigsRequest{}
|
||||
mi := &file_app_v1_catalog_proto_msgTypes[12]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *ListPlayerConfigsRequest) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*ListPlayerConfigsRequest) ProtoMessage() {}
|
||||
|
||||
func (x *ListPlayerConfigsRequest) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_app_v1_catalog_proto_msgTypes[12]
|
||||
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 ListPlayerConfigsRequest.ProtoReflect.Descriptor instead.
|
||||
func (*ListPlayerConfigsRequest) Descriptor() ([]byte, []int) {
|
||||
return file_app_v1_catalog_proto_rawDescGZIP(), []int{12}
|
||||
}
|
||||
|
||||
type ListPlayerConfigsResponse struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
Configs []*PlayerConfig `protobuf:"bytes,1,rep,name=configs,proto3" json:"configs,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *ListPlayerConfigsResponse) Reset() {
|
||||
*x = ListPlayerConfigsResponse{}
|
||||
mi := &file_app_v1_catalog_proto_msgTypes[13]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *ListPlayerConfigsResponse) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*ListPlayerConfigsResponse) ProtoMessage() {}
|
||||
|
||||
func (x *ListPlayerConfigsResponse) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_app_v1_catalog_proto_msgTypes[13]
|
||||
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 ListPlayerConfigsResponse.ProtoReflect.Descriptor instead.
|
||||
func (*ListPlayerConfigsResponse) Descriptor() ([]byte, []int) {
|
||||
return file_app_v1_catalog_proto_rawDescGZIP(), []int{13}
|
||||
}
|
||||
|
||||
func (x *ListPlayerConfigsResponse) GetConfigs() []*PlayerConfig {
|
||||
if x != nil {
|
||||
return x.Configs
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
type CreatePlayerConfigRequest struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
||||
Description *string `protobuf:"bytes,2,opt,name=description,proto3,oneof" json:"description,omitempty"`
|
||||
Autoplay bool `protobuf:"varint,3,opt,name=autoplay,proto3" json:"autoplay,omitempty"`
|
||||
Loop bool `protobuf:"varint,4,opt,name=loop,proto3" json:"loop,omitempty"`
|
||||
Muted bool `protobuf:"varint,5,opt,name=muted,proto3" json:"muted,omitempty"`
|
||||
ShowControls bool `protobuf:"varint,6,opt,name=show_controls,json=showControls,proto3" json:"show_controls,omitempty"`
|
||||
Pip bool `protobuf:"varint,7,opt,name=pip,proto3" json:"pip,omitempty"`
|
||||
Airplay bool `protobuf:"varint,8,opt,name=airplay,proto3" json:"airplay,omitempty"`
|
||||
Chromecast bool `protobuf:"varint,9,opt,name=chromecast,proto3" json:"chromecast,omitempty"`
|
||||
IsActive *bool `protobuf:"varint,10,opt,name=is_active,json=isActive,proto3,oneof" json:"is_active,omitempty"`
|
||||
IsDefault *bool `protobuf:"varint,11,opt,name=is_default,json=isDefault,proto3,oneof" json:"is_default,omitempty"`
|
||||
EncrytionM3U8 *bool `protobuf:"varint,12,opt,name=encrytion_m3u8,json=encrytionM3u8,proto3,oneof" json:"encrytion_m3u8,omitempty"`
|
||||
LogoUrl *string `protobuf:"bytes,13,opt,name=logo_url,json=logoUrl,proto3,oneof" json:"logo_url,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *CreatePlayerConfigRequest) Reset() {
|
||||
*x = CreatePlayerConfigRequest{}
|
||||
mi := &file_app_v1_catalog_proto_msgTypes[14]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *CreatePlayerConfigRequest) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*CreatePlayerConfigRequest) ProtoMessage() {}
|
||||
|
||||
func (x *CreatePlayerConfigRequest) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_app_v1_catalog_proto_msgTypes[14]
|
||||
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 CreatePlayerConfigRequest.ProtoReflect.Descriptor instead.
|
||||
func (*CreatePlayerConfigRequest) Descriptor() ([]byte, []int) {
|
||||
return file_app_v1_catalog_proto_rawDescGZIP(), []int{14}
|
||||
}
|
||||
|
||||
func (x *CreatePlayerConfigRequest) GetName() string {
|
||||
if x != nil {
|
||||
return x.Name
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *CreatePlayerConfigRequest) GetDescription() string {
|
||||
if x != nil && x.Description != nil {
|
||||
return *x.Description
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *CreatePlayerConfigRequest) GetAutoplay() bool {
|
||||
if x != nil {
|
||||
return x.Autoplay
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
func (x *CreatePlayerConfigRequest) GetLoop() bool {
|
||||
if x != nil {
|
||||
return x.Loop
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
func (x *CreatePlayerConfigRequest) GetMuted() bool {
|
||||
if x != nil {
|
||||
return x.Muted
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
func (x *CreatePlayerConfigRequest) GetShowControls() bool {
|
||||
if x != nil {
|
||||
return x.ShowControls
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
func (x *CreatePlayerConfigRequest) GetPip() bool {
|
||||
if x != nil {
|
||||
return x.Pip
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
func (x *CreatePlayerConfigRequest) GetAirplay() bool {
|
||||
if x != nil {
|
||||
return x.Airplay
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
func (x *CreatePlayerConfigRequest) GetChromecast() bool {
|
||||
if x != nil {
|
||||
return x.Chromecast
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
func (x *CreatePlayerConfigRequest) GetIsActive() bool {
|
||||
if x != nil && x.IsActive != nil {
|
||||
return *x.IsActive
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
func (x *CreatePlayerConfigRequest) GetIsDefault() bool {
|
||||
if x != nil && x.IsDefault != nil {
|
||||
return *x.IsDefault
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
func (x *CreatePlayerConfigRequest) GetEncrytionM3U8() bool {
|
||||
if x != nil && x.EncrytionM3U8 != nil {
|
||||
return *x.EncrytionM3U8
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
func (x *CreatePlayerConfigRequest) GetLogoUrl() string {
|
||||
if x != nil && x.LogoUrl != nil {
|
||||
return *x.LogoUrl
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
type CreatePlayerConfigResponse struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
Config *PlayerConfig `protobuf:"bytes,1,opt,name=config,proto3" json:"config,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *CreatePlayerConfigResponse) Reset() {
|
||||
*x = CreatePlayerConfigResponse{}
|
||||
mi := &file_app_v1_catalog_proto_msgTypes[15]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *CreatePlayerConfigResponse) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*CreatePlayerConfigResponse) ProtoMessage() {}
|
||||
|
||||
func (x *CreatePlayerConfigResponse) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_app_v1_catalog_proto_msgTypes[15]
|
||||
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 CreatePlayerConfigResponse.ProtoReflect.Descriptor instead.
|
||||
func (*CreatePlayerConfigResponse) Descriptor() ([]byte, []int) {
|
||||
return file_app_v1_catalog_proto_rawDescGZIP(), []int{15}
|
||||
}
|
||||
|
||||
func (x *CreatePlayerConfigResponse) GetConfig() *PlayerConfig {
|
||||
if x != nil {
|
||||
return x.Config
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
type UpdatePlayerConfigRequest struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
|
||||
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
|
||||
Description *string `protobuf:"bytes,3,opt,name=description,proto3,oneof" json:"description,omitempty"`
|
||||
Autoplay bool `protobuf:"varint,4,opt,name=autoplay,proto3" json:"autoplay,omitempty"`
|
||||
Loop bool `protobuf:"varint,5,opt,name=loop,proto3" json:"loop,omitempty"`
|
||||
Muted bool `protobuf:"varint,6,opt,name=muted,proto3" json:"muted,omitempty"`
|
||||
ShowControls bool `protobuf:"varint,7,opt,name=show_controls,json=showControls,proto3" json:"show_controls,omitempty"`
|
||||
Pip bool `protobuf:"varint,8,opt,name=pip,proto3" json:"pip,omitempty"`
|
||||
Airplay bool `protobuf:"varint,9,opt,name=airplay,proto3" json:"airplay,omitempty"`
|
||||
Chromecast bool `protobuf:"varint,10,opt,name=chromecast,proto3" json:"chromecast,omitempty"`
|
||||
IsActive *bool `protobuf:"varint,11,opt,name=is_active,json=isActive,proto3,oneof" json:"is_active,omitempty"`
|
||||
IsDefault *bool `protobuf:"varint,12,opt,name=is_default,json=isDefault,proto3,oneof" json:"is_default,omitempty"`
|
||||
EncrytionM3U8 *bool `protobuf:"varint,13,opt,name=encrytion_m3u8,json=encrytionM3u8,proto3,oneof" json:"encrytion_m3u8,omitempty"`
|
||||
LogoUrl *string `protobuf:"bytes,14,opt,name=logo_url,json=logoUrl,proto3,oneof" json:"logo_url,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *UpdatePlayerConfigRequest) Reset() {
|
||||
*x = UpdatePlayerConfigRequest{}
|
||||
mi := &file_app_v1_catalog_proto_msgTypes[16]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *UpdatePlayerConfigRequest) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*UpdatePlayerConfigRequest) ProtoMessage() {}
|
||||
|
||||
func (x *UpdatePlayerConfigRequest) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_app_v1_catalog_proto_msgTypes[16]
|
||||
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 UpdatePlayerConfigRequest.ProtoReflect.Descriptor instead.
|
||||
func (*UpdatePlayerConfigRequest) Descriptor() ([]byte, []int) {
|
||||
return file_app_v1_catalog_proto_rawDescGZIP(), []int{16}
|
||||
}
|
||||
|
||||
func (x *UpdatePlayerConfigRequest) GetId() string {
|
||||
if x != nil {
|
||||
return x.Id
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *UpdatePlayerConfigRequest) GetName() string {
|
||||
if x != nil {
|
||||
return x.Name
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *UpdatePlayerConfigRequest) GetDescription() string {
|
||||
if x != nil && x.Description != nil {
|
||||
return *x.Description
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *UpdatePlayerConfigRequest) GetAutoplay() bool {
|
||||
if x != nil {
|
||||
return x.Autoplay
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
func (x *UpdatePlayerConfigRequest) GetLoop() bool {
|
||||
if x != nil {
|
||||
return x.Loop
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
func (x *UpdatePlayerConfigRequest) GetMuted() bool {
|
||||
if x != nil {
|
||||
return x.Muted
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
func (x *UpdatePlayerConfigRequest) GetShowControls() bool {
|
||||
if x != nil {
|
||||
return x.ShowControls
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
func (x *UpdatePlayerConfigRequest) GetPip() bool {
|
||||
if x != nil {
|
||||
return x.Pip
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
func (x *UpdatePlayerConfigRequest) GetAirplay() bool {
|
||||
if x != nil {
|
||||
return x.Airplay
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
func (x *UpdatePlayerConfigRequest) GetChromecast() bool {
|
||||
if x != nil {
|
||||
return x.Chromecast
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
func (x *UpdatePlayerConfigRequest) GetIsActive() bool {
|
||||
if x != nil && x.IsActive != nil {
|
||||
return *x.IsActive
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
func (x *UpdatePlayerConfigRequest) GetIsDefault() bool {
|
||||
if x != nil && x.IsDefault != nil {
|
||||
return *x.IsDefault
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
func (x *UpdatePlayerConfigRequest) GetEncrytionM3U8() bool {
|
||||
if x != nil && x.EncrytionM3U8 != nil {
|
||||
return *x.EncrytionM3U8
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
func (x *UpdatePlayerConfigRequest) GetLogoUrl() string {
|
||||
if x != nil && x.LogoUrl != nil {
|
||||
return *x.LogoUrl
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
type UpdatePlayerConfigResponse struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
Config *PlayerConfig `protobuf:"bytes,1,opt,name=config,proto3" json:"config,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *UpdatePlayerConfigResponse) Reset() {
|
||||
*x = UpdatePlayerConfigResponse{}
|
||||
mi := &file_app_v1_catalog_proto_msgTypes[17]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *UpdatePlayerConfigResponse) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*UpdatePlayerConfigResponse) ProtoMessage() {}
|
||||
|
||||
func (x *UpdatePlayerConfigResponse) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_app_v1_catalog_proto_msgTypes[17]
|
||||
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 UpdatePlayerConfigResponse.ProtoReflect.Descriptor instead.
|
||||
func (*UpdatePlayerConfigResponse) Descriptor() ([]byte, []int) {
|
||||
return file_app_v1_catalog_proto_rawDescGZIP(), []int{17}
|
||||
}
|
||||
|
||||
func (x *UpdatePlayerConfigResponse) GetConfig() *PlayerConfig {
|
||||
if x != nil {
|
||||
return x.Config
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
type DeletePlayerConfigRequest struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *DeletePlayerConfigRequest) Reset() {
|
||||
*x = DeletePlayerConfigRequest{}
|
||||
mi := &file_app_v1_catalog_proto_msgTypes[18]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *DeletePlayerConfigRequest) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*DeletePlayerConfigRequest) ProtoMessage() {}
|
||||
|
||||
func (x *DeletePlayerConfigRequest) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_app_v1_catalog_proto_msgTypes[18]
|
||||
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 DeletePlayerConfigRequest.ProtoReflect.Descriptor instead.
|
||||
func (*DeletePlayerConfigRequest) Descriptor() ([]byte, []int) {
|
||||
return file_app_v1_catalog_proto_rawDescGZIP(), []int{18}
|
||||
}
|
||||
|
||||
func (x *DeletePlayerConfigRequest) GetId() string {
|
||||
if x != nil {
|
||||
return x.Id
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
type ListPlansRequest struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
@@ -645,7 +1145,7 @@ type ListPlansRequest struct {
|
||||
|
||||
func (x *ListPlansRequest) Reset() {
|
||||
*x = ListPlansRequest{}
|
||||
mi := &file_app_v1_catalog_proto_msgTypes[12]
|
||||
mi := &file_app_v1_catalog_proto_msgTypes[19]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@@ -657,7 +1157,7 @@ func (x *ListPlansRequest) String() string {
|
||||
func (*ListPlansRequest) ProtoMessage() {}
|
||||
|
||||
func (x *ListPlansRequest) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_app_v1_catalog_proto_msgTypes[12]
|
||||
mi := &file_app_v1_catalog_proto_msgTypes[19]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@@ -670,7 +1170,7 @@ func (x *ListPlansRequest) ProtoReflect() protoreflect.Message {
|
||||
|
||||
// Deprecated: Use ListPlansRequest.ProtoReflect.Descriptor instead.
|
||||
func (*ListPlansRequest) Descriptor() ([]byte, []int) {
|
||||
return file_app_v1_catalog_proto_rawDescGZIP(), []int{12}
|
||||
return file_app_v1_catalog_proto_rawDescGZIP(), []int{19}
|
||||
}
|
||||
|
||||
type ListPlansResponse struct {
|
||||
@@ -682,7 +1182,7 @@ type ListPlansResponse struct {
|
||||
|
||||
func (x *ListPlansResponse) Reset() {
|
||||
*x = ListPlansResponse{}
|
||||
mi := &file_app_v1_catalog_proto_msgTypes[13]
|
||||
mi := &file_app_v1_catalog_proto_msgTypes[20]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@@ -694,7 +1194,7 @@ func (x *ListPlansResponse) String() string {
|
||||
func (*ListPlansResponse) ProtoMessage() {}
|
||||
|
||||
func (x *ListPlansResponse) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_app_v1_catalog_proto_msgTypes[13]
|
||||
mi := &file_app_v1_catalog_proto_msgTypes[20]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@@ -707,7 +1207,7 @@ func (x *ListPlansResponse) ProtoReflect() protoreflect.Message {
|
||||
|
||||
// Deprecated: Use ListPlansResponse.ProtoReflect.Descriptor instead.
|
||||
func (*ListPlansResponse) Descriptor() ([]byte, []int) {
|
||||
return file_app_v1_catalog_proto_rawDescGZIP(), []int{13}
|
||||
return file_app_v1_catalog_proto_rawDescGZIP(), []int{20}
|
||||
}
|
||||
|
||||
func (x *ListPlansResponse) GetPlans() []*Plan {
|
||||
@@ -774,6 +1274,64 @@ const file_app_v1_catalog_proto_rawDesc = "" +
|
||||
"\x18UpdateAdTemplateResponse\x125\n" +
|
||||
"\btemplate\x18\x01 \x01(\v2\x19.stream.app.v1.AdTemplateR\btemplate\")\n" +
|
||||
"\x17DeleteAdTemplateRequest\x12\x0e\n" +
|
||||
"\x02id\x18\x01 \x01(\tR\x02id\"\x1a\n" +
|
||||
"\x18ListPlayerConfigsRequest\"R\n" +
|
||||
"\x19ListPlayerConfigsResponse\x125\n" +
|
||||
"\aconfigs\x18\x01 \x03(\v2\x1b.stream.app.v1.PlayerConfigR\aconfigs\"\xec\x03\n" +
|
||||
"\x19CreatePlayerConfigRequest\x12\x12\n" +
|
||||
"\x04name\x18\x01 \x01(\tR\x04name\x12%\n" +
|
||||
"\vdescription\x18\x02 \x01(\tH\x00R\vdescription\x88\x01\x01\x12\x1a\n" +
|
||||
"\bautoplay\x18\x03 \x01(\bR\bautoplay\x12\x12\n" +
|
||||
"\x04loop\x18\x04 \x01(\bR\x04loop\x12\x14\n" +
|
||||
"\x05muted\x18\x05 \x01(\bR\x05muted\x12#\n" +
|
||||
"\rshow_controls\x18\x06 \x01(\bR\fshowControls\x12\x10\n" +
|
||||
"\x03pip\x18\a \x01(\bR\x03pip\x12\x18\n" +
|
||||
"\aairplay\x18\b \x01(\bR\aairplay\x12\x1e\n" +
|
||||
"\n" +
|
||||
"chromecast\x18\t \x01(\bR\n" +
|
||||
"chromecast\x12 \n" +
|
||||
"\tis_active\x18\n" +
|
||||
" \x01(\bH\x01R\bisActive\x88\x01\x01\x12\"\n" +
|
||||
"\n" +
|
||||
"is_default\x18\v \x01(\bH\x02R\tisDefault\x88\x01\x01\x12*\n" +
|
||||
"\x0eencrytion_m3u8\x18\f \x01(\bH\x03R\rencrytionM3u8\x88\x01\x01\x12\x1e\n" +
|
||||
"\blogo_url\x18\r \x01(\tH\x04R\alogoUrl\x88\x01\x01B\x0e\n" +
|
||||
"\f_descriptionB\f\n" +
|
||||
"\n" +
|
||||
"_is_activeB\r\n" +
|
||||
"\v_is_defaultB\x11\n" +
|
||||
"\x0f_encrytion_m3u8B\v\n" +
|
||||
"\t_logo_url\"Q\n" +
|
||||
"\x1aCreatePlayerConfigResponse\x123\n" +
|
||||
"\x06config\x18\x01 \x01(\v2\x1b.stream.app.v1.PlayerConfigR\x06config\"\xfc\x03\n" +
|
||||
"\x19UpdatePlayerConfigRequest\x12\x0e\n" +
|
||||
"\x02id\x18\x01 \x01(\tR\x02id\x12\x12\n" +
|
||||
"\x04name\x18\x02 \x01(\tR\x04name\x12%\n" +
|
||||
"\vdescription\x18\x03 \x01(\tH\x00R\vdescription\x88\x01\x01\x12\x1a\n" +
|
||||
"\bautoplay\x18\x04 \x01(\bR\bautoplay\x12\x12\n" +
|
||||
"\x04loop\x18\x05 \x01(\bR\x04loop\x12\x14\n" +
|
||||
"\x05muted\x18\x06 \x01(\bR\x05muted\x12#\n" +
|
||||
"\rshow_controls\x18\a \x01(\bR\fshowControls\x12\x10\n" +
|
||||
"\x03pip\x18\b \x01(\bR\x03pip\x12\x18\n" +
|
||||
"\aairplay\x18\t \x01(\bR\aairplay\x12\x1e\n" +
|
||||
"\n" +
|
||||
"chromecast\x18\n" +
|
||||
" \x01(\bR\n" +
|
||||
"chromecast\x12 \n" +
|
||||
"\tis_active\x18\v \x01(\bH\x01R\bisActive\x88\x01\x01\x12\"\n" +
|
||||
"\n" +
|
||||
"is_default\x18\f \x01(\bH\x02R\tisDefault\x88\x01\x01\x12*\n" +
|
||||
"\x0eencrytion_m3u8\x18\r \x01(\bH\x03R\rencrytionM3u8\x88\x01\x01\x12\x1e\n" +
|
||||
"\blogo_url\x18\x0e \x01(\tH\x04R\alogoUrl\x88\x01\x01B\x0e\n" +
|
||||
"\f_descriptionB\f\n" +
|
||||
"\n" +
|
||||
"_is_activeB\r\n" +
|
||||
"\v_is_defaultB\x11\n" +
|
||||
"\x0f_encrytion_m3u8B\v\n" +
|
||||
"\t_logo_url\"Q\n" +
|
||||
"\x1aUpdatePlayerConfigResponse\x123\n" +
|
||||
"\x06config\x18\x01 \x01(\v2\x1b.stream.app.v1.PlayerConfigR\x06config\"+\n" +
|
||||
"\x19DeletePlayerConfigRequest\x12\x0e\n" +
|
||||
"\x02id\x18\x01 \x01(\tR\x02id\"\x12\n" +
|
||||
"\x10ListPlansRequest\">\n" +
|
||||
"\x11ListPlansResponse\x12)\n" +
|
||||
@@ -786,7 +1344,12 @@ const file_app_v1_catalog_proto_rawDesc = "" +
|
||||
"\x0fListAdTemplates\x12%.stream.app.v1.ListAdTemplatesRequest\x1a&.stream.app.v1.ListAdTemplatesResponse\x12c\n" +
|
||||
"\x10CreateAdTemplate\x12&.stream.app.v1.CreateAdTemplateRequest\x1a'.stream.app.v1.CreateAdTemplateResponse\x12c\n" +
|
||||
"\x10UpdateAdTemplate\x12&.stream.app.v1.UpdateAdTemplateRequest\x1a'.stream.app.v1.UpdateAdTemplateResponse\x12Z\n" +
|
||||
"\x10DeleteAdTemplate\x12&.stream.app.v1.DeleteAdTemplateRequest\x1a\x1e.stream.app.v1.MessageResponse2^\n" +
|
||||
"\x10DeleteAdTemplate\x12&.stream.app.v1.DeleteAdTemplateRequest\x1a\x1e.stream.app.v1.MessageResponse2\xb4\x03\n" +
|
||||
"\x14PlayerConfigsService\x12f\n" +
|
||||
"\x11ListPlayerConfigs\x12'.stream.app.v1.ListPlayerConfigsRequest\x1a(.stream.app.v1.ListPlayerConfigsResponse\x12i\n" +
|
||||
"\x12CreatePlayerConfig\x12(.stream.app.v1.CreatePlayerConfigRequest\x1a).stream.app.v1.CreatePlayerConfigResponse\x12i\n" +
|
||||
"\x12UpdatePlayerConfig\x12(.stream.app.v1.UpdatePlayerConfigRequest\x1a).stream.app.v1.UpdatePlayerConfigResponse\x12^\n" +
|
||||
"\x12DeletePlayerConfig\x12(.stream.app.v1.DeletePlayerConfigRequest\x1a\x1e.stream.app.v1.MessageResponse2^\n" +
|
||||
"\fPlansService\x12N\n" +
|
||||
"\tListPlans\x12\x1f.stream.app.v1.ListPlansRequest\x1a .stream.app.v1.ListPlansResponseB,Z*stream.api/internal/gen/proto/app/v1;appv1b\x06proto3"
|
||||
|
||||
@@ -802,55 +1365,74 @@ func file_app_v1_catalog_proto_rawDescGZIP() []byte {
|
||||
return file_app_v1_catalog_proto_rawDescData
|
||||
}
|
||||
|
||||
var file_app_v1_catalog_proto_msgTypes = make([]protoimpl.MessageInfo, 14)
|
||||
var file_app_v1_catalog_proto_msgTypes = make([]protoimpl.MessageInfo, 21)
|
||||
var file_app_v1_catalog_proto_goTypes = []any{
|
||||
(*ListDomainsRequest)(nil), // 0: stream.app.v1.ListDomainsRequest
|
||||
(*ListDomainsResponse)(nil), // 1: stream.app.v1.ListDomainsResponse
|
||||
(*CreateDomainRequest)(nil), // 2: stream.app.v1.CreateDomainRequest
|
||||
(*CreateDomainResponse)(nil), // 3: stream.app.v1.CreateDomainResponse
|
||||
(*DeleteDomainRequest)(nil), // 4: stream.app.v1.DeleteDomainRequest
|
||||
(*ListAdTemplatesRequest)(nil), // 5: stream.app.v1.ListAdTemplatesRequest
|
||||
(*ListAdTemplatesResponse)(nil), // 6: stream.app.v1.ListAdTemplatesResponse
|
||||
(*CreateAdTemplateRequest)(nil), // 7: stream.app.v1.CreateAdTemplateRequest
|
||||
(*CreateAdTemplateResponse)(nil), // 8: stream.app.v1.CreateAdTemplateResponse
|
||||
(*UpdateAdTemplateRequest)(nil), // 9: stream.app.v1.UpdateAdTemplateRequest
|
||||
(*UpdateAdTemplateResponse)(nil), // 10: stream.app.v1.UpdateAdTemplateResponse
|
||||
(*DeleteAdTemplateRequest)(nil), // 11: stream.app.v1.DeleteAdTemplateRequest
|
||||
(*ListPlansRequest)(nil), // 12: stream.app.v1.ListPlansRequest
|
||||
(*ListPlansResponse)(nil), // 13: stream.app.v1.ListPlansResponse
|
||||
(*Domain)(nil), // 14: stream.app.v1.Domain
|
||||
(*AdTemplate)(nil), // 15: stream.app.v1.AdTemplate
|
||||
(*Plan)(nil), // 16: stream.app.v1.Plan
|
||||
(*MessageResponse)(nil), // 17: stream.app.v1.MessageResponse
|
||||
(*ListDomainsRequest)(nil), // 0: stream.app.v1.ListDomainsRequest
|
||||
(*ListDomainsResponse)(nil), // 1: stream.app.v1.ListDomainsResponse
|
||||
(*CreateDomainRequest)(nil), // 2: stream.app.v1.CreateDomainRequest
|
||||
(*CreateDomainResponse)(nil), // 3: stream.app.v1.CreateDomainResponse
|
||||
(*DeleteDomainRequest)(nil), // 4: stream.app.v1.DeleteDomainRequest
|
||||
(*ListAdTemplatesRequest)(nil), // 5: stream.app.v1.ListAdTemplatesRequest
|
||||
(*ListAdTemplatesResponse)(nil), // 6: stream.app.v1.ListAdTemplatesResponse
|
||||
(*CreateAdTemplateRequest)(nil), // 7: stream.app.v1.CreateAdTemplateRequest
|
||||
(*CreateAdTemplateResponse)(nil), // 8: stream.app.v1.CreateAdTemplateResponse
|
||||
(*UpdateAdTemplateRequest)(nil), // 9: stream.app.v1.UpdateAdTemplateRequest
|
||||
(*UpdateAdTemplateResponse)(nil), // 10: stream.app.v1.UpdateAdTemplateResponse
|
||||
(*DeleteAdTemplateRequest)(nil), // 11: stream.app.v1.DeleteAdTemplateRequest
|
||||
(*ListPlayerConfigsRequest)(nil), // 12: stream.app.v1.ListPlayerConfigsRequest
|
||||
(*ListPlayerConfigsResponse)(nil), // 13: stream.app.v1.ListPlayerConfigsResponse
|
||||
(*CreatePlayerConfigRequest)(nil), // 14: stream.app.v1.CreatePlayerConfigRequest
|
||||
(*CreatePlayerConfigResponse)(nil), // 15: stream.app.v1.CreatePlayerConfigResponse
|
||||
(*UpdatePlayerConfigRequest)(nil), // 16: stream.app.v1.UpdatePlayerConfigRequest
|
||||
(*UpdatePlayerConfigResponse)(nil), // 17: stream.app.v1.UpdatePlayerConfigResponse
|
||||
(*DeletePlayerConfigRequest)(nil), // 18: stream.app.v1.DeletePlayerConfigRequest
|
||||
(*ListPlansRequest)(nil), // 19: stream.app.v1.ListPlansRequest
|
||||
(*ListPlansResponse)(nil), // 20: stream.app.v1.ListPlansResponse
|
||||
(*Domain)(nil), // 21: stream.app.v1.Domain
|
||||
(*AdTemplate)(nil), // 22: stream.app.v1.AdTemplate
|
||||
(*PlayerConfig)(nil), // 23: stream.app.v1.PlayerConfig
|
||||
(*Plan)(nil), // 24: stream.app.v1.Plan
|
||||
(*MessageResponse)(nil), // 25: stream.app.v1.MessageResponse
|
||||
}
|
||||
var file_app_v1_catalog_proto_depIdxs = []int32{
|
||||
14, // 0: stream.app.v1.ListDomainsResponse.domains:type_name -> stream.app.v1.Domain
|
||||
14, // 1: stream.app.v1.CreateDomainResponse.domain:type_name -> stream.app.v1.Domain
|
||||
15, // 2: stream.app.v1.ListAdTemplatesResponse.templates:type_name -> stream.app.v1.AdTemplate
|
||||
15, // 3: stream.app.v1.CreateAdTemplateResponse.template:type_name -> stream.app.v1.AdTemplate
|
||||
15, // 4: stream.app.v1.UpdateAdTemplateResponse.template:type_name -> stream.app.v1.AdTemplate
|
||||
16, // 5: stream.app.v1.ListPlansResponse.plans:type_name -> stream.app.v1.Plan
|
||||
0, // 6: stream.app.v1.DomainsService.ListDomains:input_type -> stream.app.v1.ListDomainsRequest
|
||||
2, // 7: stream.app.v1.DomainsService.CreateDomain:input_type -> stream.app.v1.CreateDomainRequest
|
||||
4, // 8: stream.app.v1.DomainsService.DeleteDomain:input_type -> stream.app.v1.DeleteDomainRequest
|
||||
5, // 9: stream.app.v1.AdTemplatesService.ListAdTemplates:input_type -> stream.app.v1.ListAdTemplatesRequest
|
||||
7, // 10: stream.app.v1.AdTemplatesService.CreateAdTemplate:input_type -> stream.app.v1.CreateAdTemplateRequest
|
||||
9, // 11: stream.app.v1.AdTemplatesService.UpdateAdTemplate:input_type -> stream.app.v1.UpdateAdTemplateRequest
|
||||
11, // 12: stream.app.v1.AdTemplatesService.DeleteAdTemplate:input_type -> stream.app.v1.DeleteAdTemplateRequest
|
||||
12, // 13: stream.app.v1.PlansService.ListPlans:input_type -> stream.app.v1.ListPlansRequest
|
||||
1, // 14: stream.app.v1.DomainsService.ListDomains:output_type -> stream.app.v1.ListDomainsResponse
|
||||
3, // 15: stream.app.v1.DomainsService.CreateDomain:output_type -> stream.app.v1.CreateDomainResponse
|
||||
17, // 16: stream.app.v1.DomainsService.DeleteDomain:output_type -> stream.app.v1.MessageResponse
|
||||
6, // 17: stream.app.v1.AdTemplatesService.ListAdTemplates:output_type -> stream.app.v1.ListAdTemplatesResponse
|
||||
8, // 18: stream.app.v1.AdTemplatesService.CreateAdTemplate:output_type -> stream.app.v1.CreateAdTemplateResponse
|
||||
10, // 19: stream.app.v1.AdTemplatesService.UpdateAdTemplate:output_type -> stream.app.v1.UpdateAdTemplateResponse
|
||||
17, // 20: stream.app.v1.AdTemplatesService.DeleteAdTemplate:output_type -> stream.app.v1.MessageResponse
|
||||
13, // 21: stream.app.v1.PlansService.ListPlans:output_type -> stream.app.v1.ListPlansResponse
|
||||
14, // [14:22] is the sub-list for method output_type
|
||||
6, // [6:14] is the sub-list for method input_type
|
||||
6, // [6:6] is the sub-list for extension type_name
|
||||
6, // [6:6] is the sub-list for extension extendee
|
||||
0, // [0:6] is the sub-list for field type_name
|
||||
21, // 0: stream.app.v1.ListDomainsResponse.domains:type_name -> stream.app.v1.Domain
|
||||
21, // 1: stream.app.v1.CreateDomainResponse.domain:type_name -> stream.app.v1.Domain
|
||||
22, // 2: stream.app.v1.ListAdTemplatesResponse.templates:type_name -> stream.app.v1.AdTemplate
|
||||
22, // 3: stream.app.v1.CreateAdTemplateResponse.template:type_name -> stream.app.v1.AdTemplate
|
||||
22, // 4: stream.app.v1.UpdateAdTemplateResponse.template:type_name -> stream.app.v1.AdTemplate
|
||||
23, // 5: stream.app.v1.ListPlayerConfigsResponse.configs:type_name -> stream.app.v1.PlayerConfig
|
||||
23, // 6: stream.app.v1.CreatePlayerConfigResponse.config:type_name -> stream.app.v1.PlayerConfig
|
||||
23, // 7: stream.app.v1.UpdatePlayerConfigResponse.config:type_name -> stream.app.v1.PlayerConfig
|
||||
24, // 8: stream.app.v1.ListPlansResponse.plans:type_name -> stream.app.v1.Plan
|
||||
0, // 9: stream.app.v1.DomainsService.ListDomains:input_type -> stream.app.v1.ListDomainsRequest
|
||||
2, // 10: stream.app.v1.DomainsService.CreateDomain:input_type -> stream.app.v1.CreateDomainRequest
|
||||
4, // 11: stream.app.v1.DomainsService.DeleteDomain:input_type -> stream.app.v1.DeleteDomainRequest
|
||||
5, // 12: stream.app.v1.AdTemplatesService.ListAdTemplates:input_type -> stream.app.v1.ListAdTemplatesRequest
|
||||
7, // 13: stream.app.v1.AdTemplatesService.CreateAdTemplate:input_type -> stream.app.v1.CreateAdTemplateRequest
|
||||
9, // 14: stream.app.v1.AdTemplatesService.UpdateAdTemplate:input_type -> stream.app.v1.UpdateAdTemplateRequest
|
||||
11, // 15: stream.app.v1.AdTemplatesService.DeleteAdTemplate:input_type -> stream.app.v1.DeleteAdTemplateRequest
|
||||
12, // 16: stream.app.v1.PlayerConfigsService.ListPlayerConfigs:input_type -> stream.app.v1.ListPlayerConfigsRequest
|
||||
14, // 17: stream.app.v1.PlayerConfigsService.CreatePlayerConfig:input_type -> stream.app.v1.CreatePlayerConfigRequest
|
||||
16, // 18: stream.app.v1.PlayerConfigsService.UpdatePlayerConfig:input_type -> stream.app.v1.UpdatePlayerConfigRequest
|
||||
18, // 19: stream.app.v1.PlayerConfigsService.DeletePlayerConfig:input_type -> stream.app.v1.DeletePlayerConfigRequest
|
||||
19, // 20: stream.app.v1.PlansService.ListPlans:input_type -> stream.app.v1.ListPlansRequest
|
||||
1, // 21: stream.app.v1.DomainsService.ListDomains:output_type -> stream.app.v1.ListDomainsResponse
|
||||
3, // 22: stream.app.v1.DomainsService.CreateDomain:output_type -> stream.app.v1.CreateDomainResponse
|
||||
25, // 23: stream.app.v1.DomainsService.DeleteDomain:output_type -> stream.app.v1.MessageResponse
|
||||
6, // 24: stream.app.v1.AdTemplatesService.ListAdTemplates:output_type -> stream.app.v1.ListAdTemplatesResponse
|
||||
8, // 25: stream.app.v1.AdTemplatesService.CreateAdTemplate:output_type -> stream.app.v1.CreateAdTemplateResponse
|
||||
10, // 26: stream.app.v1.AdTemplatesService.UpdateAdTemplate:output_type -> stream.app.v1.UpdateAdTemplateResponse
|
||||
25, // 27: stream.app.v1.AdTemplatesService.DeleteAdTemplate:output_type -> stream.app.v1.MessageResponse
|
||||
13, // 28: stream.app.v1.PlayerConfigsService.ListPlayerConfigs:output_type -> stream.app.v1.ListPlayerConfigsResponse
|
||||
15, // 29: stream.app.v1.PlayerConfigsService.CreatePlayerConfig:output_type -> stream.app.v1.CreatePlayerConfigResponse
|
||||
17, // 30: stream.app.v1.PlayerConfigsService.UpdatePlayerConfig:output_type -> stream.app.v1.UpdatePlayerConfigResponse
|
||||
25, // 31: stream.app.v1.PlayerConfigsService.DeletePlayerConfig:output_type -> stream.app.v1.MessageResponse
|
||||
20, // 32: stream.app.v1.PlansService.ListPlans:output_type -> stream.app.v1.ListPlansResponse
|
||||
21, // [21:33] is the sub-list for method output_type
|
||||
9, // [9:21] is the sub-list for method input_type
|
||||
9, // [9:9] is the sub-list for extension type_name
|
||||
9, // [9:9] is the sub-list for extension extendee
|
||||
0, // [0:9] is the sub-list for field type_name
|
||||
}
|
||||
|
||||
func init() { file_app_v1_catalog_proto_init() }
|
||||
@@ -861,15 +1443,17 @@ func file_app_v1_catalog_proto_init() {
|
||||
file_app_v1_common_proto_init()
|
||||
file_app_v1_catalog_proto_msgTypes[7].OneofWrappers = []any{}
|
||||
file_app_v1_catalog_proto_msgTypes[9].OneofWrappers = []any{}
|
||||
file_app_v1_catalog_proto_msgTypes[14].OneofWrappers = []any{}
|
||||
file_app_v1_catalog_proto_msgTypes[16].OneofWrappers = []any{}
|
||||
type x struct{}
|
||||
out := protoimpl.TypeBuilder{
|
||||
File: protoimpl.DescBuilder{
|
||||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||
RawDescriptor: unsafe.Slice(unsafe.StringData(file_app_v1_catalog_proto_rawDesc), len(file_app_v1_catalog_proto_rawDesc)),
|
||||
NumEnums: 0,
|
||||
NumMessages: 14,
|
||||
NumMessages: 21,
|
||||
NumExtensions: 0,
|
||||
NumServices: 3,
|
||||
NumServices: 4,
|
||||
},
|
||||
GoTypes: file_app_v1_catalog_proto_goTypes,
|
||||
DependencyIndexes: file_app_v1_catalog_proto_depIdxs,
|
||||
|
||||
@@ -412,6 +412,222 @@ var AdTemplatesService_ServiceDesc = grpc.ServiceDesc{
|
||||
Metadata: "app/v1/catalog.proto",
|
||||
}
|
||||
|
||||
const (
|
||||
PlayerConfigsService_ListPlayerConfigs_FullMethodName = "/stream.app.v1.PlayerConfigsService/ListPlayerConfigs"
|
||||
PlayerConfigsService_CreatePlayerConfig_FullMethodName = "/stream.app.v1.PlayerConfigsService/CreatePlayerConfig"
|
||||
PlayerConfigsService_UpdatePlayerConfig_FullMethodName = "/stream.app.v1.PlayerConfigsService/UpdatePlayerConfig"
|
||||
PlayerConfigsService_DeletePlayerConfig_FullMethodName = "/stream.app.v1.PlayerConfigsService/DeletePlayerConfig"
|
||||
)
|
||||
|
||||
// PlayerConfigsServiceClient is the client API for PlayerConfigsService service.
|
||||
//
|
||||
// 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 PlayerConfigsServiceClient interface {
|
||||
ListPlayerConfigs(ctx context.Context, in *ListPlayerConfigsRequest, opts ...grpc.CallOption) (*ListPlayerConfigsResponse, error)
|
||||
CreatePlayerConfig(ctx context.Context, in *CreatePlayerConfigRequest, opts ...grpc.CallOption) (*CreatePlayerConfigResponse, error)
|
||||
UpdatePlayerConfig(ctx context.Context, in *UpdatePlayerConfigRequest, opts ...grpc.CallOption) (*UpdatePlayerConfigResponse, error)
|
||||
DeletePlayerConfig(ctx context.Context, in *DeletePlayerConfigRequest, opts ...grpc.CallOption) (*MessageResponse, error)
|
||||
}
|
||||
|
||||
type playerConfigsServiceClient struct {
|
||||
cc grpc.ClientConnInterface
|
||||
}
|
||||
|
||||
func NewPlayerConfigsServiceClient(cc grpc.ClientConnInterface) PlayerConfigsServiceClient {
|
||||
return &playerConfigsServiceClient{cc}
|
||||
}
|
||||
|
||||
func (c *playerConfigsServiceClient) ListPlayerConfigs(ctx context.Context, in *ListPlayerConfigsRequest, opts ...grpc.CallOption) (*ListPlayerConfigsResponse, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(ListPlayerConfigsResponse)
|
||||
err := c.cc.Invoke(ctx, PlayerConfigsService_ListPlayerConfigs_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *playerConfigsServiceClient) CreatePlayerConfig(ctx context.Context, in *CreatePlayerConfigRequest, opts ...grpc.CallOption) (*CreatePlayerConfigResponse, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(CreatePlayerConfigResponse)
|
||||
err := c.cc.Invoke(ctx, PlayerConfigsService_CreatePlayerConfig_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *playerConfigsServiceClient) UpdatePlayerConfig(ctx context.Context, in *UpdatePlayerConfigRequest, opts ...grpc.CallOption) (*UpdatePlayerConfigResponse, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(UpdatePlayerConfigResponse)
|
||||
err := c.cc.Invoke(ctx, PlayerConfigsService_UpdatePlayerConfig_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *playerConfigsServiceClient) DeletePlayerConfig(ctx context.Context, in *DeletePlayerConfigRequest, opts ...grpc.CallOption) (*MessageResponse, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(MessageResponse)
|
||||
err := c.cc.Invoke(ctx, PlayerConfigsService_DeletePlayerConfig_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
// PlayerConfigsServiceServer is the server API for PlayerConfigsService service.
|
||||
// All implementations must embed UnimplementedPlayerConfigsServiceServer
|
||||
// for forward compatibility.
|
||||
type PlayerConfigsServiceServer interface {
|
||||
ListPlayerConfigs(context.Context, *ListPlayerConfigsRequest) (*ListPlayerConfigsResponse, error)
|
||||
CreatePlayerConfig(context.Context, *CreatePlayerConfigRequest) (*CreatePlayerConfigResponse, error)
|
||||
UpdatePlayerConfig(context.Context, *UpdatePlayerConfigRequest) (*UpdatePlayerConfigResponse, error)
|
||||
DeletePlayerConfig(context.Context, *DeletePlayerConfigRequest) (*MessageResponse, error)
|
||||
mustEmbedUnimplementedPlayerConfigsServiceServer()
|
||||
}
|
||||
|
||||
// UnimplementedPlayerConfigsServiceServer must be embedded to have
|
||||
// forward compatible implementations.
|
||||
//
|
||||
// NOTE: this should be embedded by value instead of pointer to avoid a nil
|
||||
// pointer dereference when methods are called.
|
||||
type UnimplementedPlayerConfigsServiceServer struct{}
|
||||
|
||||
func (UnimplementedPlayerConfigsServiceServer) ListPlayerConfigs(context.Context, *ListPlayerConfigsRequest) (*ListPlayerConfigsResponse, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method ListPlayerConfigs not implemented")
|
||||
}
|
||||
func (UnimplementedPlayerConfigsServiceServer) CreatePlayerConfig(context.Context, *CreatePlayerConfigRequest) (*CreatePlayerConfigResponse, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method CreatePlayerConfig not implemented")
|
||||
}
|
||||
func (UnimplementedPlayerConfigsServiceServer) UpdatePlayerConfig(context.Context, *UpdatePlayerConfigRequest) (*UpdatePlayerConfigResponse, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method UpdatePlayerConfig not implemented")
|
||||
}
|
||||
func (UnimplementedPlayerConfigsServiceServer) DeletePlayerConfig(context.Context, *DeletePlayerConfigRequest) (*MessageResponse, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method DeletePlayerConfig not implemented")
|
||||
}
|
||||
func (UnimplementedPlayerConfigsServiceServer) mustEmbedUnimplementedPlayerConfigsServiceServer() {}
|
||||
func (UnimplementedPlayerConfigsServiceServer) testEmbeddedByValue() {}
|
||||
|
||||
// UnsafePlayerConfigsServiceServer may be embedded to opt out of forward compatibility for this service.
|
||||
// Use of this interface is not recommended, as added methods to PlayerConfigsServiceServer will
|
||||
// result in compilation errors.
|
||||
type UnsafePlayerConfigsServiceServer interface {
|
||||
mustEmbedUnimplementedPlayerConfigsServiceServer()
|
||||
}
|
||||
|
||||
func RegisterPlayerConfigsServiceServer(s grpc.ServiceRegistrar, srv PlayerConfigsServiceServer) {
|
||||
// If the following call panics, it indicates UnimplementedPlayerConfigsServiceServer was
|
||||
// embedded by pointer and is nil. This will cause panics if an
|
||||
// unimplemented method is ever invoked, so we test this at initialization
|
||||
// time to prevent it from happening at runtime later due to I/O.
|
||||
if t, ok := srv.(interface{ testEmbeddedByValue() }); ok {
|
||||
t.testEmbeddedByValue()
|
||||
}
|
||||
s.RegisterService(&PlayerConfigsService_ServiceDesc, srv)
|
||||
}
|
||||
|
||||
func _PlayerConfigsService_ListPlayerConfigs_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(ListPlayerConfigsRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(PlayerConfigsServiceServer).ListPlayerConfigs(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: PlayerConfigsService_ListPlayerConfigs_FullMethodName,
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(PlayerConfigsServiceServer).ListPlayerConfigs(ctx, req.(*ListPlayerConfigsRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _PlayerConfigsService_CreatePlayerConfig_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(CreatePlayerConfigRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(PlayerConfigsServiceServer).CreatePlayerConfig(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: PlayerConfigsService_CreatePlayerConfig_FullMethodName,
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(PlayerConfigsServiceServer).CreatePlayerConfig(ctx, req.(*CreatePlayerConfigRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _PlayerConfigsService_UpdatePlayerConfig_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(UpdatePlayerConfigRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(PlayerConfigsServiceServer).UpdatePlayerConfig(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: PlayerConfigsService_UpdatePlayerConfig_FullMethodName,
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(PlayerConfigsServiceServer).UpdatePlayerConfig(ctx, req.(*UpdatePlayerConfigRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _PlayerConfigsService_DeletePlayerConfig_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(DeletePlayerConfigRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(PlayerConfigsServiceServer).DeletePlayerConfig(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: PlayerConfigsService_DeletePlayerConfig_FullMethodName,
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(PlayerConfigsServiceServer).DeletePlayerConfig(ctx, req.(*DeletePlayerConfigRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
// PlayerConfigsService_ServiceDesc is the grpc.ServiceDesc for PlayerConfigsService service.
|
||||
// It's only intended for direct use with grpc.RegisterService,
|
||||
// and not to be introspected or modified (even as a copy)
|
||||
var PlayerConfigsService_ServiceDesc = grpc.ServiceDesc{
|
||||
ServiceName: "stream.app.v1.PlayerConfigsService",
|
||||
HandlerType: (*PlayerConfigsServiceServer)(nil),
|
||||
Methods: []grpc.MethodDesc{
|
||||
{
|
||||
MethodName: "ListPlayerConfigs",
|
||||
Handler: _PlayerConfigsService_ListPlayerConfigs_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "CreatePlayerConfig",
|
||||
Handler: _PlayerConfigsService_CreatePlayerConfig_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "UpdatePlayerConfig",
|
||||
Handler: _PlayerConfigsService_UpdatePlayerConfig_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "DeletePlayerConfig",
|
||||
Handler: _PlayerConfigsService_DeletePlayerConfig_Handler,
|
||||
},
|
||||
},
|
||||
Streams: []grpc.StreamDesc{},
|
||||
Metadata: "app/v1/catalog.proto",
|
||||
}
|
||||
|
||||
const (
|
||||
PlansService_ListPlans_FullMethodName = "/stream.app.v1.PlansService/ListPlans"
|
||||
)
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -167,6 +167,8 @@ func (x *CreatePaymentResponse) GetMessage() string {
|
||||
|
||||
type ListPaymentHistoryRequest struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
Page int32 `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"`
|
||||
Limit int32 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
@@ -201,9 +203,28 @@ func (*ListPaymentHistoryRequest) Descriptor() ([]byte, []int) {
|
||||
return file_app_v1_payments_proto_rawDescGZIP(), []int{2}
|
||||
}
|
||||
|
||||
func (x *ListPaymentHistoryRequest) GetPage() int32 {
|
||||
if x != nil {
|
||||
return x.Page
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *ListPaymentHistoryRequest) GetLimit() int32 {
|
||||
if x != nil {
|
||||
return x.Limit
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
type ListPaymentHistoryResponse struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
Payments []*PaymentHistoryItem `protobuf:"bytes,1,rep,name=payments,proto3" json:"payments,omitempty"`
|
||||
Total int64 `protobuf:"varint,2,opt,name=total,proto3" json:"total,omitempty"`
|
||||
Page int32 `protobuf:"varint,3,opt,name=page,proto3" json:"page,omitempty"`
|
||||
Limit int32 `protobuf:"varint,4,opt,name=limit,proto3" json:"limit,omitempty"`
|
||||
HasPrev bool `protobuf:"varint,5,opt,name=has_prev,json=hasPrev,proto3" json:"has_prev,omitempty"`
|
||||
HasNext bool `protobuf:"varint,6,opt,name=has_next,json=hasNext,proto3" json:"has_next,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
@@ -245,6 +266,41 @@ func (x *ListPaymentHistoryResponse) GetPayments() []*PaymentHistoryItem {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *ListPaymentHistoryResponse) GetTotal() int64 {
|
||||
if x != nil {
|
||||
return x.Total
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *ListPaymentHistoryResponse) GetPage() int32 {
|
||||
if x != nil {
|
||||
return x.Page
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *ListPaymentHistoryResponse) GetLimit() int32 {
|
||||
if x != nil {
|
||||
return x.Limit
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *ListPaymentHistoryResponse) GetHasPrev() bool {
|
||||
if x != nil {
|
||||
return x.HasPrev
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
func (x *ListPaymentHistoryResponse) GetHasNext() bool {
|
||||
if x != nil {
|
||||
return x.HasNext
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
type TopupWalletRequest struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
Amount float64 `protobuf:"fixed64,1,opt,name=amount,proto3" json:"amount,omitempty"`
|
||||
@@ -471,10 +527,17 @@ const file_app_v1_payments_proto_rawDesc = "" +
|
||||
"\x0ewallet_balance\x18\x03 \x01(\x01R\rwalletBalance\x12\x1d\n" +
|
||||
"\n" +
|
||||
"invoice_id\x18\x04 \x01(\tR\tinvoiceId\x12\x18\n" +
|
||||
"\amessage\x18\x05 \x01(\tR\amessage\"\x1b\n" +
|
||||
"\x19ListPaymentHistoryRequest\"[\n" +
|
||||
"\amessage\x18\x05 \x01(\tR\amessage\"E\n" +
|
||||
"\x19ListPaymentHistoryRequest\x12\x12\n" +
|
||||
"\x04page\x18\x01 \x01(\x05R\x04page\x12\x14\n" +
|
||||
"\x05limit\x18\x02 \x01(\x05R\x05limit\"\xd1\x01\n" +
|
||||
"\x1aListPaymentHistoryResponse\x12=\n" +
|
||||
"\bpayments\x18\x01 \x03(\v2!.stream.app.v1.PaymentHistoryItemR\bpayments\",\n" +
|
||||
"\bpayments\x18\x01 \x03(\v2!.stream.app.v1.PaymentHistoryItemR\bpayments\x12\x14\n" +
|
||||
"\x05total\x18\x02 \x01(\x03R\x05total\x12\x12\n" +
|
||||
"\x04page\x18\x03 \x01(\x05R\x04page\x12\x14\n" +
|
||||
"\x05limit\x18\x04 \x01(\x05R\x05limit\x12\x19\n" +
|
||||
"\bhas_prev\x18\x05 \x01(\bR\ahasPrev\x12\x19\n" +
|
||||
"\bhas_next\x18\x06 \x01(\bR\ahasNext\",\n" +
|
||||
"\x12TopupWalletRequest\x12\x16\n" +
|
||||
"\x06amount\x18\x01 \x01(\x01R\x06amount\"\xac\x01\n" +
|
||||
"\x13TopupWalletResponse\x12O\n" +
|
||||
|
||||
Reference in New Issue
Block a user