Skip to content

Commit

Permalink
[remove] 不要な構造体の削除
Browse files Browse the repository at this point in the history
  • Loading branch information
yoneyan committed Aug 28, 2021
1 parent f53c23d commit c654d56
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 21 deletions.
20 changes: 1 addition & 19 deletions interface.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,25 +99,7 @@ type Etc struct {
Password string `json:"password"`
}

type InfoDetailShort 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"`
NameServer string `json:"name_server"`
AssignDate string `json:"assign_date"`
ReturnDate string `json:"return_date"`
UpdateDate string `json:"update_date"`
}

type InfoDetailLong struct {
type InfoDetail struct {
IPAddress string `json:"ip_address"`
Ryakusho string `json:"ryakusho"`
Type string `json:"type"`
Expand Down
4 changes: 2 additions & 2 deletions jpnic.go
Original file line number Diff line number Diff line change
Expand Up @@ -419,8 +419,8 @@ func (c *Config) GetAllIPv6(searchStr string) ([]InfoIPv6, error) {
return infos, nil
}

func (c *Config) GetIPUser(userURL string) (InfoDetailLong, error) {
var info InfoDetailLong
func (c *Config) GetIPUser(userURL string) (InfoDetail, error) {
var info InfoDetail

sessionID, err := randomStr()
if err != nil {
Expand Down

0 comments on commit c654d56

Please sign in to comment.