package com.sptg.gateway.controller;

import com.sptg.common.core.beans.ResultBean;
import com.sptg.common.core.beans.ResultEnum;
import com.sptg.permissions.api.entity.AppPackage;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * title: HelperController
 * description:
 *
 *                  
 *            
 */
@RestController
@RequiredArgsConstructor
public class HelperController {

    /**
     * @return 获取app下载地址二维码地址
     */
    @PostMapping(value = "/helper/getDownLoadAppQrImg")
    public ResultBean<String> getDownLoadAppQrImg(){
        String qrCodeImg = "http://apphome.tanwan.com/h5_v1.2/dist/assets/download/qrcode_wLink.png";
        return new ResultBean<>(ResultEnum.SUCCESS,qrCodeImg);
    }

    /**
     * @return 获取小程序二维码地址
     */
    @PostMapping(value = "/helper/getSmallAppQrImg")
    public ResultBean<String> getSmallAppQrImg(){
        String qrCodeImg = "http://apphome.tanwan.com/h5_v1.2/dist/assets/download/qrcode_ios.png";
        return new ResultBean<>(ResultEnum.SUCCESS,qrCodeImg);
    }


}
