12121
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user