Exemple #1
0
        /// <summary>
        /// 注册账号是否存在
        /// </summary>
        /// <param name="LoginCode"></param>
        /// <returns></returns>
        public async Task <bool> UserExist([FromBody] LoginQuery loginQuery)
        {
            var sql  = "select * from Users where LoginCode=@LoginCode";
            var data = await _sqlQuery.FirstAsync <LoginDto>(sql, new { LoginCode = loginQuery.LoginCode });

            if (data == null)
            {
                return(false);
            }
            return(true);
        }