Ejemplo n.º 1
0
        public async Task <IActionResult> TransferTeamAsync([FromBody] TransferTeamDto dto)
        {
            string openId = GetOpenId();

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

                return(SuccessMsg("转让成功!"));
            }
            catch (Exception err)
            {
                _logger.Error(typeof(TeamController), "转让失败!", new Exception(err.Message));
                return(FailedMsg(err.Message));
            }
        }