예제 #1
0
        public async Task <IActionResult> UpdateTeamAsync([FromBody] UpdateTeamDto dto)
        {
            string openId = GetOpenId();

            try
            {
                var data = await _teamServices.UpdateTeamAsync(dto, openId);

                return(UpdateSuccessMsg());
            }
            catch (Exception err)
            {
                _logger.Error(typeof(TeamController), "更新团队信息失败!", new Exception(err.Message));
                return(FailedMsg("更新团队信息失败! " + err.Message));
            }
        }