Exemplo n.º 1
0
        public async Task <IActionResult> PostTeamAsync([FromBody] AddTeamDto input)
        {
            string openId = GetOpenId();

            try
            {
                var data = await _teamServices.PostTeamAsync(input, openId);

                return(SuccessMsg());
            }
            catch (Exception err)
            {
                _logger.Error(typeof(TeamController), "添加团队失败!", new Exception(err.Message));
                return(FailedMsg("添加团队失败!" + err.Message));
            }
        }