Files
Go-tool/ProgressTest/SkillTopology/dbOperation/Counsellor.go
T
Huangzj f3c056f84e feat(Go-Tool):
2020/12/31:新增项目案例(角色技能树)
               2020/12/31: 修改diliver包结构
2020-12-31 14:25:25 +08:00

29 lines
569 B
Go
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/*
* @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),
}
}