Exemplo n.º 1
0
        public ResponseResult <byte[]> CreateToBytes(QRCodeCreateInput qRCodeCreateInput)
        {
            QRCodeCreateEntity qRCodeCreateEntity = QRCodeConvert.ChangeEntity(qRCodeCreateInput);

            byte[] result = QRCoderHelper.CreateQRCodeToBytes(qRCodeCreateEntity);
            return(ResponseResult <byte[]> .Success(result));
        }
Exemplo n.º 2
0
        public ResponseResult Test(QRCodeCreateInput qRCodeCreateInput)
        {
            QRCodeCreateEntity qRCodeCreateEntity = QRCodeConvert.ChangeEntity(qRCodeCreateInput);
            string             fileName           = QRCoderHelper.CreateQRCodeToFile(qRCodeCreateEntity);

            return(ResponseResult.Success(fileName));
        }
Exemplo n.º 3
0
        public ResponseResult <string> CreateToBase64(QRCodeCreateInput qRCodeCreateInput)
        {
            QRCodeCreateEntity qRCodeCreateEntity = QRCodeConvert.ChangeEntity(qRCodeCreateInput);
            string             result             = QRCoderHelper.CreateQRCodeToBase64(qRCodeCreateEntity);

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