示例#1
0
        public ResponseResult <byte[]> SaveToBytes(BarCodeCreateInput barCodeCreateInput)
        {
            BarCodeCreateEntity barCodeCreateEntity = BarCodeConvert.ChangeEntity(barCodeCreateInput);

            byte[] result = BarCodeHelper.SaveCodeToBytes(barCodeCreateEntity);
            return(ResponseResult <byte[]> .Success(result));
        }
示例#2
0
        public ResponseResult Test(BarCodeCreateInput barCodeCreateInput)
        {
            BarCodeCreateEntity barCodeCreateEntity = BarCodeConvert.ChangeEntity(barCodeCreateInput);
            string filename = BarCodeHelper.SaveCode(barCodeCreateEntity);

            return(ResponseResult.Success($"条形码存储成功:{filename}"));
        }
示例#3
0
        public ResponseResult <string> SaveToBase64(BarCodeCreateInput barCodeCreateInput)
        {
            BarCodeCreateEntity barCodeCreateEntity = BarCodeConvert.ChangeEntity(barCodeCreateInput);
            string result = BarCodeHelper.SaveCodeToBase64(barCodeCreateEntity);

            return(ResponseResult <string> .Success(result));
        }