Refactor client.descriptionName
to client.name
This commit is contained in:
@@ -26,7 +26,7 @@ type Client struct {
|
||||
TimestampCreated time.Time
|
||||
AgentModel string
|
||||
AgentVersion string
|
||||
DescriptionName *string
|
||||
Name *string
|
||||
}
|
||||
|
||||
func (c Client) JSON() ClientJSON {
|
||||
@@ -38,7 +38,7 @@ func (c Client) JSON() ClientJSON {
|
||||
TimestampCreated: c.TimestampCreated.Format(time.RFC3339Nano),
|
||||
AgentModel: c.AgentModel,
|
||||
AgentVersion: c.AgentVersion,
|
||||
DescriptionName: c.DescriptionName,
|
||||
Name: c.Name,
|
||||
}
|
||||
}
|
||||
|
||||
@@ -50,7 +50,7 @@ type ClientJSON struct {
|
||||
TimestampCreated string `json:"timestamp_created"`
|
||||
AgentModel string `json:"agent_model"`
|
||||
AgentVersion string `json:"agent_version"`
|
||||
DescriptionName *string `json:"description_name"`
|
||||
Name *string `json:"name"`
|
||||
}
|
||||
|
||||
type ClientDB struct {
|
||||
@@ -61,7 +61,7 @@ type ClientDB struct {
|
||||
TimestampCreated int64 `db:"timestamp_created"`
|
||||
AgentModel string `db:"agent_model"`
|
||||
AgentVersion string `db:"agent_version"`
|
||||
DescriptionName *string `db:"description_name"`
|
||||
Name *string `db:"name"`
|
||||
}
|
||||
|
||||
func (c ClientDB) Model() Client {
|
||||
@@ -73,7 +73,7 @@ func (c ClientDB) Model() Client {
|
||||
TimestampCreated: timeFromMilli(c.TimestampCreated),
|
||||
AgentModel: c.AgentModel,
|
||||
AgentVersion: c.AgentVersion,
|
||||
DescriptionName: c.DescriptionName,
|
||||
Name: c.Name,
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -5,7 +5,7 @@ package models
|
||||
import "gogs.mikescher.com/BlackForestBytes/goext/langext"
|
||||
import "gogs.mikescher.com/BlackForestBytes/goext/enums"
|
||||
|
||||
const ChecksumEnumGenerator = "814434d6d179eec7fb90b380db859daf6051b5d767d83a20633f9ef78d66e857" // GoExtVersion: 0.0.463
|
||||
const ChecksumEnumGenerator = "08404cad6879118878e2b64db01bb6bf54cda9d51e3d3ff91b239e9a8459fecd" // GoExtVersion: 0.0.463
|
||||
|
||||
// ================================ ClientType ================================
|
||||
//
|
||||
|
@@ -15,7 +15,7 @@ import "reflect"
|
||||
import "regexp"
|
||||
import "strings"
|
||||
|
||||
const ChecksumCharsetIDGenerator = "814434d6d179eec7fb90b380db859daf6051b5d767d83a20633f9ef78d66e857" // GoExtVersion: 0.0.463
|
||||
const ChecksumCharsetIDGenerator = "08404cad6879118878e2b64db01bb6bf54cda9d51e3d3ff91b239e9a8459fecd" // GoExtVersion: 0.0.463
|
||||
|
||||
const idlen = 24
|
||||
|
||||
|
Reference in New Issue
Block a user