Exemplo n.º 1
0
 public IActionResult EditDevicePwd(EditDevicePwdDto editDevicePwdDto)
 {
     if (_devicesService.EditDevicePwd(editDevicePwdDto))
     {
         return(Ok(new ResponseBody()
         {
             ResponseCode = ResponseCodeEnum.Success, ResponseMessage = "更新成功"
         }));
     }
     return(Ok(new ResponseBody()
     {
         ResponseCode = ResponseCodeEnum.Fail, ResponseMessage = "更新失败"
     }));
 }
Exemplo n.º 2
0
 public bool EditDevicePwd(EditDevicePwdDto editDevicePwdDto)
 {
     return(_devicesRepository.EditDevicePwd(editDevicePwdDto));
 }
Exemplo n.º 3
0
        public bool EditDevicePwd(EditDevicePwdDto editDevicePwdDto)
        {
            string execSp = "cp_API_Devices_EditDevicePwd";

            return(_connection.Execute(execSp, new { editDevicePwdDto.device_id, editDevicePwdDto.device_user_password }, null, null, commandType: CommandType.StoredProcedure) > 0 ? true : false);
        }