package com.yingpaipay.business.controller.applet;

import com.yingpaipay.business.domain.vo.AppletMineCountVo;
import com.yingpaipay.business.service.IDocumentService;
import lombok.RequiredArgsConstructor;
import org.dromara.common.core.domain.R;
import org.dromara.common.web.core.BaseController;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/applet/mine")
@RequiredArgsConstructor
public class AppletMineController extends BaseController {

    private final IDocumentService documentService;

    @GetMapping("/count")
    public R<AppletMineCountVo> getCount() {
        return R.ok(documentService.getCount());
    }

}
