Skip to content

Plan-v5 #90

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
May 14, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
proto:
go build -o build/protoc-gen-go google.golang.org/protobuf/cmd/protoc-gen-go
protoc --go_out=. --plugin=build/protoc-gen-go --go_opt=paths=source_relative config/types.proto
protoc --go_out=. --plugin=build/protoc-gen-go --go_opt=paths=source_relative user/protos/auth.proto
protoc --go_out=. --plugin=build/protoc-gen-go --go_opt=paths=source_relative user/protos/vpn.proto
protoc --go_out=. --plugin=build/protoc-gen-go --go_opt=paths=source_relative api/protos/auth.proto
protoc --go_out=. --plugin=build/protoc-gen-go --go_opt=paths=source_relative api/protos/vpn.proto
protoc --go_out=. --plugin=build/protoc-gen-go --go_opt=paths=source_relative issue/issue.proto

mock:
Expand Down
2 changes: 1 addition & 1 deletion api/pro_api.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ func (c *proClient) Plans(ctx context.Context) (*protos.PlansResponse, error) {
params := map[string]interface{}{
"locale": c.UserInfo.Locale(),
}
err := c.Get(ctx, "/plans-v4", params, &resp)
err := c.Get(ctx, "/plans-v5", params, &resp)
if err != nil {
slog.Error("Error in Plans: %v", "err", err)
return nil, err
Expand Down
1 change: 1 addition & 0 deletions api/pro_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ func TestPlans(t *testing.T) {
resp, error := proServer.Plans(context.Background())
assert.NoError(t, error)
assert.NotNil(t, resp)
assert.NotNil(t, resp.Plans)
}

func commonConfig() common.UserInfo {
Expand Down
Loading