refact: to use go-dbw CreateItems, DeleteItems (#4974)

* refact: to use go-dbw CreateItems, DeleteItems

Latest version of go-dbw updated the signature of
CreateItems(...) and DeleteItems(...) on a happy
note this latest version of go-dbw actually does
batch inserts and updates for this functions.

* all: regenerate protos with new protoc-gen-go version
This commit is contained in:
Jim authored and GitHub committed 2024-08-01 11:18:53 -04:00
1 parent b24f6dcee8
commit 28b465e4b8
167 files changed
+2254 -2248

No files matched your search

@@ -3,7 +3,7 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.33.0
// protoc-gen-go v1.34.2
// protoc (unknown)
// source: controller/api/services/v1/account_service.proto
@@ -1095,7 +1095,7 @@ func file_controller_api_services_v1_account_service_proto_rawDescGZIP() []byte
}
var file_controller_api_services_v1_account_service_proto_msgTypes = make([]protoimpl.MessageInfo, 14)
var file_controller_api_services_v1_account_service_proto_goTypes = []interface{}{
var file_controller_api_services_v1_account_service_proto_goTypes = []any{
(*GetAccountRequest)(nil), // 0: controller.api.services.v1.GetAccountRequest
(*GetAccountResponse)(nil), // 1: controller.api.services.v1.GetAccountResponse
(*ListAccountsRequest)(nil), // 2: controller.api.services.v1.ListAccountsRequest
@@ -1150,7 +1150,7 @@ func file_controller_api_services_v1_account_service_proto_init() {
return
}
if !protoimpl.UnsafeEnabled {
file_controller_api_services_v1_account_service_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_account_service_proto_msgTypes[0].Exporter = func(v any, i int) any {
switch v := v.(*GetAccountRequest); i {
case 0:
return &v.state
@@ -1162,7 +1162,7 @@ func file_controller_api_services_v1_account_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_account_service_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_account_service_proto_msgTypes[1].Exporter = func(v any, i int) any {
switch v := v.(*GetAccountResponse); i {
case 0:
return &v.state
@@ -1174,7 +1174,7 @@ func file_controller_api_services_v1_account_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_account_service_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_account_service_proto_msgTypes[2].Exporter = func(v any, i int) any {
switch v := v.(*ListAccountsRequest); i {
case 0:
return &v.state
@@ -1186,7 +1186,7 @@ func file_controller_api_services_v1_account_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_account_service_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_account_service_proto_msgTypes[3].Exporter = func(v any, i int) any {
switch v := v.(*ListAccountsResponse); i {
case 0:
return &v.state
@@ -1198,7 +1198,7 @@ func file_controller_api_services_v1_account_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_account_service_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_account_service_proto_msgTypes[4].Exporter = func(v any, i int) any {
switch v := v.(*CreateAccountRequest); i {
case 0:
return &v.state
@@ -1210,7 +1210,7 @@ func file_controller_api_services_v1_account_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_account_service_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_account_service_proto_msgTypes[5].Exporter = func(v any, i int) any {
switch v := v.(*CreateAccountResponse); i {
case 0:
return &v.state
@@ -1222,7 +1222,7 @@ func file_controller_api_services_v1_account_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_account_service_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_account_service_proto_msgTypes[6].Exporter = func(v any, i int) any {
switch v := v.(*UpdateAccountRequest); i {
case 0:
return &v.state
@@ -1234,7 +1234,7 @@ func file_controller_api_services_v1_account_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_account_service_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_account_service_proto_msgTypes[7].Exporter = func(v any, i int) any {
switch v := v.(*UpdateAccountResponse); i {
case 0:
return &v.state
@@ -1246,7 +1246,7 @@ func file_controller_api_services_v1_account_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_account_service_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_account_service_proto_msgTypes[8].Exporter = func(v any, i int) any {
switch v := v.(*DeleteAccountRequest); i {
case 0:
return &v.state
@@ -1258,7 +1258,7 @@ func file_controller_api_services_v1_account_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_account_service_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_account_service_proto_msgTypes[9].Exporter = func(v any, i int) any {
switch v := v.(*DeleteAccountResponse); i {
case 0:
return &v.state
@@ -1270,7 +1270,7 @@ func file_controller_api_services_v1_account_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_account_service_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_account_service_proto_msgTypes[10].Exporter = func(v any, i int) any {
switch v := v.(*SetPasswordRequest); i {
case 0:
return &v.state
@@ -1282,7 +1282,7 @@ func file_controller_api_services_v1_account_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_account_service_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_account_service_proto_msgTypes[11].Exporter = func(v any, i int) any {
switch v := v.(*SetPasswordResponse); i {
case 0:
return &v.state
@@ -1294,7 +1294,7 @@ func file_controller_api_services_v1_account_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_account_service_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_account_service_proto_msgTypes[12].Exporter = func(v any, i int) any {
switch v := v.(*ChangePasswordRequest); i {
case 0:
return &v.state
@@ -1306,7 +1306,7 @@ func file_controller_api_services_v1_account_service_proto_init() {
return nil
}
}
file_controller_api_services_v1_account_service_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} {
file_controller_api_services_v1_account_service_proto_msgTypes[13].Exporter = func(v any, i int) any {
switch v := v.(*ChangePasswordResponse); i {
case 0:
return &v.state