mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2026-01-07 22:10:21 +08:00
feat(types): add session form interfaces for agent operations
Add BaseSessionForm, CreateSessionForm and UpdateSessionForm interfaces to support session management functionality
This commit is contained in:
parent
a4c2ed5328
commit
7b428be93d
@ -141,6 +141,16 @@ export interface UpdateAgentForm extends Partial<BaseAgentForm> {
|
|||||||
|
|
||||||
export type AgentForm = AddAgentForm | UpdateAgentForm
|
export type AgentForm = AddAgentForm | UpdateAgentForm
|
||||||
|
|
||||||
|
export interface BaseSessionForm extends AgentBase {}
|
||||||
|
|
||||||
|
export interface CreateSessionForm extends BaseSessionForm {
|
||||||
|
id?: never
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface UpdateSessionForm extends Partial<BaseSessionForm> {
|
||||||
|
id: string
|
||||||
|
}
|
||||||
|
|
||||||
// ------------------------
|
// ------------------------
|
||||||
// API Data Transfer Object
|
// API Data Transfer Object
|
||||||
// ------------------------
|
// ------------------------
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user