package com.mmc.iuav.user.controller;

import com.mmc.iuav.response.ResultBody;
import com.mmc.iuav.user.service.WxService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiResponse;
import io.swagger.annotations.ApiResponses;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;

/**
 * @author: zj
 * @Date: 2023/5/17 11:16
 */
@Api(tags = "微信相关接口")
@RequestMapping("/wx/")
@RestController
public class WxController {

    @Autowired
    private WxService wxService;

    @ApiOperation(value = "小程序-获取当前用户的小程序推荐码")
    @ApiResponses({ @ApiResponse(code = 200, message = "OK", response = String.class) })
    @PostMapping("getAppletRcdCode")
    public ResultBody getAppletRcdCode(HttpServletRequest request) {
        return ResultBody.success();
//        return wxService.getAppletCodeImgBase64(WxMsgDataConfig.USER_APPLET_PAGE_INDEX,
//                WxHandler.createRcdScene(this.getCurrentUser(request).getId()));
    }
}
