Esempio n. 1
0
        /// <summary>
        /// 修改密码
        /// </summary>
        /// <param name="request"></param>
        /// <returns></returns>
        public UpdateStaffPwdResponse UpdateStaffPwd(UpdateStaffPwdRequest request)
        {
            UpdateStaffPwdResponse response = new UpdateStaffPwdResponse();
            var res = dal.UpdateStaffPwd(request.spwd, request.sname);

            if (res > 0)
            {
                response.IsRegistSuccess = true;
                response.Message         = "密码修改成功";
            }
            else
            {
                response.Status  = false;
                response.Message = "密码修改失败";
                return(response);
            }

            return(response);
        }