package cn.iocoder.yudao.module.base.controller.app;

import cn.iocoder.yudao.framework.tenant.core.aop.TenantIgnore;
import cn.iocoder.yudao.module.jx.payment.vo.PayVo;
import cn.iocoder.yudao.module.jx.service.DrivePayService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import javax.annotation.security.PermitAll;

@Slf4j
@RestController
@RequestMapping("/small/driving")
public class DrivePaySmallProgramController {

    @Resource
    private DrivePayService drivePayService;

    @GetMapping("/findSelfInfo")
    @TenantIgnore
    public PayVo findSelfInfo() {
        return drivePayService.findSelfInfo();
    }
}
