package com.ruoyi.api.controller.clock;

import cn.dev33.satoken.annotation.SaCheckPermission;
import com.ruoyi.api.controller.common.AbstractApiController;
import com.ruoyi.clock.domain.BasicInfo;
import com.ruoyi.clock.domain.bo.BasicInfoBo;
import com.ruoyi.clock.service.IBasicInfoService;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.annotation.RepeatSubmit;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.R;
import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.enums.BusinessType;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;

/**
 * 基础设置Controller
 *
 * @author pengc
 * @date 2026-03-04
 */
@Validated
@Api(value = "基础设置控制器", tags = {"基础设置管理"})
@RequiredArgsConstructor
@RestController
@RequestMapping("/api/clock/basicInfo")
public class ApiBasicInfoController extends AbstractApiController {

    private final IBasicInfoService iBasicInfoService;

    /**
     * 获取基础设置详细信息
     * @return
     */
    @ApiOperation("用户协议配置-通过id查询")
    @GetMapping(value = "/queryInfo")
    public R<BasicInfo> queryInfo() {
        return R.ok(iBasicInfoService.queryBasicInfo());
    }

}
