mirror of
https://gitee.com/samwaf/SamWaf.git
synced 2025-12-06 06:58:54 +08:00
30 lines
777 B
Go
30 lines
777 B
Go
package model
|
|
|
|
import "time"
|
|
|
|
/*
|
|
*
|
|
注册信息
|
|
*/
|
|
type RegistrationInfo struct {
|
|
Version string `json:"version"`
|
|
Username string `json:"username"`
|
|
MemberType string `json:"member_type"`
|
|
MachineID string `json:"machine_id"`
|
|
ExpiryDate time.Time `json:"expiry_date"`
|
|
IsExpiry bool `json:"is_expiry"`
|
|
}
|
|
|
|
/*
|
|
*
|
|
机器信息
|
|
*/
|
|
type MachineInfo struct {
|
|
Version string `json:"version"`
|
|
MachineID string `json:"machine_id"`
|
|
ClientServerName string `json:"client_server_name"` // 客户端-自定义名称
|
|
ClientTenantId string `json:"client_tenant_id"` // 客户端-租户ID
|
|
ClientUserCode string `json:"client_user_code"` // 客户端-用户码
|
|
OtherFeature string `json:"other_feature"` // 预留其他特征
|
|
}
|