Skip to content
This repository has been archived by the owner on Feb 5, 2024. It is now read-only.

Commit

Permalink
Merge pull request #805 from huojiao2006/app_vendor
Browse files Browse the repository at this point in the history
fix appvendor issue and add a new statistics api
  • Loading branch information
huojiao2006 committed Jan 7, 2019
2 parents 092a716 + fb132c9 commit 9fa20e6
Show file tree
Hide file tree
Showing 24 changed files with 1,480 additions and 83 deletions.
32 changes: 29 additions & 3 deletions api/appvendor.proto
Expand Up @@ -50,8 +50,9 @@ message VendorVerifyInfo {
google.protobuf.StringValue bank_account_number = 10;
google.protobuf.StringValue status = 11;
google.protobuf.StringValue reject_message = 12;
google.protobuf.Timestamp submit_time = 13;
google.protobuf.Timestamp status_time = 14;
google.protobuf.StringValue approver = 13;
google.protobuf.Timestamp submit_time = 14;
google.protobuf.Timestamp status_time = 15;
}

message SubmitVendorVerifyInfoRequest {
Expand Down Expand Up @@ -90,6 +91,20 @@ message RejectVendorVerifyInfoResponse {
google.protobuf.StringValue user_id = 1;
}

message VendorStatistics {
google.protobuf.StringValue user_id = 1;
google.protobuf.StringValue company_name = 2;
google.protobuf.Int32Value active_app_count = 3;
google.protobuf.Int32Value cluster_count_month = 4;
google.protobuf.Int32Value cluster_count_total = 5;
}


message DescribeVendorStatisticsResponse {
uint32 total_count = 1;
repeated VendorStatistics vendor_verify_statistics_set = 2;
}

service AppVendorManager {

rpc SubmitVendorVerifyInfo (SubmitVendorVerifyInfoRequest) returns (SubmitVendorVerifyInfoResponse) {
Expand All @@ -110,6 +125,16 @@ service AppVendorManager {
get: "/v1/vendor_verify_infos"
};
}

rpc DescribeAppVendorStatistics (DescribeVendorVerifyInfosRequest) returns (DescribeVendorStatisticsResponse) {
option (grpc.gateway.protoc_gen_swagger.options.openapiv2_operation) = {
summary: "DescribeAppVendorStatistics"
};
option (google.api.http) = {
get: "/v1/DescribeAppVendorStatistics"
};
}

rpc GetVendorVerifyInfo (GetVendorVerifyInfoRequest) returns (VendorVerifyInfo) {
option (grpc.gateway.protoc_gen_swagger.options.openapiv2_operation) = {
summary: "GetVendorVerifyInfo"
Expand All @@ -120,6 +145,8 @@ service AppVendorManager {
}




rpc PassVendorVerifyInfo (PassVendorVerifyInfoRequest) returns (PassVendorVerifyInfoResponse) {
option (grpc.gateway.protoc_gen_swagger.options.openapiv2_operation) = {
summary: "PassVendorVerifyInfo"
Expand All @@ -140,5 +167,4 @@ service AppVendorManager {
};
}


}
47 changes: 47 additions & 0 deletions cmd/opctl/all_cmd.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

23 changes: 23 additions & 0 deletions cmd/opctl/config.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

125 changes: 125 additions & 0 deletions pkg/apigateway/spec/api.swagger.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 9fa20e6

Please sign in to comment.