Skip to content

Commit

Permalink
Merge pull request #5 from homenoc/develop
Browse files Browse the repository at this point in the history
Supported getting group data
  • Loading branch information
yoneyan authored Aug 27, 2021
2 parents 7f9d470 + 8380aff commit a432eb1
Show file tree
Hide file tree
Showing 6 changed files with 1,360 additions and 10 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
- IPv4変更
- IPv6登録
- IPv6変更
- IPv4情報の閲覧
- IPv6情報の閲覧

削除はJPNIC側のAPIサーバ側が対応していないため、対応不可。
また、詳しい仕様に関してはJPNIC側のトランザクション資料と照らし合わせながら使う必要があります。
Expand Down
5 changes: 4 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,7 @@ module github.com/homenoc/jpnic

go 1.13

require golang.org/x/text v0.3.7
require (
github.com/PuerkitoBio/goquery v1.7.1
golang.org/x/text v0.3.7
)
70 changes: 70 additions & 0 deletions interface.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,3 +98,73 @@ type Etc struct {
CertID string `json:"cert_id"`
Password string `json:"password"`
}

type InfoIPv4 struct {
IPAddress string `json:"ip_address"`
DetailLink string `json:"detail_link"`
Size string `json:"size"`
NetworkName string `json:"network_name"`
AssignDate string `json:"assign_date"`
ReturnDate string `json:"return_date"`
OrgName string `json:"org_name"`
Ryakusho string `json:"ryakusho"`
RecepNo string `json:"recep_no"`
DeliNo string `json:"deli_no"`
Type string `json:"type"`
KindID string `json:"kind_id"`
}

type InfoDetailIPv4 struct {
IPAddress string `json:"ip_address"`
Ryakusho string `json:"ryakusho"`
Type string `json:"type"`
InfraUserKind string `json:"infra_user_kind"`
NetworkName string `json:"network_name"`
Org string `json:"org"`
OrgEn string `json:"org_en"`
PostCode string `json:"post_code"`
Address string `json:"address"`
AddressEn string `json:"address_en"`
AdminJPNICHandle string `json:"admin_jpnic_handle"`
AdminJPNICHandleLink string `json:"admin_jpnic_handle_link"`
TechJPNICHandle string `json:"tech_jpnic_handle"`
TechJPNICHandleLink string `json:"tech_jpnic_handle_link"`
NameServer string `json:"name_server"`
DSRecord string `json:"ds_record"`
NotifyAddress string `json:"notify_address"`
DeliNo string `json:"deli_no"`
RecepNo string `json:"recep_no"`
AssignDate string `json:"assign_date"`
ReturnDate string `json:"return_date"`
UpdateDate string `json:"update_date"`
}

type InfoIPv6 struct {
IPAddress string `json:"ip_address"`
DetailLink string `json:"detail_link"`
NetworkName string `json:"network_name"`
AssignDate string `json:"assign_date"`
ReturnDate string `json:"return_date"`
OrgName string `json:"org_name"`
Ryakusho string `json:"ryakusho"`
RecepNo string `json:"recep_no"`
DeliNo string `json:"deli_no"`
KindID string `json:"kind_id"`
}

type InfoDetailIPv6 struct {
IPAddress string `json:"ip_address"`
Ryakusho string `json:"ryakusho"`
Type string `json:"type"`
InfraUserKind string `json:"infra_user_kind"`
NetworkName string `json:"network_name"`
Org string `json:"org"`
OrgEn string `json:"org_en"`
AdminJPNICHandle string `json:"admin_jpnic_handle"`
AdminJPNICHandleLink string `json:"admin_jpnic_handle_link"`
TechJPNICHandle string `json:"tech_jpnic_handle"`
TechJPNICHandleLink string `json:"tech_jpnic_handle_link"`
AssignDate string `json:"assign_date"`
ReturnDate string `json:"return_date"`
UpdateDate string `json:"update_date"`
}
Loading

0 comments on commit a432eb1

Please sign in to comment.