/// <summary>
        ///     保存用户头像
        /// </summary>
        /// <param name="input">用户头像</param>
        /// <returns></returns>
        public Task <bool> SaveHeadImage(SystemUserSaveHeadImageInput input)
        {
            const string sql = "UPDATE System_UserInfo SET HeadImage=@headImage WHERE UserId=@userId";

            return(SqlMapperUtil.InsertUpdateOrDeleteSqlBool <SystemUserInfo>(sql, new
            {
                userId = input.UserId,
                headImage = input.HeadImage
            }));
        }
Esempio n. 2
0
        /// <summary>
        ///     保存用户头像
        /// </summary>
        /// <param name="input">用户头像</param>
        /// <returns></returns>
        public async Task <OperateStatus> SaveHeadImage(SystemUserSaveHeadImageInput input)
        {
            var operateStatus = new OperateStatus();

            if (await _userInfoRepository.SaveHeadImage(input))
            {
                operateStatus.ResultSign = ResultSign.Successful;
                operateStatus.Message    = Chs.Successful;
            }
            return(operateStatus);
        }