goApi

package module
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2023 License: GPL-3.0 Imports: 5 Imported by: 0

README


title: date: 2023-01-29 20:14:23 tags:


获取lol英雄数据

GetLolHero() (api.T)
// 返回所有 数据
GetLolHeroForName(name string) (api.Hero)
// 输入名字 返回 指定英雄数据

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Hero

type Hero struct {
	HeroId              string   `json:"heroId"`
	Name                string   `json:"name"`
	Alias               string   `json:"alias"`
	Title               string   `json:"title"`
	Roles               []string `json:"roles"`
	IsWeekFree          string   `json:"isWeekFree"`
	Attack              string   `json:"attack"`
	Defense             string   `json:"defense"`
	Magic               string   `json:"magic"`
	Difficulty          string   `json:"difficulty"`
	SelectAudio         string   `json:"selectAudio"`
	BanAudio            string   `json:"banAudio"`
	IsARAMweekfree      string   `json:"isARAMweekfree"`
	Ispermanentweekfree string   `json:"ispermanentweekfree"`
	ChangeLabel         string   `json:"changeLabel"`
	GoldPrice           string   `json:"goldPrice"`
	CouponPrice         string   `json:"couponPrice"`
	Camp                string   `json:"camp"`
	CampId              string   `json:"campId"`
	Keywords            string   `json:"keywords"`
	InstanceId          string   `json:"instance_id"`
	Yt                  []YuanTu
	Zl                  X
}

func GetLolHeroForName

func GetLolHeroForName(name string) Hero

type T

type T struct {
	Hero     []Hero `json:"hero"`
	Version  string `json:"version"`
	FileName string `json:"fileName"`
	FileTime string `json:"fileTime"`
}
var (
	Data T
)

func GetLolHero

func GetLolHero() T

GetLolHero 返回数据 Data

type X

type X struct {
	Hero struct {
		HeroId               string        `json:"heroId"`
		Name                 string        `json:"name"`
		Alias                string        `json:"alias"`
		Title                string        `json:"title"`
		Roles                []string      `json:"roles"`
		Camp                 string        `json:"camp"`
		CampId               string        `json:"campId"`
		Attack               string        `json:"attack"`
		Defense              string        `json:"defense"`
		Magic                string        `json:"magic"`
		Difficulty           string        `json:"difficulty"`
		Hp                   string        `json:"hp"`
		Hpperlevel           string        `json:"hpperlevel"`
		Mp                   string        `json:"mp"`
		Mpperlevel           string        `json:"mpperlevel"`
		Movespeed            string        `json:"movespeed"`
		Armor                string        `json:"armor"`
		Armorperlevel        string        `json:"armorperlevel"`
		Spellblock           string        `json:"spellblock"`
		Spellblockperlevel   string        `json:"spellblockperlevel"`
		Attackrange          string        `json:"attackrange"`
		Hpregen              string        `json:"hpregen"`
		Hpregenperlevel      string        `json:"hpregenperlevel"`
		Mpregen              string        `json:"mpregen"`
		Mpregenperlevel      string        `json:"mpregenperlevel"`
		Crit                 string        `json:"crit"`
		Critperlevel         string        `json:"critperlevel"`
		Attackdamage         string        `json:"attackdamage"`
		Attackdamageperlevel string        `json:"attackdamageperlevel"`
		Attackspeed          string        `json:"attackspeed"`
		Attackspeedperlevel  string        `json:"attackspeedperlevel"`
		HeroVideoPath        string        `json:"heroVideoPath"`
		IsWeekFree           string        `json:"isWeekFree"`
		DamageType           string        `json:"damageType"`
		Style                string        `json:"style"`
		DifficultyL          string        `json:"difficultyL"`
		Damage               string        `json:"damage"`
		Durability           string        `json:"durability"`
		CrowdControl         string        `json:"crowdControl"`
		Mobility             string        `json:"mobility"`
		Utility              string        `json:"utility"`
		SelectAudio          string        `json:"selectAudio"`
		BanAudio             string        `json:"banAudio"`
		ChangeLabel          string        `json:"changeLabel"`
		GoldPrice            string        `json:"goldPrice"`
		CouponPrice          string        `json:"couponPrice"`
		Keywords             string        `json:"keywords"`
		Introduce            string        `json:"introduce"`
		PalmHeroHeadImg      string        `json:"palmHeroHeadImg"`
		Relations            []interface{} `json:"relations"`
	} `json:"hero"`
	Skins []struct {
		SkinId          string `json:"skinId"`
		HeroId          string `json:"heroId"`
		HeroName        string `json:"heroName"`
		HeroTitle       string `json:"heroTitle"`
		Name            string `json:"name"`
		Chromas         string `json:"chromas"`
		ChromasBelongId string `json:"chromasBelongId"`
		IsBase          string `json:"isBase"`
		EmblemsName     string `json:"emblemsName"`
		MainImg         string `json:"mainImg"`
		IconImg         string `json:"iconImg"`
		LoadingImg      string `json:"loadingImg"`
		VideoImg        string `json:"videoImg"`
		SourceImg       string `json:"sourceImg"`
		VedioPath       string `json:"vedioPath"`
		SuitType        string `json:"suitType"`
		PublishTime     string `json:"publishTime"`
		ChromaImg       string `json:"chromaImg"`
	} `json:"skins"`
	Spells []struct {
		HeroId             string      `json:"heroId"`
		SpellKey           string      `json:"spellKey"`
		Name               string      `json:"name"`
		Description        string      `json:"description"`
		AbilityIconPath    string      `json:"abilityIconPath"`
		AbilityVideoPath   string      `json:"abilityVideoPath"`
		DynamicDescription string      `json:"dynamicDescription"`
		Cost               interface{} `json:"cost"`
		Costburn           string      `json:"costburn"`
		Cooldown           interface{} `json:"cooldown"`
		Cooldownburn       string      `json:"cooldownburn"`
		Range              interface{} `json:"range"`
	} `json:"spells"`
	Version  string `json:"version"`
	FileName string `json:"fileName"`
	FileTime string `json:"fileTime"`
}

type YuanTu

type YuanTu struct {
	Name string
	Url  string
}

Jump to

Keyboard shortcuts

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