vendor is added

This commit is contained in:
병준 박 2022-08-18 03:40:03 +00:00
parent 124af91cd3
commit a28289f910
5 changed files with 95 additions and 0 deletions

View File

@ -47,6 +47,7 @@ static TARGETS: Lazy<HashMap<&str, Vec<&str>>> = Lazy::new(|| {
"./proto/models/resource.proto", "./proto/models/resource.proto",
"./proto/models/role.proto", "./proto/models/role.proto",
"./proto/models/site.proto", "./proto/models/site.proto",
"./proto/models/api/vendor.proto",
], ],
); );
@ -63,6 +64,7 @@ static TARGETS: Lazy<HashMap<&str, Vec<&str>>> = Lazy::new(|| {
"./proto/c2se/member.proto", "./proto/c2se/member.proto",
"./proto/c2se/site.proto", "./proto/c2se/site.proto",
"./proto/c2se/core/network.proto", "./proto/c2se/core/network.proto",
"./proto/c2se/api/vendor.proto",
"./proto/c2se/backend/bank.proto", "./proto/c2se/backend/bank.proto",
"./proto/c2se/backend/identity.proto", "./proto/c2se/backend/identity.proto",
"./proto/c2se/backend/member_bank_account.proto", "./proto/c2se/backend/member_bank_account.proto",
@ -72,6 +74,7 @@ static TARGETS: Lazy<HashMap<&str, Vec<&str>>> = Lazy::new(|| {
"./proto/c2se/backend/member_level.proto", "./proto/c2se/backend/member_level.proto",
"./proto/c2se/backend/member.proto", "./proto/c2se/backend/member.proto",
"./proto/c2se/backend/site.proto", "./proto/c2se/backend/site.proto",
"./proto/c2se/backend/api/vendor.proto",
"./proto/c2se/frontend/bank.proto", "./proto/c2se/frontend/bank.proto",
"./proto/c2se/frontend/identity.proto", "./proto/c2se/frontend/identity.proto",
], ],
@ -89,6 +92,7 @@ static TARGETS: Lazy<HashMap<&str, Vec<&str>>> = Lazy::new(|| {
"./proto/ss/member_level.proto", "./proto/ss/member_level.proto",
"./proto/ss/member.proto", "./proto/ss/member.proto",
"./proto/ss/site.proto", "./proto/ss/site.proto",
"./proto/ss/api/vendor.proto",
], ],
); );

View File

@ -0,0 +1,31 @@
syntax = "proto3";
package bet.beteran.c2se.api.vendor;
import "protobuf/rpc.proto";
import "protobuf/pagination.proto";
import "models/core/network.proto";
import "models/api/vendor.proto";
message ListVendorsRequest {
message Search {
optional uint64 company_id = 1;
optional uint64 vendor_id = 2;
optional string key_like = 3;
optional string name_like = 4;
optional string category_like = 5;
optional string is_enable = 6;
}
optional bet.protobuf.pagination.Pagination pagination = 1;
repeated bet.protobuf.pagination.Sort sorts = 2;
optional Search search = 3;
}
message ListVendorsResponse {
message Result {
repeated bet.beteran.api.vendor.Vendor vendors = 1;
}
optional bet.protobuf.rpc.Error error = 1;
optional Result result = 2;
}

View File

@ -0,0 +1,5 @@
syntax = "proto3";
package bet.beteran.c2se.backend.api.vendor;
// subject = bet.beteran.c2se.backend.api.vendor.ListVendors

View File

@ -0,0 +1,18 @@
syntax = "proto3";
package bet.beteran.api.vendor;
message Vendor {
uint64 id = 1;
uint64 company_id = 2;
uint64 vendor_id = 3;
string key = 4;
string name = 5;
string category = 6;
uint64 max_bet_casino = 7;
uint64 max_bet_slot = 8;
string is_enable = 9;
uint64 bet_count = 10;
uint64 created_at = 11;
uint64 updated_at = 12;
}

37
proto/ss/api/vendor.proto Normal file
View File

@ -0,0 +1,37 @@
syntax = "proto3";
package bet.beteran.ss.api.vendor;
import "protobuf/rpc.proto";
import "protobuf/pagination.proto";
import "models/core/network.proto";
import "models/api/vendor.proto";
// subject = bet.beteran.ss.api.vendor.ListVendors
message ListVendorsRequest {
message Request {
message Search {
optional uint64 company_id = 1;
optional uint64 vendor_id = 2;
optional string key_like = 3;
optional string name_like = 4;
optional string category_like = 5;
optional string is_enable = 6;
}
optional bet.protobuf.pagination.Pagination pagination = 1;
repeated bet.protobuf.pagination.Sort sorts = 2;
optional Search search = 3;
}
bet.beteran.core.network.Client client = 1;
Request request = 2;
}
message ListVendorsResponse {
message Result {
repeated bet.beteran.api.vendor.Vendor vendors = 1;
}
optional bet.protobuf.rpc.Error error = 1;
optional Result result = 2;
}