mlogclub
2900e0a3d2
refactor: simplify ExternalInfoMiddleware and update GetExternalInfo to accept user token secret
...
Co-authored-by: Copilot <copilot@github.com >
2026-04-28 10:40:53 +08:00
mlogclub
4ec529e860
feat: add user token secret management for channels
...
- Implemented user token secret generation and retrieval in channel service.
- Added ResetUserTokenSecret method to reset the user token secret for channels.
- Updated channel configuration parsing to include user token secret.
- Enhanced WebSocket service to utilize user token secret for external info retrieval.
- Modified dashboard channel edit component to support user token secret display and reset functionality.
- Introduced API endpoint for resetting user token secret.
- Updated IM and SDK configurations to include user token.
- Added tests for user token verification logic.
2026-04-28 10:15:15 +08:00
mlogclub
d713bd5158
refactor: update Conversation model to include CustomerName, adjust related logic and queries
2026-04-27 19:27:24 +08:00
mlogclub
3a9bc4914a
refactor: remove Subject field from Conversation model and related logic, replace with CustomerName
2026-04-27 19:22:40 +08:00
mlogclub
2d2d2d2051
feat: implement EnsureExternalCustomer method in CustomerService and refactor customer creation logic
2026-04-27 19:09:29 +08:00
mlogclub
b3ef55b04e
refactor: remove ExternalSource and ExternalID from Conversation model and related services, update references to use ChannelID instead
2026-04-27 19:04:10 +08:00
mlogclub
24105781d9
refactor: update visitor references to guest in WebSocket service and related files
2026-04-27 18:52:33 +08:00
mlogclub
c14ade27e4
feat: update ExternalSource enum and labels to include User and adjust related mappings
2026-04-27 18:46:24 +08:00
mlogclub
9d2abcd702
fix: update CustomerSourceTypeWebChat to use ExternalSourceGuest and adjust related mappings
...
Co-authored-by: Copilot <copilot@github.com >
2026-04-27 18:42:04 +08:00
mlogclub
73b78a817d
refactor: remove ExternalType from CustomerIdentity and related structures
2026-04-27 18:40:25 +08:00
mlogclub
f8b44ab127
feat: add ExternalType to ExternalInfo struct and update GetExternalInfo function
2026-04-27 18:22:14 +08:00
mlogclub
feecbdf1d0
feat: add ExternalType to customer identity model and update related services and enums
2026-04-27 18:07:56 +08:00
mlogclub
1bb4608051
feat: add ChannelID to conversation model and update related services and responses
2026-04-27 17:59:23 +08:00
mlogclub
cd9de63860
refactor: remove WeChat MP OAuth handling and related configurations
2026-04-27 16:30:58 +08:00
mlogclub
2220dcb0cb
refactor: simplify WeChat MP OAuth handling and update channel configuration structure
2026-04-27 16:01:00 +08:00
mlogclub
fbabb174d2
feat: add WeChat MP channel support and enhance widget configuration
...
- Updated output path for generated enums to reflect new structure.
- Enhanced ChannelController to handle WeChat MP OAuth authorization and callback.
- Introduced WechatMPChannelConfig DTO for WeChat MP specific configurations.
- Modified WidgetConfigResponse to include channel type and external source.
- Added enums for WeChat MP channel type and external source.
- Implemented OAuth flow for WeChat MP, including state signing and verification.
- Updated frontend forms to accommodate WeChat MP configurations.
- Enhanced API interactions to support WeChat MP external ID and source.
- Updated generated enums to include WeChat MP external source.
2026-04-27 15:42:04 +08:00
mlogclub
12f66bcf27
add wxwork kf account management functionality
2026-04-27 11:43:34 +08:00
mlogclub
e0b15c23d9
update gorm log config
2026-04-26 20:52:22 +08:00
mlogclub
96fde7aaab
refactor: enhance realtime message handling and conversation state management
2026-04-25 17:24:26 +08:00
mlogclub
323db62512
refactor: reorganize WebSocket API route configuration for improved clarity
2026-04-25 10:51:41 +08:00
mlogclub
2c884c13cf
refactor: update WebSocket API routes for improved clarity and structure
2026-04-25 10:50:23 +08:00
mlogclub
270bb83fdb
refactor: remove commented-out API route configuration for clarity
2026-04-25 10:35:18 +08:00
mlogclub
1b3fc8159c
feat: implement ExternalInfoMiddleware and update routing for improved context handling
2026-04-25 10:31:35 +08:00
mlogclub
96168dc6fb
Refactor API routes and controllers for improved structure and clarity
...
- Updated API route structure to remove versioning and consolidate endpoints.
- Refactored routing in `server.go` to use a unified `/api` prefix for all controllers.
- Added new `ChannelController`, `ConversationController`, and `MessageController` to handle specific API functionalities.
- Removed deprecated `OpenImContextMiddleware` and related logic.
- Enhanced channel validation logic in `ChannelService` and `ChannelRepository`.
- Updated frontend API calls to align with new endpoint structure.
2026-04-25 10:27:43 +08:00
mlogclub
f5da8de49d
refactor: remove welcomeText field from WebChannelConfig and related components
2026-04-24 22:27:30 +08:00
mlogclub
ea94837db2
feat: add web channel configuration support and update widget response structure
2026-04-24 22:24:19 +08:00
mlogclub
a262a865a0
refactor: move WxWorkKFChannelConfig to dto package and update references
2026-04-24 21:43:39 +08:00
mlogclub
f55ff09db3
Remove widget
2026-04-24 21:24:24 +08:00
mlogclub
6616b66e72
refactor(Makefile): update targets and directory references for web app integration
2026-04-24 12:04:05 +08:00
mlogclub
7889ecb0d2
feat(auth): update login routes and add WxWork login callback handling
2026-04-24 11:35:29 +08:00
mlogclub
eb353cbbc8
refactor(migration): remove is_system field update and clean up imports in permission sync
2026-04-23 14:43:59 +08:00
mlogclub
155e9173a7
feat(ai-agent): add permissions for AI Agent management and update related logic
2026-04-23 14:26:10 +08:00
mlogclub
06b9c58e55
refactor(role): remove sortNo from role creation and update related logic
2026-04-23 14:06:10 +08:00
mlogclub
4d45d7f037
feat(wxwork): refactor truncateRunes function to be a method of wxWorkNotifyService
2026-04-21 18:08:03 +08:00
mlogclub
beebf131c8
feat(wxwork): update toUsers field type to int64 and enhance comments for clarity
2026-04-21 17:57:53 +08:00
mlogclub
22e1c2e395
feat(wxwork): refactor recipient handling to use slices instead of structs
2026-04-21 17:51:35 +08:00
mlogclub
179c01c0e4
feat(wxwork): update default recipients to remove duplicates and include all users
2026-04-21 17:36:33 +08:00
mlogclub
8c31a9c444
feat(wxwork): remove unused recipient fields from wxWorkNotifyConfig
2026-04-21 17:36:05 +08:00
mlogclub
e5c9eba497
feat(wxwork): refactor recipient handling and replace unique functions with arrs.Distinct
2026-04-21 17:31:33 +08:00
mlogclub
64e75dcdf6
feat(eventbus): implement conversation and ticket assignment event handlers with notifications
2026-04-21 17:11:50 +08:00
mlogclub
6789a8dee0
feat(eventbus): refactor handler storage to use a slice and add tests for handler order
2026-04-21 16:42:29 +08:00
mlogclub
6c005d5daa
feat(eventbus): implement event handling for ticket and conversation assignments
2026-04-21 16:41:12 +08:00
mlogclub
df13d5ced5
feat(eventbus): enhance event handling with error propagation and global bus management
2026-04-21 11:50:43 +08:00
mlogclub
964b2ed6ce
event bus
2026-04-20 22:58:54 +08:00
mlogclub
c5bef3bd4f
企微通知功能对接
2026-04-19 18:11:34 +08:00
mlogclub
60956488e0
refactor(rag): update loadDocumentByID and loadFAQByID to return pointers and simplify error handling
2026-04-19 11:56:03 +08:00
mlogclub
700ec2a38b
refactor(runtime): remove nil checks for receiver in RuntimeTraceCollector methods
...
refactor(factory): enforce skill middleware requirement in NewAgentHandlerService
refactor(reply_interrupt): improve error handling for pending interrupts
2026-04-19 11:40:17 +08:00
mlogclub
3e98e9379c
refactor(runtime): update function signatures to use value receivers for models
2026-04-19 11:38:05 +08:00
mlogclub
680793f527
refactor(runtime): streamline request handling and improve tool preparation methods
2026-04-19 11:19:51 +08:00
mlogclub
92712d882a
feat(tool-filter): implement runtime tool filtering middleware and associated tests
2026-04-19 10:28:18 +08:00