feat: 收口视频访问与摄像头密钥输出

This commit is contained in:
weijuesen
2026-08-14 00:07:52 +08:00
parent 440cf803e4
commit 1a29def480
14 changed files with 494 additions and 78 deletions
+2 -2
View File
@@ -116,7 +116,7 @@ type Camera struct {
RtspURL *string `gorm:"column:rtsp_url;size:512" json:"rtspUrl,omitempty"`
HTTPURL *string `gorm:"column:http_url;size:512" json:"httpUrl,omitempty"`
Username *string `gorm:"size:64" json:"username,omitempty"`
PasswordEnc *string `gorm:"column:password_enc;size:255" json:"passwordEnc,omitempty"`
PasswordEnc *string `gorm:"column:password_enc;size:255" json:"-"`
Position *string `gorm:"size:255" json:"position,omitempty"`
Resolution *string `gorm:"size:32" json:"resolution,omitempty"`
FPS *int `gorm:"type:int" json:"fps,omitempty"`
@@ -124,7 +124,7 @@ type Camera struct {
GbDeviceID *string `gorm:"column:gb_device_id;size:20" json:"gbDeviceId,omitempty"`
GbChannelID *string `gorm:"column:gb_channel_id;size:20" json:"gbChannelId,omitempty"`
GbAuthID *string `gorm:"column:gb_auth_id;size:20" json:"gbAuthId,omitempty"`
GbAuthPassword *string `gorm:"column:gb_auth_password;size:255" json:"gbAuthPassword,omitempty"`
GbAuthPassword *string `gorm:"column:gb_auth_password;size:255" json:"-"`
GbStreamType *string `gorm:"column:gb_stream_type;size:10" json:"gbStreamType,omitempty"`
GbTransport *string `gorm:"column:gb_transport;size:10" json:"gbTransport,omitempty"`
GbAlarmChannelID *string `gorm:"column:gb_alarm_channel_id;size:20" json:"gbAlarmChannelId,omitempty"`