Skip to content

Commit

Permalink
Updated Models (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
AshuSoni-crest authored Aug 6, 2021
1 parent b5eff06 commit 0994ed7
Show file tree
Hide file tree
Showing 13 changed files with 18 additions and 18 deletions.
8 changes: 4 additions & 4 deletions models/model_Domain.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ type Soa struct {
}

type DomainAttributes struct {
Name []string `json:"names"`
Name []string `json:"names,omitempty"`
TypeID int `json:"typeId,omitempty"`
HasGtdRegions bool `json:"hasGtdRegions,omitempty"`
HasGeoIP bool `json:"hasGeoIP,omitempty"`
HasGtdRegions bool `json:"hasGtdRegions"`
HasGeoIP bool `json:"hasGeoIP"`
NameserverGroup string `json:"nameserverGroup,omitempty"`
VanityNameServer string `json:"vanityNameServer"`
VanityNameServer string `json:"vanityNameServer,omitempty"`
Nameservers []string `json:"nameservers,omitempty"`
Note string `json:"note,omitempty"`
Version int `json:"version,omitempty"`
Expand Down
4 changes: 2 additions & 2 deletions models/model_SRV.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package models
type SRVAttributes struct {
Name string `json:"name,omitempty"`
TTL int `json:"ttl"`
NoAnswer bool `json:"noAnswer,omitempty"`
NoAnswer bool `json:"noAnswer"`
Note string `json:"note,omitempty"`
GtdRegion int `json:"gtdRegion,omitempty"`
Type string `json:"type,omitempty"`
Expand All @@ -15,5 +15,5 @@ type RoundRobinSRV struct {
Port int `json:"port,omitempty"`
Priority int `json:"priority,omitempty"`
Weight int `json:"weight,omitempty"`
DisableFlag bool `json:"disableflag,omitempty"`
DisableFlag bool `json:"disableflag"`
}
2 changes: 1 addition & 1 deletion models/model_caa.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ type RoundRobinCaa struct {
type CaaAttributes struct {
Name string `json:"name,omitempty"`
TTL int `json:"ttl,omitempty"`
NoAnswer bool `json:"noanswer,omitempty"`
NoAnswer bool `json:"noanswer"`
Note string `json:"note,omitempty"`
GtdRegion int `json:"gtdregion,omitempty"`
Type string `json:"type,omitempty"`
Expand Down
2 changes: 1 addition & 1 deletion models/model_cert.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ type RRCert struct {
type CertAttributes struct {
Name string `json:"name,omitempty"`
TTL int `json:"ttl"`
NoAnswer bool `json:"noanswer,omitempty"`
NoAnswer bool `json:"noanswer"`
Note string `json:"note,omitempty"`
GtdRegion int `json:"gtdregion,omitempty"`
Type string `json:"type,omitempty"`
Expand Down
2 changes: 1 addition & 1 deletion models/model_hinfo.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ type RR struct {
type HinfoAttributes struct {
Name string `json:"name,omitempty"`
TTL int `json:"ttl"`
NoAnswer bool `json:"noanswer,omitempty"`
NoAnswer bool `json:"noanswer"`
Note string `json:"note,omitempty"`
GtdRegion int `json:"gtdregion,omitempty"`
Type string `json:"type,omitempty"`
Expand Down
2 changes: 1 addition & 1 deletion models/model_ipfilter.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ type IPFilterAttributes struct {
// Id int `json:"id,omitempty"`
Name string `json:"name"`
GeoIPContinents []string `json:"geoipContinents,omitempty"`
GeoIPRegions []string `json:"geoipRegions,omitempty"`
GeoIPRegions []string `json:"regions,omitempty"`
GeoIPCountries []string `json:"geoipCountries,omitempty"`
Asn []int `json:"asn,omitempty"`
FilterRulesLimit int `json:"filterRulesLimit,omitempty"`
Expand Down
2 changes: 1 addition & 1 deletion models/model_mx.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ type RoundR struct {
type MXAttributes struct {
Name string `json:"name,omitempty"`
TTL int `json:"ttl"`
NoAnswer bool `json:"noanswer,omitempty"`
NoAnswer bool `json:"noanswer"`
Note string `json:"note,omitempty"`
GtdRegion int `json:"gtdregion,omitempty"`
Type string `json:"type,omitempty"`
Expand Down
2 changes: 1 addition & 1 deletion models/model_naptr.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package models
type NAPTRAttributes struct {
Name string `json:"name,omitempty"`
Ttl int `json:"ttl"`
NoAnswer bool `json:"noAnswer,omitempty"`
NoAnswer bool `json:"noAnswer"`
RoundRobin []interface{} `json:"roundRobin"`
Note string `json:"note,omitempty"`
GtdRegion int `json:"gtdRegion,omitempty"`
Expand Down
2 changes: 1 addition & 1 deletion models/model_ptr.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ type RRPtr struct {
type PtrAttributes struct {
Name string `json:"name,omitempty"`
TTL int `json:"ttl"`
NoAnswer string `json:"noanswer,omitempty"`
NoAnswer bool `json:"noanswer"`
Note string `json:"note,omitempty"`
GtdRegion int `json:"gtdregion,omitempty"`
Type string `json:"type,omitempty"`
Expand Down
2 changes: 1 addition & 1 deletion models/model_rp.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ type RoundRobinRp struct {
type RPAttributes struct {
Name string `json:"name,omitempty"`
TTL int `json:"ttl,omitempty"`
NoAnswer bool `json:"noanswer,omitempty"`
NoAnswer bool `json:"noanswer"`
Note string `json:"note,omitempty"`
GtdRegion int `json:"gtdregion,omitempty"`
Type string `json:"type,omitempty"`
Expand Down
2 changes: 1 addition & 1 deletion models/model_spf.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ type RRSpf struct {
type SpfAttributes struct {
Name string `json:"name,omitempty"`
TTL int `json:"ttl"`
NoAnswer bool `json:"noanswer,omitempty"`
NoAnswer bool `json:"noanswer"`
Note string `json:"note,omitempty"`
GtdRegion int `json:"gtdregion,omitempty"`
Type string `json:"type,omitempty"`
Expand Down
2 changes: 1 addition & 1 deletion models/model_txt.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ type RRTxt struct {
type TxtAttributes struct {
Name string `json:"name,omitempty"`
TTL int `json:"ttl"`
NoAnswer string `json:"noanswer,omitempty"`
NoAnswer string `json:"noanswer"`
Note string `json:"note,omitempty"`
GtdRegion int `json:"gtdregion,omitempty"`
Type string `json:"type,omitempty"`
Expand Down
4 changes: 2 additions & 2 deletions models/models_ns.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package models
type NSAttributes struct {
Name string `json:"name,omitempty"`
Ttl int `json:"ttl"`
NoAnswer bool `json:"noAnswer,omitempty"`
NoAnswer bool `json:"noAnswer"`
RoundRobin []interface{} `json:"roundRobin"`
Note string `json:"note,omitempty"`
GtdRegion int `json:"gtdRegion,omitempty"`
Expand All @@ -12,5 +12,5 @@ type NSAttributes struct {

type RoundRobinNS struct {
Value string `json:"value,omitempty"`
DisableFlag bool `json:"disableFlag,omitempty"`
DisableFlag bool `json:"disableFlag"`
}

0 comments on commit 0994ed7

Please sign in to comment.