🎨新增客户端状态字段
This commit is contained in:
25
model/vo/client.go
Normal file
25
model/vo/client.go
Normal file
@@ -0,0 +1,25 @@
|
||||
package vo
|
||||
|
||||
import (
|
||||
"wireguard-dashboard/model/entity"
|
||||
"wireguard-dashboard/model/template_data"
|
||||
)
|
||||
|
||||
type Client struct {
|
||||
Id string `json:"id"`
|
||||
Name string `json:"name"`
|
||||
Email string `json:"email"`
|
||||
SubnetRange string `json:"subnetRange"`
|
||||
IpAllocation string `json:"ipAllocation"`
|
||||
AllowedIPS string `json:"allowedIPS"`
|
||||
ExtraAllowedIPS string `json:"extraAllowedIPS"`
|
||||
Endpoint string `json:"endpoint"`
|
||||
UseServerDNS int `json:"useServerDNS"`
|
||||
EnableAfterCreation int `json:"enableAfterCreation"`
|
||||
KeysStr string `json:"-" gorm:"keys_str"`
|
||||
Keys template_data.Keys `json:"keys" gorm:"-"`
|
||||
CreateUser string `json:"createUser"`
|
||||
Enabled bool `json:"enabled"`
|
||||
CreatedAt entity.JsonTime `json:"createAt"`
|
||||
UpdatedAt entity.JsonTime `json:"updatedAt"`
|
||||
}
|
Reference in New Issue
Block a user