public ResponseResult <byte[]> SaveToBytes(BarCodeCreateInput barCodeCreateInput) { BarCodeCreateEntity barCodeCreateEntity = BarCodeConvert.ChangeEntity(barCodeCreateInput); byte[] result = BarCodeHelper.SaveCodeToBytes(barCodeCreateEntity); return(ResponseResult <byte[]> .Success(result)); }
public ResponseResult Test(BarCodeCreateInput barCodeCreateInput) { BarCodeCreateEntity barCodeCreateEntity = BarCodeConvert.ChangeEntity(barCodeCreateInput); string filename = BarCodeHelper.SaveCode(barCodeCreateEntity); return(ResponseResult.Success($"条形码存储成功:{filename}")); }
public ResponseResult <string> SaveToBase64(BarCodeCreateInput barCodeCreateInput) { BarCodeCreateEntity barCodeCreateEntity = BarCodeConvert.ChangeEntity(barCodeCreateInput); string result = BarCodeHelper.SaveCodeToBase64(barCodeCreateEntity); return(ResponseResult <string> .Success(result)); }