From 20066172c31ac099c4aefdfe659d795693864ac4 Mon Sep 17 00:00:00 2001 From: ila <2+ila@noreply.git.ilapage.cn> Date: Thu, 13 Aug 2026 12:23:53 +0800 Subject: [PATCH] feat: complete split camera credentials (#50) --- Sense/server/app/sense/device/types.go | 28 +++++++++++++++----------- 1 file changed, 16 insertions(+), 12 deletions(-) diff --git a/Sense/server/app/sense/device/types.go b/Sense/server/app/sense/device/types.go index 6dc773d..74b0fa4 100644 --- a/Sense/server/app/sense/device/types.go +++ b/Sense/server/app/sense/device/types.go @@ -13,18 +13,21 @@ const ( ) type Device struct { - ID string `json:"id"` - Name string `json:"name"` - Location string `json:"location"` - Modality string `json:"modality"` - Capabilities []string `json:"capabilities"` - Status string `json:"status"` - AdapterStatus string `json:"adapter_status"` - CredentialConfigured bool `json:"credential_configured"` - CredentialCiphertext []byte `json:"-"` - Version int64 `json:"version"` - CreatedAt time.Time `json:"created_at"` - UpdatedAt time.Time `json:"updated_at"` + ID string `json:"id"` + Name string `json:"name"` + Location string `json:"location"` + Modality string `json:"modality"` + Capabilities []string `json:"capabilities"` + Status string `json:"status"` + AdapterStatus string `json:"adapter_status"` + CredentialConfigured bool `json:"credential_configured"` + CredentialCiphertext []byte `json:"-"` + RTSPCredentialConfigured bool `json:"rtsp_credential_configured"` + RTSPCredentialSameAsONVIF bool `json:"rtsp_credential_same_as_onvif"` + RTSPCredentialCiphertext []byte `json:"-"` + Version int64 `json:"version"` + CreatedAt time.Time `json:"created_at"` + UpdatedAt time.Time `json:"updated_at"` } type ListFilter struct { @@ -39,3 +42,4 @@ type Page struct { Page int `json:"page"` PageSize int `json:"page_size"` } +