remove dumps and trash
add some new files and services add hwtools that shows the current and last GWs - not yet included the user stats (if any available)
This commit is contained in:
122
server/models/clanWarGetInfo/clanWarGetInfo.go
Normal file
122
server/models/clanWarGetInfo/clanWarGetInfo.go
Normal file
@@ -0,0 +1,122 @@
|
||||
// This file was generated from JSON Schema using quicktype, do not modify it directly.
|
||||
// To parse and unparse this JSON data, add this code to your project and do:
|
||||
//
|
||||
// clanWarGetInfo, err := UnmarshalClanWarGetInfo(bytes)
|
||||
// bytes, err = clanWarGetInfo.Marshal()
|
||||
|
||||
package main
|
||||
|
||||
import (
|
||||
"hwcollector/server/models/common"
|
||||
|
||||
jsoniter "github.com/json-iterator/go"
|
||||
)
|
||||
|
||||
var json = jsoniter.ConfigCompatibleWithStandardLibrary
|
||||
|
||||
func UnmarshalClanWarGetInfo(data []byte) (ClanWarGetInfo, error) {
|
||||
var r ClanWarGetInfo
|
||||
err := json.Unmarshal(data, &r)
|
||||
return r, err
|
||||
}
|
||||
|
||||
func (r *ClanWarGetInfo) Marshal() ([]byte, error) {
|
||||
return json.Marshal(r)
|
||||
}
|
||||
|
||||
type ClanWarGetInfo struct {
|
||||
Data float64 `json:"data"`
|
||||
Headers common.Headers `json:"headers"`
|
||||
Response ClanWarGetInfoResponse `json:"response"`
|
||||
}
|
||||
|
||||
type ClanWarGetInfoResponse struct {
|
||||
Ident string `json:"ident"`
|
||||
Result Result `json:"result"`
|
||||
}
|
||||
|
||||
type Result struct {
|
||||
Response ResultResponse `json:"response"`
|
||||
}
|
||||
|
||||
type ResultResponse struct {
|
||||
ArePointsMax bool `json:"arePointsMax"`
|
||||
AvgLevel string `json:"avgLevel"`
|
||||
ClanTries map[string]int64 `json:"clanTries"`
|
||||
Day string `json:"day"`
|
||||
EndTime int64 `json:"endTime"`
|
||||
EnemyClan EnemyClan `json:"enemyClan"`
|
||||
EnemyClanMembers map[string]EnemyClanMember `json:"enemyClanMembers"`
|
||||
EnemyClanTries map[string]int64 `json:"enemyClanTries"`
|
||||
EnemyID string `json:"enemyId"`
|
||||
EnemyPoints string `json:"enemyPoints"`
|
||||
EnemySlots map[string]Slot `json:"enemySlots"`
|
||||
League string `json:"league"`
|
||||
MyTries int64 `json:"myTries"`
|
||||
NextLockTime int64 `json:"nextLockTime"`
|
||||
NextWarTime int64 `json:"nextWarTime"`
|
||||
OurSlots map[string]Slot `json:"ourSlots"`
|
||||
Points string `json:"points"`
|
||||
Season string `json:"season"`
|
||||
}
|
||||
|
||||
type EnemyClan struct {
|
||||
Country string `json:"country"`
|
||||
Description string `json:"description"`
|
||||
Disbanding bool `json:"disbanding"`
|
||||
FrameID int64 `json:"frameId"`
|
||||
ID string `json:"id"`
|
||||
Level string `json:"level"`
|
||||
MembersCount string `json:"membersCount"`
|
||||
MinLevel string `json:"minLevel"`
|
||||
OwnerID string `json:"ownerId"`
|
||||
RoleNames []interface{} `json:"roleNames"`
|
||||
ServerID string `json:"serverId"`
|
||||
Title string `json:"title"`
|
||||
TopActivity string `json:"topActivity"`
|
||||
TopDungeon string `json:"topDungeon"`
|
||||
}
|
||||
|
||||
type EnemyClanMember struct {
|
||||
AllowPm string `json:"allowPm"`
|
||||
AvatarID string `json:"avatarId"`
|
||||
ClanID string `json:"clanId"`
|
||||
ClanRole string `json:"clanRole"`
|
||||
ClanTitle string `json:"clanTitle"`
|
||||
FrameID int64 `json:"frameId"`
|
||||
ID string `json:"id"`
|
||||
IsChatModerator bool `json:"isChatModerator"`
|
||||
LastLoginTime string `json:"lastLoginTime"`
|
||||
LeagueID int64 `json:"leagueId"`
|
||||
Level string `json:"level"`
|
||||
Name string `json:"name"`
|
||||
ServerID string `json:"serverId"`
|
||||
}
|
||||
|
||||
type Slot struct {
|
||||
AttackerID int64 `json:"attackerId"`
|
||||
PointsFarmed int64 `json:"pointsFarmed"`
|
||||
SlotID int64 `json:"slotId"`
|
||||
Status string `json:"status"`
|
||||
TargetMarkingUserID *int64 `json:"targetMarkingUserId,omitempty"`
|
||||
Team []map[string]Team `json:"team"`
|
||||
TotalPoints int64 `json:"totalPoints"`
|
||||
User EnemyClanMember `json:"user"`
|
||||
}
|
||||
|
||||
type Team struct {
|
||||
Color *int64 `json:"color,omitempty"`
|
||||
ID int64 `json:"id"`
|
||||
Level int64 `json:"level"`
|
||||
Power int64 `json:"power"`
|
||||
Star int64 `json:"star"`
|
||||
State State `json:"state"`
|
||||
Type string `json:"type"`
|
||||
}
|
||||
|
||||
type State struct {
|
||||
Energy int64 `json:"energy"`
|
||||
HP int64 `json:"hp"`
|
||||
IsDead bool `json:"isDead"`
|
||||
MaxHP int64 `json:"maxHp"`
|
||||
}
|
||||
Reference in New Issue
Block a user