autocode

package
v0.0.0-...-787453a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 8, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

自动生成模板ApiToken

自动生成模板SysDictionaryDetail

自动生成模板Collector

自动生成模板requiredInfo

自动生成模板Rules

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApiToken

type ApiToken struct {
	global.GVA_MODEL
	ApiType      *int   `json:"apiType" form:"apiType" gorm:"column:api_type;comment:API类型;type:int"`
	Status       *int   `json:"status" form:"status" gorm:"column:status;comment:API状态;type:int"`
	Account      string `json:"account" form:"account" gorm:"column:account;comment:账号(如有);type:varchar(100);"`
	Content      string `json:"content" form:"content" gorm:"column:content;comment:apitoken内容;type:varchar(100);"`
	LimitTimes   *int   `json:"limitTimes" form:"limitTimes" gorm:"column:limit_times;comment:次数限制;type:int"`
	RemaingTimes *int   `json:"remaingTimes" form:"remaingTimes" gorm:"column:remaing_times;comment:剩余次数;type:int"`
	Desc         string `json:"desc" form:"desc" gorm:"column:desc;comment:备注;type:varchar(300);"`
}

ApiToken 结构体 如果含有time.Time 请自行import time包

type AutoCodeExample

type AutoCodeExample struct {
	global.GVA_MODEL
	AutoCodeExampleField string `` // 展示值
	/* 135-byte string literal not displayed */
}

如果含有time.Time 请自行import time包

type Collector

type Collector struct {
	global.GVA_MODEL
	Domain        string     `json:"domain" form:"domain" gorm:"column:domain;comment:域名;type:varchar(200);"`
	BelongToSrc   string     `json:"belongToSrc" form:"belongToSrc" gorm:"column:belong_to_src;comment:src归属;type:varchar(100);"`
	IsWildDomain  *bool      `json:"isWildDomain" form:"isWildDomain" gorm:"column:is_wild_domain;comment:是否为泛解析;type:tinyint"`
	DiscoveryTime *time.Time `json:"discoveryTime" form:"discoveryTime" gorm:"column:discovery_time;comment:域名发现时间;type:datetime"`
	IpAddress     string     `json:"ipAddress" form:"ipAddress" gorm:"column:ip_address;comment:IP地址;type:varchar(100);"`
	OpenPorts     string     `json:"openPorts" form:"openPorts" gorm:"column:open_ports;comment:开放端口;type:varchar(999);"`
	IsMonitoring  *bool      `json:"isMonitoring" form:"isMonitoring" gorm:"column:is_monitoring;comment:是否监控该域名;type:tinyint"`
	WebStatusCode *int       `json:"webStatusCode" form:"webStatusCode" gorm:"column:web_status_code;comment:web响应码;type:int"`
	WebTitles     string     `json:"webTitles" form:"webTitles" gorm:"column:web_titles;comment:web页面标题;type:varchar(100);"`
	HadScanned    *bool      `json:"hadScanned" form:"hadScanned" gorm:"column:had_scanned;comment:是否已扫描;type:tinyint"`
	Middleware    string     `json:"middleware" form:"middleware" gorm:"column:middleware;comment:中间件信息;type:varchar(999);"`
	Fingerprint   string     `json:"fingerprint" form:"fingerprint" gorm:"column:fingerprint;comment:指纹信息;type:varchar(999);"`
	WebPageSize   string     `json:"webPageSize" form:"webPageSize" gorm:"column:web_page_size;comment:页面大小;type:varchar(100);"`
	PrimaryDomain string     `json:"primaryDomain" form:"primaryDomain" gorm:"column:primary_domain;comment:一级域名;type:varchar(100);"`
	IsOnBlacklist *bool      `json:"isOnBlacklist" form:"isOnBlacklist" gorm:"column:is_on_blacklist;comment:是否在黑名单中;type:tinyint"`
}

Collector 结构体 如果含有time.Time 请自行import time包

func (Collector) TableName

func (Collector) TableName() string

TableName Collector 表名

type RequiredInfo

type RequiredInfo struct {
	global.GVA_MODEL
	UseRules       string     `json:"useRules" form:"useRules" gorm:"column:use_rules;comment:运行规则;type:varchar(100);"`
	Domain         string     `json:"domain" form:"domain" gorm:"column:domain;comment:;type:varchar(100);"`
	TimeBefore     *time.Time `json:"timeBefore" form:"timeBefore" gorm:"column:time_before;comment:发现时间在..之前;type:date"`
	TimeAfter      *time.Time `json:"timeAfter" form:"timeAfter" gorm:"column:time_after;comment:发现时间在..之后;type:date"`
	TimeAutoCreate *bool      `json:"timeAutoCreate" form:"timeAutoCreate" gorm:"column:time_auto_create;comment:自动生成时间段(当天);type:tinyint"`
	Title          string     `json:"title" form:"title" gorm:"column:title;comment:网站标题;type:varchar(100);"`
	Cert           string     `json:"cert" form:"cert" gorm:"column:cert;comment:证书;type:varchar(100);"`
	Ip             string     `json:"ip" form:"ip" gorm:"column:ip;comment:Ip或ip段;type:varchar(200);"`
	Protocol       string     `json:"protocol" form:"protocol" gorm:"column:protocol;comment:协议;type:varchar(100);"`
	Icp            string     `json:"icp" form:"icp" gorm:"column:icp;comment:icp备案号;type:varchar(100);"`
	WebStatusCode  string     `json:"webStatusCode" form:"webStatusCode" gorm:"column:web_status_code;comment:服务器状态码;type:varchar(100);"`
	Header         string     `json:"header" form:"header" gorm:"column:header;comment:HTTP请求头;type:varchar(100);"`
	Country        string     `json:"country" form:"country" gorm:"column:country;comment:国家;type:varchar(100);"`
	Province       string     `json:"province" form:"province" gorm:"column:province;comment:省份;type:varchar(100);"`
	City           string     `json:"city" form:"city" gorm:"column:city;comment:城市;type:varchar(100);"`
}

requiredInfo 结构体 如果含有time.Time 请自行import time包

type Rules

type Rules struct {
	global.GVA_MODEL
	RuleName  string `json:"ruleName" form:"ruleName" gorm:"column:rule_name;comment:规则名称;type:varchar(100);"`
	RuleType  *int   `json:"ruleType" form:"ruleType" gorm:"column:rule_type;comment:rule类型;type:int"`
	Status    *int   `json:"status" form:"status" gorm:"column:status;comment:rule状态;type:int"`
	IsDynamic *bool  `json:"isDynamic" form:"isDynamic" gorm:"column:is_dynamic;comment:是否为动态规则;type:tinyint"`
	Content   string `json:"content" form:"content" gorm:"column:content;comment:rule内容;type:varchar(300);"`
	Desc      string `json:"desc" form:"desc" gorm:"column:desc;comment:备注;type:varchar(300);"`
}

Rules 结构体 如果含有time.Time 请自行import time包

func (Rules) TableName

func (Rules) TableName() string

TableName Rules 表名

Directories

Path Synopsis
自动生成模板SysDictionaryDetail
自动生成模板SysDictionaryDetail

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL