package dao import "lone-services/pkg/utils" // SettingCreate 权限表 type SettingCreate struct { Id int64 `gorm:"column:id;type:int;not null;autoIncrement" json:"id"` UserId int64 `gorm:"column:user_id;type:int;not null" json:"user_id"` // 用户ID Lang int32 `gorm:"column:lang;type:tinyint(1);not null;default:1" json:"lang"` // 语言:1为中文,2为英文 Wifi int32 `gorm:"column:wifi;type:tinyint(1);not null;default:2" json:"wifi"` // wifi:1为设置过,2为没有设置过 Screen int32 `gorm:"column:screen;type:tinyint;not null" json:"screen"` // 屏幕亮度 Sound int32 `gorm:"column:sound;type:tinyint;not null" json:"sound"` // 声音 LightOpen int32 `gorm:"column:light_open;type:tinyint(1);not null;default:1" json:"light_open"` // 是否开灯,1为开灯,2为不开灯 LightWorkTime string `gorm:"column:light_work_time;type:char(50);default:NULL" json:"light_work_time"` // 灯工作时间 ScreenSleepTime int32 `gorm:"column:screen_sleep_time;type:smallint;default:NULL" json:"screen_sleep_time"` // 屏幕休眠时间 LightBrightness int32 `gorm:"column:light_brightness;type:tinyint;default:NULL" json:"light_brightness"` // 灯亮度 } type SettingInfo struct { Id int64 `gorm:"column:id;type:int;not null;autoIncrement" json:"id"` UserId int64 `gorm:"column:user_id;type:int;not null" json:"user_id"` // 用户ID Lang int32 `gorm:"column:lang;type:tinyint(1);not null;default:1" json:"lang"` // 语言:1为中文,2为英文 Wifi int32 `gorm:"column:wifi;type:tinyint(1);not null;default:2" json:"wifi"` // wifi:1为设置过,2为没有设置过 Screen int32 `gorm:"column:screen;type:tinyint;not null" json:"screen"` // 屏幕亮度 Sound int32 `gorm:"column:sound;type:tinyint;not null" json:"sound"` // 声音 LightOpen int32 `gorm:"column:light_open;type:tinyint(1);not null;default:1" json:"light_open"` // 是否开灯,1为开灯,2为不开灯 LightWorkTime string `gorm:"column:light_work_time;type:char(50);default:NULL" json:"light_work_time"` // 灯工作时间 ScreenSleepTime int32 `gorm:"column:screen_sleep_time;type:smallint;default:NULL" json:"screen_sleep_time"` // 屏幕休眠时间 LightBrightness int32 `gorm:"column:light_brightness;type:tinyint;default:NULL" json:"light_brightness"` // 灯亮度 CreateTime utils.CustomTime `json:"create_time"` }