-
Notifications
You must be signed in to change notification settings - Fork 5
feat(consultingapis):update grade chat group APIs(create,get,merge,sync) #26
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,26 +34,20 @@ service DingTalkService { | |
|
||
rpc CreateGradeChatGroup(CreateGradeChatGroupRequest) returns (CreateGradeChatGroupResponse) { | ||
option (google.api.http) = { | ||
post: "/dingtalk/chat/v1/create-grade" | ||
post: "/dingtalk/chat/v1/unit/create" | ||
body: "body" | ||
}; | ||
} | ||
|
||
rpc GetGradeChatGroup(GetGradeChatGroupRequest) returns (GetGradeChatGroupResponse) { | ||
option (google.api.http) = { | ||
get: "/dingtalk/chat/v1/get-grade" | ||
}; | ||
} | ||
|
||
rpc MergeGradeChatGroup(MergeGradeChatGroupRequest) returns (MergeGradeChatGroupResponse) { | ||
option (google.api.http) = { | ||
get: "/dingtalk/chat/v1/merge-grade" | ||
get: "/dingtalk/chat/v1/unit/get" | ||
}; | ||
} | ||
|
||
rpc SyncGradeChatGroup(SyncGradeChatGroupRequest) returns (SyncGradeChatGroupResponse) { | ||
option (google.api.http) = { | ||
get: "/dingtalk/chat/v1/sync-grade" | ||
get: "/dingtalk/chat/v1/unit/sync" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Tip Codebase Verification Update generated files and documentation for the endpoint change The endpoint change for
These steps are crucial to ensure consistency across the codebase and prevent potential issues with API consumers. Analysis chainVerify the impact of the endpoint change. The HTTP endpoint change for
Run the following script to verify the usage of the old endpoint: Scripts executedThe following scripts were executed for the analysis: Script: #!/bin/bash
# Description: Verify if the old endpoint is used in the codebase.
# Test: Search for the old endpoint usage. Expect: No occurrences.
rg --type go --type proto --type yaml --type json $'/dingtalk/chat/v1/sync-grade'
Length of output: 110 Script: #!/bin/bash
# Description: Verify the impact of the endpoint change for SyncGradeChatGroup
# Search for the old endpoint without relying on file type recognition
echo "Searching for old endpoint '/dingtalk/chat/v1/sync-grade':"
rg '/dingtalk/chat/v1/sync-grade'
# Search for references to SyncGradeChatGroup
echo "Searching for references to 'SyncGradeChatGroup':"
rg 'SyncGradeChatGroup'
Length of output: 9804 |
||
}; | ||
} | ||
} | ||
|
@@ -120,14 +114,6 @@ message CreateGradeChatGroupResponse { | |
string invite_url = 3; | ||
} | ||
|
||
message MergeGradeChatGroupRequest { | ||
string unitId = 1; | ||
string grade = 2; | ||
string openConversationId = 3; | ||
} | ||
|
||
message MergeGradeChatGroupResponse {} | ||
|
||
message GetGradeChatGroupRequest { | ||
string unitId = 1; | ||
string grade = 2; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tip
Codebase Verification
Update documentation and regenerate code for the endpoint change
The endpoint change from
/dingtalk/chat/v1/create-grade
to/dingtalk/chat/v1/unit/create
requires attention in the following areas:docs/swagger/consultingapis/dingtalk/v1/dingtalk.swagger.json
to reflect the new endpoint.consultingapis/dingtalk/v1/dingtalk.pb.gw.go
to use the new endpoint.Additionally:
No occurrences of the old endpoint were found in other potential client code (Go, JavaScript, TypeScript), which is a good sign. However, ensure all documentation and code generation steps are completed to maintain consistency across the project.
Analysis chain
Verify the impact of the endpoint change.
The HTTP endpoint change for
CreateGradeChatGroup
is consistent with the overall shift towards a unit-based approach. However, please ensure that:Run the following script to verify the usage of the old endpoint:
Scripts executed
The following scripts were executed for the analysis:
Script:
Length of output: 203
Script:
Length of output: 1559