Files

30 lines
487 B
Go
Raw Permalink Normal View History

/*
* @Author : huangzj
* @Time : 2020/11/13 14:55
* @Description
*/
2020-12-31 14:25:25 +08:00
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
2020-12-31 14:25:25 +08:00
content, _ := file.ReadJsonFile("F:\\Go_BySelf\\src\\Go-Tool\\ProgressTest\\diliver\\deliverData.json")
_ = json.Unmarshal([]byte(content), &deliver)
return deliver
}