diff --git a/modules/apikey/model/ApiKey.go b/modules/apikey/model/ApiKey.go new file mode 100644 index 0000000..229559d --- /dev/null +++ b/modules/apikey/model/ApiKey.go @@ -0,0 +1,14 @@ +package model + +import ( + timestamp "git.loafle.net/overflow/overflow_commons_go/modules/timestamp/model" + domain "git.loafle.net/overflow/overflow_commons_go/modules/domain/model" + "encoding/json" +) + +type ApiKey struct { + Id json.Number `json:"id,Number,omitempty"` + ApiKey string `json:"apiKey,omitempty"` + Date timestamp.Timestamp `json:"createDate,omitempty"` + Domain *domain.Domain `json:"domain,omitempty"` +} \ No newline at end of file diff --git a/modules/auth/model/AuthCrawler.go b/modules/auth/model/AuthCrawler.go new file mode 100644 index 0000000..d99dbc7 --- /dev/null +++ b/modules/auth/model/AuthCrawler.go @@ -0,0 +1,16 @@ +package model + +import ( + "git.loafle.net/overflow/overflow_commons_go/modules/timestamp/model" + "encoding/json" + meta "git.loafle.net/overflow/overflow_commons_go/modules/meta/model" + target "git.loafle.net/overflow/overflow_commons_go/modules/target/model" +) + +type AuthCrawler struct { + Id json.Number `json:"id,Number,omitempty"` + Crawler *meta.MetaCrawler `json:"crawler,omitempty"` + Target *target.Target `json:"target,omitempty"` + AuthJson string `json:"authJson,omitempty"` + CreateDate timestamp.Timestamp `json:"createDate,omitempty"` +} \ No newline at end of file diff --git a/modules/commons/model/PageParams.go b/modules/commons/model/PageParams.go new file mode 100644 index 0000000..949aeea --- /dev/null +++ b/modules/commons/model/PageParams.go @@ -0,0 +1,8 @@ +package model + +type PageParams struct { + PageNo int `json:"pageNo,omitempty"` + CountPerPage int `json:"countPerPage,omitempty"` + SortCol string `json:"sortCol,omitempty"` + SortDirection string `json:"sortDirection,omitempty"` +} \ No newline at end of file diff --git a/modules/commons/model/PublishMessage.go b/modules/commons/model/PublishMessage.go new file mode 100644 index 0000000..6b20a3c --- /dev/null +++ b/modules/commons/model/PublishMessage.go @@ -0,0 +1,12 @@ +package model + +type PublishMessage struct { + Targets []string `json:"targets,omitempty"` + Message *PublishMessageBody `json:"message,omitempty"` +} + + +type PublishMessageBody struct { + Method string `json:"method,omitempty"` + Params []string `json:"params,omitempty"` +} \ No newline at end of file diff --git a/modules/commons/model/SessionMetadata.go b/modules/commons/model/SessionMetadata.go new file mode 100644 index 0000000..5236751 --- /dev/null +++ b/modules/commons/model/SessionMetadata.go @@ -0,0 +1,6 @@ +package model + +type SessionMetadata struct { + + +} \ No newline at end of file diff --git a/modules/discovery/model/DiscoveryStartInfo.go b/modules/discovery/model/DiscoveryStartInfo.go new file mode 100644 index 0000000..2ba5970 --- /dev/null +++ b/modules/discovery/model/DiscoveryStartInfo.go @@ -0,0 +1,10 @@ +package model + +type DiscoveryStartInfo struct { + StartIp string `json:"startIp,omitempty"` + EndIp string `json:"endIP,omitempty"` + ExcludeIp string `json:"excludeIp,omitempty"` + StartPort string `json:"startPort,omitempty"` + EndPort string `json:"endPort,omitempty"` + Services []string `json:"services,omitempty"` +} \ No newline at end of file diff --git a/modules/discovery/model/Host.go b/modules/discovery/model/Host.go new file mode 100644 index 0000000..5f1ad7e --- /dev/null +++ b/modules/discovery/model/Host.go @@ -0,0 +1,18 @@ +package model + +import ( + "git.loafle.net/overflow/overflow_commons_go/modules/timestamp/model" + "encoding/json" +) + +type Host struct { + Id json.Number `json:"id,Number,omitempty"` + Ip int64 `json:"ip,omitempty"` + Mac int64 `json:"mac,omitempty"` + CreateDate timestamp.Timestamp `json:"createDate,omitempty"` + UpdateDate timestamp.Timestamp `json:"updateDate,omitempty"` + Os string `json:"os,omitempty"` + Target bool `json:"target,omitempty"` + Ports []*Port `json:"ports,omitempty"` + +} \ No newline at end of file diff --git a/modules/discovery/model/Port.go b/modules/discovery/model/Port.go new file mode 100644 index 0000000..6416e63 --- /dev/null +++ b/modules/discovery/model/Port.go @@ -0,0 +1,16 @@ +package model + +import ( + "git.loafle.net/overflow/overflow_commons_go/modules/timestamp/model" + "encoding/json" +) + +type Port struct { + Id json.Number `json:"id,Number,omitempty"` + Host *Host `json:"host,omitempty"` + PortType string `json:"portType,omitempty"` + PortNumber json.Number `json:"portNumber,omitempty"` + Services []Service `json:"services,omitempty"` + CreateDate timestamp.Timestamp `json:"createDate,omitempty"` + UpdateDate timestamp.Timestamp `json:"updateDate,omitempty"` +} \ No newline at end of file diff --git a/modules/discovery/model/Service.go b/modules/discovery/model/Service.go new file mode 100644 index 0000000..f6d4ee6 --- /dev/null +++ b/modules/discovery/model/Service.go @@ -0,0 +1,17 @@ +package model + +import ( + + "git.loafle.net/overflow/overflow_commons_go/modules/timestamp/model" + "encoding/json" +) + +type Service struct { + Id json.Number `json:"id,Number,omitempty"` + Port *Port `json:"port,omitempty"` + PortType string `json:"portType,omitempty"` + ServiceName string `json:"serviceName,omitempty"` + UpdateDate timestamp.Timestamp `json:"updateDate,omitempty"` + Target bool `json:"target,omitempty"` + +} \ No newline at end of file diff --git a/modules/discovery/model/Zone.go b/modules/discovery/model/Zone.go new file mode 100644 index 0000000..a498325 --- /dev/null +++ b/modules/discovery/model/Zone.go @@ -0,0 +1,13 @@ +package model + +import "encoding/json" + +type Zone struct { + Id json.Number `json:"id,Number,omitempty"` + Network string `json:"network,omitempty"` + Ip string `json:"ip,omitempty"` + Iface string `json:"iface,omitempty"` + Mac string `json:"mac,omitempty"` + FirstScanRage json.Number `json:"firstScanRange,omitempty"` + LastScanRange json.Number `json:"lastScanRange,omitempty"` +} \ No newline at end of file diff --git a/modules/domain/model/Domain.go b/modules/domain/model/Domain.go new file mode 100644 index 0000000..d12bf40 --- /dev/null +++ b/modules/domain/model/Domain.go @@ -0,0 +1,12 @@ +package model + +import ( + "git.loafle.net/overflow/overflow_commons_go/modules/timestamp/model" + "encoding/json" +) + +type Domain struct { + Id json.Number `json:"id,Number,omitempty"` + Name string `json:"name,omitempty"` + CreateDate timestamp.Timestamp `json:"createDate,omitempty"` +} \ No newline at end of file diff --git a/modules/domain/model/DomainMember.go b/modules/domain/model/DomainMember.go new file mode 100644 index 0000000..c66c7a7 --- /dev/null +++ b/modules/domain/model/DomainMember.go @@ -0,0 +1,14 @@ +package model + +import ( + "git.loafle.net/overflow/overflow_commons_go/modules/timestamp/model" + "encoding/json" + member "git.loafle.net/overflow/overflow_commons_go/modules/member/model" +) + +type DomainMember struct { + Id json.Number `json:"id,Number,omitempty"` + CreateDate timestamp.Timestamp `json:"createDate,omitempty"` + Member *member.Member `json:"member,omitempty"` + Domain *Domain `json:"domain,omitempty"` +} \ No newline at end of file diff --git a/modules/email/model/EmalAuth.go b/modules/email/model/EmalAuth.go new file mode 100644 index 0000000..baa8ab3 --- /dev/null +++ b/modules/email/model/EmalAuth.go @@ -0,0 +1,15 @@ +package model + +import ( + "git.loafle.net/overflow/overflow_commons_go/modules/timestamp/model" + member "git.loafle.net/overflow/overflow_commons_go/modules/member/model" + "encoding/json" +) + +type EmailAuth struct { + Id json.Number `json:"id,Number,omitempty"` + EmailAuthKey string `json:"emailAuthKey,omitempty"` + CreateDate timestamp.Timestamp `json:"createDate,omitempty"` + AuthConfirmDate timestamp.Timestamp `json:"authConfirmDate,omitempty"` + Member *member.Member `json:"member,omitempty"` +} \ No newline at end of file diff --git a/modules/history/model/History.go b/modules/history/model/History.go new file mode 100644 index 0000000..ce7f549 --- /dev/null +++ b/modules/history/model/History.go @@ -0,0 +1,20 @@ +package model + +import ( + "encoding/json" + "git.loafle.net/overflow/overflow_commons_go/modules/timestamp/model" + meta "git.loafle.net/overflow/overflow_commons_go/modules/meta/model" + probe "git.loafle.net/overflow/overflow_commons_go/modules/probe/model" + member "git.loafle.net/overflow/overflow_commons_go/modules/member/model" + domain "git.loafle.net/overflow/overflow_commons_go/modules/domain/model" +) + +type History struct { + Id json.Number `json:"id,Number,omitempty"` + CreateDate timestamp.Timestamp `json:"createDate,omitempty"` + Types *meta.MetaHistoryType `json:"type,omitempty"` + Message string `json:"message,omitempty"` + Probe *probe.Probe `json:"probe,omitempty"` + Member *member.Member `json:"member,omitempty"` + Domain *domain.Domain `json:"domain,omitempty"` +} \ No newline at end of file diff --git a/modules/infra/model/Infra.go b/modules/infra/model/Infra.go new file mode 100644 index 0000000..96bafac --- /dev/null +++ b/modules/infra/model/Infra.go @@ -0,0 +1,18 @@ +package model + +import ( + meta "git.loafle.net/overflow/overflow_commons_go/modules/meta/model" + "encoding/json" + "git.loafle.net/overflow/overflow_commons_go/modules/timestamp/model" + probe "git.loafle.net/overflow/overflow_commons_go/modules/probe/model" + target "git.loafle.net/overflow/overflow_commons_go/modules/target/model" +) + + +type Infra struct { + Id json.Number `json:"id,Number,omitempty"` + MetaInfraType *meta.MetaInfraType `json:"type,omitempty"` + CreateDate timestamp.Timestamp `json:"createDate,omitempty"` + Probe *probe.Probe `json:"probe,omitempty"` + Target *target.Target `json:"target,omitempty"` +} \ No newline at end of file diff --git a/modules/infra/model/InfraHost.go b/modules/infra/model/InfraHost.go new file mode 100644 index 0000000..658693d --- /dev/null +++ b/modules/infra/model/InfraHost.go @@ -0,0 +1,14 @@ +package model + +import ( + "git.loafle.net/overflow/overflow_commons_go/modules/timestamp/model" + "encoding/json" +) + +type InfraHost struct { + Infra + InfraOS *InfraOS `json:"os,omitempty"` + Ip json.Number `json:"ip,omitempty"` + Mac json.Number `json:"mac,omitempty"` + CreateDate timestamp.Timestamp `json:"createDate,omitempty"` +} diff --git a/modules/infra/model/InfraMachine.go b/modules/infra/model/InfraMachine.go new file mode 100644 index 0000000..4143545 --- /dev/null +++ b/modules/infra/model/InfraMachine.go @@ -0,0 +1,9 @@ +package model + +import "git.loafle.net/overflow/overflow_commons_go/modules/timestamp/model" + +type InfraMachine struct { + Infra + Meta string `json:"meta,omitempty"` + CreateDate timestamp.Timestamp `json:"createDate,omitempty"` +} \ No newline at end of file diff --git a/modules/infra/model/InfraOS.go b/modules/infra/model/InfraOS.go new file mode 100644 index 0000000..3f4c3c9 --- /dev/null +++ b/modules/infra/model/InfraOS.go @@ -0,0 +1,14 @@ +package model + +import ( + meta "git.loafle.net/overflow/overflow_commons_go/modules/meta/model" + "git.loafle.net/overflow/overflow_commons_go/modules/timestamp/model" +) + +type InfraOS struct { + Infra + InfraMachine *InfraMachine `json:"machine,omitempty"` + Meta string `json:"meta,omitempty"` + CreateDate timestamp.Timestamp `json:"createDate,omitempty"` + MetaInfraVendor *meta.MetaInfraVendor `json:"vendor,omitempty"` +} \ No newline at end of file diff --git a/modules/infra/model/InfraOSApplication.go b/modules/infra/model/InfraOSApplication.go new file mode 100644 index 0000000..df8ded7 --- /dev/null +++ b/modules/infra/model/InfraOSApplication.go @@ -0,0 +1,10 @@ +package model + +import "git.loafle.net/overflow/overflow_commons_go/modules/timestamp/model" + +type InfraOSApplication struct { + Infra + InfraOS *InfraOS `json:"os,omitempty"` + Name string `json:"name,omitempty"` + CreateDate timestamp.Timestamp `json:"createDate,omitempty"` +} diff --git a/modules/infra/model/InfraOSDaemon.go b/modules/infra/model/InfraOSDaemon.go new file mode 100644 index 0000000..d573c09 --- /dev/null +++ b/modules/infra/model/InfraOSDaemon.go @@ -0,0 +1,13 @@ +package model + +import ( + "git.loafle.net/overflow/overflow_commons_go/modules/timestamp/model" + +) + +type InfraOSDaemon struct { + Infra + InfraOS *InfraOS `json:"os,omitempty"` + Name string `json:"name,omitempty"` + CreateDate timestamp.Timestamp `json:"createDate,omitempty"` +} \ No newline at end of file diff --git a/modules/infra/model/InfraOSPort.go b/modules/infra/model/InfraOSPort.go new file mode 100644 index 0000000..18cff4e --- /dev/null +++ b/modules/infra/model/InfraOSPort.go @@ -0,0 +1,17 @@ +package model + +import ( + "git.loafle.net/overflow/overflow_service/proxy/meta" + "git.loafle.net/overflow/overflow_commons_go/modules/timestamp/model" + "encoding/json" +) + +type InfraOSPort struct { + Infra + InfraOS *InfraOS `json:"os,omitempty"` + CreateDate timestamp.Timestamp `json:"createDate,omitempty"` + Port json.Number `json:"port,omitempty"` + PortType string `json:"portType,omitempty"` + MetaInfraVendor *meta.MetaInfraVendor `json:"vendor,omitempty"` + TlsType bool `json:"tlsType,omitempty"` +} diff --git a/modules/infra/model/InfraServiceApplication.go b/modules/infra/model/InfraServiceApplication.go new file mode 100644 index 0000000..d00a6f8 --- /dev/null +++ b/modules/infra/model/InfraServiceApplication.go @@ -0,0 +1,17 @@ +package model + +import ( + "git.loafle.net/overflow/overflow_service/proxy/meta" + "encoding/json" + "git.loafle.net/overflow/overflow_commons_go/modules/timestamp/model" +) + +type InfraServiceApplication struct { + Infra + InfraHost *InfraHost `json:"host,omitempty"` + PortType string `json:"portType,omitempty"` + Port json.Number `json:"port,omitempty"` + MetaInfraVendor *meta.MetaInfraVendor `json:"vendor,omitempty"` + CreateDate timestamp.Timestamp `json:"createDate,omitempty"` + TlsType bool `json:"tlsType,omitempty"` +} \ No newline at end of file diff --git a/modules/member/model/Member.go b/modules/member/model/Member.go new file mode 100644 index 0000000..3a56888 --- /dev/null +++ b/modules/member/model/Member.go @@ -0,0 +1,18 @@ +package model + +import ( + "git.loafle.net/overflow/overflow_commons_go/modules/timestamp/model" + meta "git.loafle.net/overflow/overflow_commons_go/modules/meta/model" + "encoding/json" +) + +type Member struct { + Id json.Number `json:"id,Number,omitempty"` + Email string `json:"email,omitempty"` + Pw string `json:"pw,omitempty"` + Name string `json:"name,omitempty"` + Phone string `json:"phone,omitempty"` + CompanyName string `json:"companyName,omitempty"` + CreateDate timestamp.Timestamp `json:"createDate,omitempty"` + Status *meta.MetaMemberStatus `json:"status,omitempty"` +} \ No newline at end of file diff --git a/modules/meta/model/MetaCrawler.go b/modules/meta/model/MetaCrawler.go new file mode 100644 index 0000000..c030438 --- /dev/null +++ b/modules/meta/model/MetaCrawler.go @@ -0,0 +1,13 @@ +package model + +import ( + "git.loafle.net/overflow/overflow_commons_go/modules/timestamp/model" + "encoding/json" +) + +type MetaCrawler struct { + Id json.Number `json:"id,Number,omitempty"` + Name string `json:"name,omitempty"` + Description string `json:"description,omitempty"` + CreateDate timestamp.Timestamp `json:"createDate,omitempty"` +} \ No newline at end of file diff --git a/modules/meta/model/MetaHistoryType.go b/modules/meta/model/MetaHistoryType.go new file mode 100644 index 0000000..cdd850b --- /dev/null +++ b/modules/meta/model/MetaHistoryType.go @@ -0,0 +1,12 @@ +package model + +import ( + "encoding/json" + "git.loafle.net/overflow/overflow_commons_go/modules/timestamp/model" +) + +type MetaHistoryType struct { + Id json.Number `json:"id,Number,omitempty"` + Name string `json:"name,omitempty"` + CreateDate timestamp.Timestamp `json:"createDate,omitempty"` +} \ No newline at end of file diff --git a/modules/meta/model/MetaInfraType.go b/modules/meta/model/MetaInfraType.go new file mode 100644 index 0000000..875781b --- /dev/null +++ b/modules/meta/model/MetaInfraType.go @@ -0,0 +1,12 @@ +package model + +import ( + "encoding/json" + "git.loafle.net/overflow/overflow_commons_go/modules/timestamp/model" +) + +type MetaInfraType struct { + Id json.Number `json:"id,Number,omitempty"` + Name string `json:"name,omitempty"` + CreateDate timestamp.Timestamp `json:"createDate,omitempty"` +} \ No newline at end of file diff --git a/modules/meta/model/MetaInfraVendor.go b/modules/meta/model/MetaInfraVendor.go new file mode 100644 index 0000000..b86511d --- /dev/null +++ b/modules/meta/model/MetaInfraVendor.go @@ -0,0 +1,13 @@ +package model + +import ( + "git.loafle.net/overflow/overflow_commons_go/modules/timestamp/model" + "encoding/json" +) + +type MetaInfraVendor struct { + Id json.Number `json:"id,Number,omitempty"` + Name string `json:"name,omitempty"` + CreateDate timestamp.Timestamp `json:"createDate,omitempty"` + MetaInfraType *MetaInfraType `json:"metaInfraType,omitempty"` +} \ No newline at end of file diff --git a/modules/meta/model/MetaMemberStatus.go b/modules/meta/model/MetaMemberStatus.go new file mode 100644 index 0000000..4d99440 --- /dev/null +++ b/modules/meta/model/MetaMemberStatus.go @@ -0,0 +1,8 @@ +package model + +import "encoding/json" + +type MetaMemberStatus struct { + Id json.Number `json:"id,Number,omitempty"` + Name string `json:"name,omitempty"` +} \ No newline at end of file diff --git a/modules/meta/model/MetaNoAuthProbeStatus.go b/modules/meta/model/MetaNoAuthProbeStatus.go new file mode 100644 index 0000000..9f1a4cd --- /dev/null +++ b/modules/meta/model/MetaNoAuthProbeStatus.go @@ -0,0 +1,8 @@ +package model + +import "encoding/json" + +type MetaNoAuthProbeStatus struct { + Id json.Number `json:"id,Number,omitempty"` + Name string `json:"name,omitempty"` +} \ No newline at end of file diff --git a/modules/meta/model/MetaProbeStatus.go b/modules/meta/model/MetaProbeStatus.go new file mode 100644 index 0000000..b5ab8ef --- /dev/null +++ b/modules/meta/model/MetaProbeStatus.go @@ -0,0 +1,8 @@ +package model + +import "encoding/json" + +type MetaProbeStatus struct { + Id json.Number `json:"id,Number,omitempty"` + Name string `json:"name,omitempty"` +} \ No newline at end of file diff --git a/modules/meta/model/MetaProbeTaskType.go b/modules/meta/model/MetaProbeTaskType.go new file mode 100644 index 0000000..09a8aa5 --- /dev/null +++ b/modules/meta/model/MetaProbeTaskType.go @@ -0,0 +1,13 @@ +package model + +import ( + "encoding/json" + "git.loafle.net/overflow/overflow_commons_go/modules/timestamp/model" +) + +type MetaProbeTaskType struct { + Id json.Number `json:"id,Number,omitempty"` + Name string `json:"name,omitempty"` + Description string `json:"description,omitempty"` + CreateDate timestamp.Timestamp `json:"createDate,omitempty"` +} \ No newline at end of file diff --git a/modules/meta/model/MetaSensorDisplayItem.go b/modules/meta/model/MetaSensorDisplayItem.go new file mode 100644 index 0000000..49a08a1 --- /dev/null +++ b/modules/meta/model/MetaSensorDisplayItem.go @@ -0,0 +1,15 @@ +package model + +import ( + "encoding/json" + "git.loafle.net/overflow/overflow_commons_go/modules/timestamp/model" +) + +type MetaSensorDisplayItem struct { + Id json.Number `json:"id,Number,omitempty"` + Name string `json:"name,omitempty"` + Crawler *MetaCrawler `json:"crawler,omitempty"` + Unit *MetaSensorItemUnit `json:"unit,omitempty"` + CreateDate timestamp.Timestamp `json:"createDate,omitempty"` + ItemType *MetaSensorItemType `json:"itemType,omitempty"` +} \ No newline at end of file diff --git a/modules/meta/model/MetaSensorItem.go b/modules/meta/model/MetaSensorItem.go new file mode 100644 index 0000000..ef2daa0 --- /dev/null +++ b/modules/meta/model/MetaSensorItem.go @@ -0,0 +1,14 @@ +package model + +import ( + "encoding/json" + "git.loafle.net/overflow/overflow_commons_go/modules/timestamp/model" +) + +type MetaSensorItem struct { + Id json.Number `json:"id,Number,omitempty"` + MetaSensorItemType *MetaSensorItemType `json:"metaSensorItemType,omitempty"` + Key string `json:"key,omitempty"` + Name string `json:"name,omitempty"` + CreateDate timestamp.Timestamp `json:"createDate,omitempty"` +} \ No newline at end of file diff --git a/modules/meta/model/MetaSensorItemKey.go b/modules/meta/model/MetaSensorItemKey.go new file mode 100644 index 0000000..0403dab --- /dev/null +++ b/modules/meta/model/MetaSensorItemKey.go @@ -0,0 +1,18 @@ +package model + +import ( + "encoding/json" + + "git.loafle.net/overflow/overflow_commons_go/modules/timestamp/model" +) + +type MetaSensorItemKey struct { + Id json.Number `json:"id,Number,omitempty"` + Item *MetaSensorItem `json:"item,omitempty"` + Key string `json:"key,omitempty"` + Froms string `json:"froms,omitempty"` + Option string `json:"option,omitempty"` + Crawler *MetaCrawler `json:"crawler,omitempty"` + CreateDate timestamp.Timestamp `json:"createDate,omitempty"` + Unit *MetaSensorItemUnit `json:"unit,omitempty"` +} \ No newline at end of file diff --git a/modules/meta/model/MetaSensorItemType.go b/modules/meta/model/MetaSensorItemType.go new file mode 100644 index 0000000..7a7717c --- /dev/null +++ b/modules/meta/model/MetaSensorItemType.go @@ -0,0 +1,13 @@ +package model + +import ( + "git.loafle.net/overflow/overflow_commons_go/modules/timestamp/model" + "encoding/json" +) + +type MetaSensorItemType struct { + Id json.Number `json:"id,Number,omitempty"` + Name string `json:"name,omitempty"` + Description string `json:"description,omitempty"` + CreateDate timestamp.Timestamp `json:"createDate,omitempty"` +} \ No newline at end of file diff --git a/modules/meta/model/MetaSensorItemUnit.go b/modules/meta/model/MetaSensorItemUnit.go new file mode 100644 index 0000000..9120f66 --- /dev/null +++ b/modules/meta/model/MetaSensorItemUnit.go @@ -0,0 +1,13 @@ +package model + +import ( + "git.loafle.net/overflow/overflow_commons_go/modules/timestamp/model" + "encoding/json" +) + +type MetaSensorItemUnit struct { + Id json.Number `json:"id,Number,omitempty"` + Unit string `json:"unit,omitempty"` + CreateDate timestamp.Timestamp `json:"createDate,omitempty"` + Mark string `json:"mark,omitempty"` +} \ No newline at end of file diff --git a/modules/meta/model/MetaSensorStatus.go b/modules/meta/model/MetaSensorStatus.go new file mode 100644 index 0000000..f78726a --- /dev/null +++ b/modules/meta/model/MetaSensorStatus.go @@ -0,0 +1,8 @@ +package model + +import "encoding/json" + +type MetaSensorStatus struct { + Id json.Number `json:"id,Number,omitempty"` + Name string `json:"name,omitempty"` +} \ No newline at end of file diff --git a/modules/noauthprobe/model/NoAuthProbe.go b/modules/noauthprobe/model/NoAuthProbe.go new file mode 100644 index 0000000..83175c7 --- /dev/null +++ b/modules/noauthprobe/model/NoAuthProbe.go @@ -0,0 +1,20 @@ +package model + +import ( + "git.loafle.net/overflow/overflow_commons_go/modules/timestamp/model" + domain "git.loafle.net/overflow/overflow_commons_go/modules/domain/model" + meta "git.loafle.net/overflow/overflow_commons_go/modules/meta/model" + "encoding/json" + probe "git.loafle.net/overflow/overflow_commons_go/modules/probe/model" +) + +type NoAuthProbe struct { + Id json.Number `json:"id,Number,omitempty"` + Description string `json:"description,omitempty"` + Status *meta.MetaNoAuthProbeStatus `json:"status,omitempty"` + TempProbeKey string `json:"tempProbeKey,omitempty"` + CreateDate timestamp.Timestamp `json:"createDate,omitempty"` + ApiKey string `json:"apiKey,omitempty"` + Domain *domain.DomainMember `json:"domain,omitempty"` + Probe *probe.Probe `json:"probe,omitempty"` +} \ No newline at end of file diff --git a/modules/notification/model/Notification.go b/modules/notification/model/Notification.go new file mode 100644 index 0000000..d7bcd90 --- /dev/null +++ b/modules/notification/model/Notification.go @@ -0,0 +1,17 @@ +package model + +import ( + "git.loafle.net/overflow/overflow_commons_go/modules/timestamp/model" + "encoding/json" + "git.loafle.net/overflow/overflow_service/proxy/member" +) + +type Notification struct { + Id json.Number `json:"id,Number,omitempty"` + CreateDate timestamp.Timestamp `json:"date,omitempty"` + Title string `json:"title,omitempty"` + Message string `json:"message,omitempty"` + Member *member.Member `json:"member,omitempty"` + ConfirmDate timestamp.Timestamp `json:"confirmDate,omitempty"` + Url string `json:"url,omitempty"` +} \ No newline at end of file diff --git a/modules/probe/model/Probe.go b/modules/probe/model/Probe.go new file mode 100644 index 0000000..2b1778a --- /dev/null +++ b/modules/probe/model/Probe.go @@ -0,0 +1,24 @@ +package model + +import ( + meta "git.loafle.net/overflow/overflow_commons_go/modules/meta/model" + "git.loafle.net/overflow/overflow_commons_go/modules/timestamp/model" + domain "git.loafle.net/overflow/overflow_commons_go/modules/domain/model" + member "git.loafle.net/overflow/overflow_commons_go/modules/member/model" + "encoding/json" +) + +type Probe struct { + Id json.Number `json:"id,Number,omitempty"` + Status *meta.MetaProbeStatus `json:"status,omitempty"` + CreateDate timestamp.Timestamp `json:"createDate,omitempty"` + Domain *domain.Domain `json:"domain,omitempty"` + ProbeKey string `json:"probeKey,omitempty"` + EncryptionKey string `json:"encryptionKey,omitempty"` + TargetCount int `json:"targetCount,omitempty"` + SensorCount int `json:"sensorCount,omitempty"` + DisplayName string `json:"displayName,omitempty"` + Cidr string `json:"cidr,omitempty"` + AuthorizeDate timestamp.Timestamp `json:"authorizeDate,omitempty"` + AuthorizeMember *member.Member `json:"authorizeMember,omitempty"` +} \ No newline at end of file diff --git a/modules/probe/model/ProbeTask.go b/modules/probe/model/ProbeTask.go new file mode 100644 index 0000000..b5e4619 --- /dev/null +++ b/modules/probe/model/ProbeTask.go @@ -0,0 +1,19 @@ +package model + +import ( + "encoding/json" + meta "git.loafle.net/overflow/overflow_commons_go/modules/meta/model" + "git.loafle.net/overflow/overflow_commons_go/modules/timestamp/model" +) + +type ProbeTask struct { + Id json.Number `json:"id,Number,omitempty"` + MetaProbeTaskType *meta.MetaProbeTaskType `json:"metaProbeTaskType,omitempty"` + Probe *Probe `json:"probe,omitempty"` + Data string `json:"data,omitempty"` + CreateDate timestamp.Timestamp `json:"createDate,omitempty"` + SendDate timestamp.Timestamp `json:"sendDate,omitempty"` + StartDate timestamp.Timestamp `json:"startDate,omitempty"` + EndDate timestamp.Timestamp `json:"endDate,omitempty"` + Succeed bool `json:"succeed,omitempty"` +} diff --git a/modules/sensor/model/Sensor.go b/modules/sensor/model/Sensor.go new file mode 100644 index 0000000..0a488b6 --- /dev/null +++ b/modules/sensor/model/Sensor.go @@ -0,0 +1,18 @@ +package model + +import ( + meta "git.loafle.net/overflow/overflow_commons_go/modules/meta/model" + "git.loafle.net/overflow/overflow_service/proxy/target" + "encoding/json" + "git.loafle.net/overflow/overflow_commons_go/modules/timestamp/model" +) + +type Sensor struct { + Id json.Number `json:"id,Number,omitempty"` + CreateDate timestamp.Timestamp `json:"createDate,omitempty"` + Description string `json:"description,omitempty"` + MetaSensorStatus *meta.MetaSensorStatus `json:"status,omitempty"` + Target *target.Target `json:"target,omitempty"` + Crawler *meta.MetaCrawler `json:"crawler,omitempty"` + CrawlerInputItems string `json:"crawlerInputItems,omitempty"` +} \ No newline at end of file diff --git a/modules/sensor/model/SensorItem.go b/modules/sensor/model/SensorItem.go new file mode 100644 index 0000000..586da87 --- /dev/null +++ b/modules/sensor/model/SensorItem.go @@ -0,0 +1,14 @@ +package model + +import ( + meta "git.loafle.net/overflow/overflow_commons_go/modules/meta/model" + "encoding/json" + "git.loafle.net/overflow/overflow_commons_go/modules/timestamp/model" +) + +type SensorItem struct { + Id json.Number `json:"id,Number,omitempty"` + Sensor *Sensor `json:"sensor,omitempty"` + MetaSensorItem *meta.MetaSensorItem `json:"item,omitempty"` + CreateDate timestamp.Timestamp `json:"createDate,omitempty"` +} \ No newline at end of file diff --git a/modules/sensor/model/SensorItemDependency.go b/modules/sensor/model/SensorItemDependency.go new file mode 100644 index 0000000..50dc23d --- /dev/null +++ b/modules/sensor/model/SensorItemDependency.go @@ -0,0 +1,12 @@ +package model + +import ( + meta "git.loafle.net/overflow/overflow_commons_go/modules/meta/model" + "encoding/json" +) + +type SensorItemDependency struct { + Id json.Number `json:"id,Number,omitempty"` + DisplayItem *meta.MetaSensorDisplayItem `json:"displayItem,omitempty"` + SensorItem *meta.MetaSensorItemKey `json:"sensorItem,omitempty"` +} \ No newline at end of file diff --git a/modules/target/model/Target.go b/modules/target/model/Target.go new file mode 100644 index 0000000..a82acd0 --- /dev/null +++ b/modules/target/model/Target.go @@ -0,0 +1,15 @@ +package model + +import ( + + "encoding/json" + "git.loafle.net/overflow/overflow_commons_go/modules/timestamp/model" + +) + +type Target struct { + Id json.Number `json:"id,Number,omitempty"` + CreateDate timestamp.Timestamp `json:"createDate,omitempty"` + DisplayName string `json:"displayName,omitempty"` + Description string `json:"description,omitempty"` +} \ No newline at end of file