package org.dromara.payment.coverpage.controller;

import jakarta.validation.constraints.NotNull;
import lombok.RequiredArgsConstructor;
import org.dromara.common.core.domain.R;
import org.dromara.common.idempotent.annotation.RepeatSubmit;
import org.dromara.common.mybatis.core.page.PageQuery;
import org.dromara.common.web.core.BaseController;
import org.dromara.payment.coverpage.domain.CoverPageBo;
import org.dromara.payment.coverpage.domain.CoverPageInfo;
import org.dromara.payment.coverpage.service.ICoverPageService;
import org.dromara.payment.task.domain.MerTaskDetail;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


/**
 * @Title CoverPageController
 * @Description  首页接口
 * @Author wuchuang
 * @Date 2024/5/29 16:12
 */
@Validated
@RequiredArgsConstructor
@RestController
@RequestMapping("/cover")
public class CoverPageController extends BaseController {

    private final ICoverPageService coverPageService;

    /**
     * 获取首页 金额信息
     *
     */
//    @SaCheckPermission("payment:task:query")
    @GetMapping("/getCoverInfo")
    public R<CoverPageInfo> getCoverInfo(CoverPageBo bo) {
        return R.ok(coverPageService.getCoverInfo(bo));
    }



}
