feat(miniprogram): add intracity delivery service APIs#875
Merged
silenceper merged 6 commits intosilenceper:v2from Jan 22, 2026
Merged
Conversation
add getTempFile api
feat(media): add getTempFile api
Add WeChat intracity (same-city) delivery service APIs including: - Store management: Apply, Create, Query, Update store - Payment: StoreCharge, StoreRefund, QueryFlow, BalanceQuery - Order management: PreAddOrder, AddOrder, QueryOrder, CancelOrder Ref: https://developers.weixin.qq.com/miniprogram/dev/platform-capabilities/industry/express/business/intracity_service.html
Contributor
There was a problem hiding this comment.
Pull request overview
This pull request adds comprehensive WeChat intracity (same-city) delivery service APIs to the miniprogram package. The implementation provides a complete set of endpoints for managing stores, payments, balances, and delivery orders for same-city delivery services.
Changes:
- Added
GetIntracity()method to MiniProgram struct for accessing intracity delivery APIs - Implemented 12 new API methods covering store management, payment/balance operations, and order lifecycle
- Defined comprehensive type definitions and request/response structures following WeChat's official API specifications
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| miniprogram/miniprogram.go | Added GetIntracity() accessor method returning Express instance for intracity delivery APIs |
| miniprogram/express/intracity.go | Complete implementation of 12 intracity delivery API methods with supporting types, constants, and data structures |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add WeChat intracity (same-city) delivery service APIs for miniprogram.
Official Documentation: https://developers.weixin.qq.com/miniprogram/dev/platform-capabilities/industry/express/business/intracity_service.html
New APIs
Store Management
IntracityApply- 开通门店权限IntracityCreateStore- 创建门店IntracityQueryStore- 查询门店IntracityUpdateStore- 更新门店Payment & Balance
IntracityStoreCharge- 门店运费充值IntracityStoreRefund- 门店运费退款IntracityQueryFlow- 门店运费流水查询IntracityBalanceQuery- 门店余额查询Order Management
IntracityPreAddOrder- 预下配送单(查询运费)IntracityAddOrder- 创建配送单IntracityQueryOrder- 查询配送单IntracityCancelOrder- 取消配送单IntracityMockNotify- 模拟配送回调(仅用于测试)Usage Example
Checklist
go fmtandgo vetpassgo build ./...succeeds