package com.jeequan.jeepay.mgr.ctrl.merchant;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.jeequan.jeepay.core.model.ApiRes;
import com.jeequan.jeepay.db.entity.MchAppApplyment;
import com.jeequan.jeepay.mgr.ctrl.CommonCtrl;
import com.jeequan.jeepay.service.impl.MchAppApplymentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController("/mch/app/applyment")
public class MchAppApplymentController extends CommonCtrl {

    @Autowired private MchAppApplymentService mchAppApplymentService;

    @PreAuthorize("hasAuthority('ENT_MCH_APP_APPLYMENT_LIST')")
    @GetMapping
    public ApiRes list() {
        MchAppApplyment entity = getObject(MchAppApplyment.class);
        IPage iPage = getIPage(true);

        return ApiRes.ok();
    }
}
