package cn.reghao.tnb.admin.controller;

import cn.reghao.tnb.admin.service.AdminService;
import cn.reghao.tnb.common.db.SelectOption;
import cn.reghao.tnb.common.web.WebResult;
import io.swagger.v3.oas.annotations.Operation;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author reghao
 * @date 2026-01-21 14:02:38
 */
@RestController
@RequestMapping("/api/admin1")
public class AdminController {
    private final AdminService adminService;

    public AdminController(AdminService adminService) {
        this.adminService = adminService;
    }

    @Operation(summary = "", description = "N")
    @GetMapping(value = "/stat", produces = MediaType.APPLICATION_JSON_VALUE)
    public String stat() {
        adminService.stat();
        return WebResult.success("admin stat");
    }
}
