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
@@ -0,0 +1,28 @@
/*
* @Author : huangzj
* @Time : 2020/12/29 14:49
* @Description
*/
package dbOperation
import (
"Go-Tool/ProgressTest/SkillTopology/model"
)
type CounsellorSrv struct {
}
func NewCounsellorSrv() *CounsellorSrv {
return &CounsellorSrv{}
}
//通过模拟的Id来获取对应的技能
func (*CounsellorSrv) GetCounsellorSkill(counsellorId int) *model.Counsellor {
skillPoint := NewSkillPointSrv()
return &model.Counsellor{
Id: model.CounsellorId,
Name: "测试的大臣",
Skill: skillPoint.GetAllSkillByCounsellorId(model.CounsellorId),
}
}