2 Star 0 Fork 0

carlmax_my/vpn-core-go

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
client_login.go 1.57 KB
一键复制 编辑 原始数据 按行查看 历史
carlmax_my 提交于 2025-12-05 14:09 +08:00 . add client id/primary key to client login resp
package control_dto
import "gitee.com/carlmax_my/console-core-go/pkg/api"
// for realm/tenant
type GlobalClientSetting struct {
ClientStatInterval int `json:"client_stat_interval" validate:"gte=300,lte=3600" default:"300"`
DpcInterval int `json:"dpc_interval" validate:"gte=10,lte=3600" default:"30"`
WaitUserFixDpc int64 `json:"wait_user_fix_dpc" validate:"gte=60,lte=600" default:"300"` // 300s, wait for user to fix the dpc issue
SessionLifeTime int `json:"session_life_time" validate:"gte=3600,lte=86400" default:"86400"`
TimeoutCheckingFrequency int `json:"timeout_checking_frequency"`
TimeoutCheckingCount int `json:"timeout_checking_count"`
DisableUsbAfterConn bool `json:"disable_usb_after_conn"`
DisablePrinterAfterConn bool `json:"disable_printer_after_conn"`
UploadProcess bool `json:"upload_process"` //
UploadSoftware bool `json:"upload_software"` //
UploadPatch bool `json:"upload_patch"` //
}
type ClientLoginResponse struct {
api.AuthResponse
DpcProfiles []DpcProfileResp `json:"dpc_profiles"`
Apps []ClientAppResp `json:"apps"`
AppSvc []ClientAppSvcResp `json:"app_svc"`
Policies []SecPolicyResp `json:"policies"`
ClientSetting *GlobalClientSetting `json:"client_setting"`
ClientId string `json:"client_id"` // primary key/uuid in db, not client's machine id
ClientPublicIp string `json:"client_public_ip"` // public ip
ClientGeoIp string `json:"client_geo_ip"` // country/city
// add others bellow
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/carlmax_my/vpn-core-go.git
git@gitee.com:carlmax_my/vpn-core-go.git
carlmax_my
vpn-core-go
vpn-core-go
v0.1.64

搜索帮助