This commit is contained in:
Putoo
2026-06-05 18:06:38 +08:00
parent 5195407266
commit 1927e3f960
17 changed files with 575 additions and 27 deletions

View File

@@ -15,10 +15,10 @@ public class UserController : ControllerBase
private readonly IUnitUserRelationService _relationService;
private readonly IGameGoodsService _goodsService;
private readonly IGameChatService _chatService;
private readonly IGameSkillService _skillService;
public UserController(IUnitUserService userService, IUnitUserAttrService attrService,
IUnitUserAccService accService, IGameMapService mapService, IUnitUserRelationService relationService,
IGameGoodsService goodsService, IGameChatService chatService)
IGameGoodsService goodsService, IGameChatService chatService,IGameSkillService skillService)
{
_userService = userService;
_attrService = attrService;
@@ -27,6 +27,7 @@ public class UserController : ControllerBase
_relationService = relationService;
_goodsService = goodsService;
_chatService = chatService;
_skillService = skillService;
}
@@ -280,4 +281,16 @@ public class UserController : ControllerBase
return PoAction.Message("操作失败,请稍后尝试!");
}
}
/// <summary>
/// 获取用户技能
/// </summary>
/// <returns></returns>
[HttpGet]
public async Task<IPoAction>GetUserSkill()
{
var userId = StateHelper.userId;
var data = await _skillService.GetUserSkill(userId);
return PoAction.Ok(data);
}
}