feat(Go-Tool):

2020/12/31:新增项目案例(角色技能树)
               2020/12/31: 修改diliver包结构
This commit is contained in:
Huangzj
2020-12-31 14:25:25 +08:00
parent 84b5787dd8
commit f3c056f84e
23 changed files with 738 additions and 9 deletions
+29
View File
@@ -0,0 +1,29 @@
/*
* @Author : huangzj
* @Time : 2020/11/13 14:55
* @Description
*/
package diliver
import (
"Go-Tool/util/file"
"encoding/json"
)
type DeliverList struct {
Deliver []*Deliver
}
type Deliver struct {
Score int
AllScore int
Id int
}
func MakeData() DeliverList {
var deliver DeliverList
content, _ := file.ReadJsonFile("F:\\Go_BySelf\\src\\Go-Tool\\ProgressTest\\diliver\\deliverData.json")
_ = json.Unmarshal([]byte(content), &deliver)
return deliver
}