feat(Go-Tool):2020/11/16:新增项目案例(按照一定规则对一组数据进行排序分组)

This commit is contained in:
Huangzj
2020-11-16 18:09:28 +08:00
parent 2ac2b2666f
commit 179e5f6a31
10 changed files with 888 additions and 13 deletions
+29
View File
@@ -0,0 +1,29 @@
/*
* @Author : huangzj
* @Time : 2020/11/13 14:55
* @Description
*/
package ProgressTest
import (
"Go-Tool/util/file"
"Go-Tool/util/jsonEnhance"
)
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\\deliverData.json")
jsonEnhance.UnmarshalFromString(content, &deliver)
return deliver
}