Skip to content

OneBotApi支持指定method与自定义的URL操作; 调整部分依赖配置 #208

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 1 commit into from
May 18, 2025

Conversation

ForliyScarlet
Copy link
Member

@ForliyScarlet ForliyScarlet commented May 18, 2025

close #205

@ForliyScarlet ForliyScarlet added the 特性 New feature or request label May 18, 2025
@ForteScarlet ForteScarlet requested a review from Copilot May 18, 2025 13:42
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

A PR to support custom HTTP methods and URL operations in OneBotApi while adjusting dependency configurations.

  • Introduces customizable HTTP methods and URL resolution via new API properties and functions in OneBotApi.
  • Updates Gradle dependency configurations to expose key libraries as API dependencies.
  • Adds a new test case to verify custom GET API functionality.

Reviewed Changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated no comments.

Show a summary per file
File Description
simbot-component-onebot-v11-message/build.gradle.kts Changed kotlin serialization dependency from implementation to api.
simbot-component-onebot-v11-event/build.gradle.kts Updated kotlin serialization dependency to api for consistent public access.
simbot-component-onebot-v11-core/api/OneBotApi.kt Added properties and functions (method, resolveUrlAction, resolveUrlExtensions) for customizable API requests.
simbot-component-onebot-v11-core/src/commonTest/kotlin/love/forte/simbot/component/onebot/v11/core/api/ApiRequestTests.kt Added custom GET API test verifying method and URL parameter functionality.
simbot-component-onebot-v11/simbot-component-onebot-v11-common/build.gradle.kts Adjusted dependency exposure from implementation to api for common annotations.
simbot-component-onebot-common/build.gradle.kts Removed redundant compileOnly dependency in jvmMain.
Comments suppressed due to low confidence (3)

simbot-component-onebot-common/build.gradle.kts:59

  • The removal of the jvmMain compileOnly dependency may affect build configuration; please verify that this dependency is no longer required for proper module compilation.
jvmMain { dependencies { compileOnly(libs.simbot.api) } }

simbot-component-onebot-v11/simbot-component-onebot-v11-message/build.gradle.kts:66

  • Changing the serialization dependency from 'implementation' to 'api' exposes it to consumers; please confirm that this design decision is intended for proper dependency management.
api(libs.kotlinx.serialization.json)

simbot-component-onebot-v11/simbot-component-onebot-v11-event/build.gradle.kts:60

  • Ensure that updating the serialization dependency to 'api' in the event module aligns with the overall design, providing necessary exposure for dependent modules.
api(libs.kotlinx.serialization.json)

@ForliyScarlet
Copy link
Member Author

Qodana Community for JVM

It seems all right 👌

No new problems were found according to the checks applied

💡 Qodana analysis was run in the pull request mode: only the changed files were checked
☁️ View the detailed Qodana report

Contact Qodana team

Contact us at [email protected]

@ForteScarlet ForteScarlet merged commit e2ffba8 into dev/main May 18, 2025
4 checks passed
@ForteScarlet ForteScarlet deleted the dev/api-methods branch May 18, 2025 14:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
特性 New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants