4ec529e860
- 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.
29 lines
596 B
Go
29 lines
596 B
Go
package request
|
|
|
|
type CreateChannelRequest struct {
|
|
ChannelType string `json:"channelType"`
|
|
AIAgentID int64 `json:"aiAgentId"`
|
|
Name string `json:"name"`
|
|
ConfigJSON string `json:"configJson"`
|
|
Status int `json:"status"`
|
|
Remark string `json:"remark"`
|
|
}
|
|
|
|
type UpdateChannelRequest struct {
|
|
ID int64 `json:"id"`
|
|
CreateChannelRequest
|
|
}
|
|
|
|
type UpdateChannelStatusRequest struct {
|
|
ID int64 `json:"id"`
|
|
Status int `json:"status"`
|
|
}
|
|
|
|
type DeleteChannelRequest struct {
|
|
ID int64 `json:"id"`
|
|
}
|
|
|
|
type ResetChannelUserTokenSecretRequest struct {
|
|
ID int64 `json:"id"`
|
|
}
|