mirror of
https://github.com/langgenius/dify-plugin-daemon.git
synced 2026-08-25 13:19:40 -04:00
24 lines
696 B
Go
24 lines
696 B
Go
package plugin_entities
|
|
|
|
type InvokePluginUserIdentity struct {
|
|
TenantId string `json:"tenant_id" validate:"required" uri:"tenant_id"`
|
|
UserId string `json:"user_id"`
|
|
}
|
|
|
|
type BasePluginIdentifier struct {
|
|
PluginID string `json:"plugin_id"`
|
|
}
|
|
|
|
type InvokePluginRequest[T any] struct {
|
|
InvokePluginUserIdentity
|
|
BasePluginIdentifier
|
|
|
|
UniqueIdentifier PluginUniqueIdentifier `json:"unique_identifier"`
|
|
ConversationID *string `json:"conversation_id"`
|
|
MessageID *string `json:"message_id"`
|
|
AppID *string `json:"app_id"`
|
|
EndpointID *string `json:"endpoint_id"`
|
|
|
|
Data T `json:"data" validate:"required"`
|
|
}
|