|
@@ -36,6 +36,10 @@ type TimelineEvent struct {
|
|
|
LocalFilePath string `gorm:"size:500" json:"localFilePath,omitempty"`
|
|
LocalFilePath string `gorm:"size:500" json:"localFilePath,omitempty"`
|
|
|
VoiceStartOffsetMs *int64 `json:"voiceStartOffsetMs,omitempty"`
|
|
VoiceStartOffsetMs *int64 `json:"voiceStartOffsetMs,omitempty"`
|
|
|
VoiceEndOffsetMs *int64 `json:"voiceEndOffsetMs,omitempty"`
|
|
VoiceEndOffsetMs *int64 `json:"voiceEndOffsetMs,omitempty"`
|
|
|
|
|
+ LocationName string `gorm:"size:200" json:"locationName,omitempty"`
|
|
|
|
|
+ LocationAddress string `gorm:"size:500" json:"locationAddress,omitempty"`
|
|
|
|
|
+ Latitude *float64 `json:"latitude,omitempty"`
|
|
|
|
|
+ Longitude *float64 `json:"longitude,omitempty"`
|
|
|
CreatedAt time.Time `gorm:"autoCreateTime" json:"createdAt"`
|
|
CreatedAt time.Time `gorm:"autoCreateTime" json:"createdAt"`
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -68,21 +72,29 @@ type CreateSessionRequest struct {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
type CreateEventSubSchema struct {
|
|
type CreateEventSubSchema struct {
|
|
|
- ClientID string `json:"clientId" binding:"required"`
|
|
|
|
|
- RelativeTimeMs int64 `json:"relativeTimeMs"`
|
|
|
|
|
- EventType string `json:"eventType" binding:"required"`
|
|
|
|
|
- TextContent string `json:"textContent"`
|
|
|
|
|
- LocalFilePath string `json:"localFilePath"`
|
|
|
|
|
- VoiceStartOffsetMs *int64 `json:"voiceStartOffsetMs"`
|
|
|
|
|
- VoiceEndOffsetMs *int64 `json:"voiceEndOffsetMs"`
|
|
|
|
|
|
|
+ ClientID string `json:"clientId" binding:"required"`
|
|
|
|
|
+ RelativeTimeMs int64 `json:"relativeTimeMs"`
|
|
|
|
|
+ EventType string `json:"eventType" binding:"required"`
|
|
|
|
|
+ TextContent string `json:"textContent"`
|
|
|
|
|
+ LocalFilePath string `json:"localFilePath"`
|
|
|
|
|
+ VoiceStartOffsetMs *int64 `json:"voiceStartOffsetMs"`
|
|
|
|
|
+ VoiceEndOffsetMs *int64 `json:"voiceEndOffsetMs"`
|
|
|
|
|
+ LocationName string `json:"locationName"`
|
|
|
|
|
+ LocationAddress string `json:"locationAddress"`
|
|
|
|
|
+ Latitude *float64 `json:"latitude"`
|
|
|
|
|
+ Longitude *float64 `json:"longitude"`
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
type CreateEventRequest struct {
|
|
type CreateEventRequest struct {
|
|
|
- ClientID string `json:"clientId" binding:"required"`
|
|
|
|
|
- RelativeTimeMs int64 `json:"relativeTimeMs"`
|
|
|
|
|
- EventType string `json:"eventType" binding:"required"`
|
|
|
|
|
- TextContent string `json:"textContent"`
|
|
|
|
|
- LocalFilePath string `json:"localFilePath"`
|
|
|
|
|
- VoiceStartOffsetMs *int64 `json:"voiceStartOffsetMs"`
|
|
|
|
|
- VoiceEndOffsetMs *int64 `json:"voiceEndOffsetMs"`
|
|
|
|
|
|
|
+ ClientID string `json:"clientId" binding:"required"`
|
|
|
|
|
+ RelativeTimeMs int64 `json:"relativeTimeMs"`
|
|
|
|
|
+ EventType string `json:"eventType" binding:"required"`
|
|
|
|
|
+ TextContent string `json:"textContent"`
|
|
|
|
|
+ LocalFilePath string `json:"localFilePath"`
|
|
|
|
|
+ VoiceStartOffsetMs *int64 `json:"voiceStartOffsetMs"`
|
|
|
|
|
+ VoiceEndOffsetMs *int64 `json:"voiceEndOffsetMs"`
|
|
|
|
|
+ LocationName string `json:"locationName"`
|
|
|
|
|
+ LocationAddress string `json:"locationAddress"`
|
|
|
|
|
+ Latitude *float64 `json:"latitude"`
|
|
|
|
|
+ Longitude *float64 `json:"longitude"`
|
|
|
}
|
|
}
|