package com.easyproject.client.controller.guide;

import com.easyproject.clientbus.domain.dto.SelectGuidePageDto;
import com.easyproject.clientbus.service.guide.IServiceGuideService;
import com.easyproject.common.core.domain.AjaxClientResult;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * 方法说明: 服务指南
 * @param
 * @return
 * @author java-101
 * @date 2025-03-23 17:10:31
 */
@Slf4j
@RestController
@RequestMapping("/v1/serviceGuide")
public class ServiceGuideController {

    @Resource
    private IServiceGuideService serviceGuideService;

    /**
     * 方法说明: 服务指南分类
     * @param
     * @return
     * @author java-101
     * @date 2025-03-23 17:13:29
     */
    @GetMapping("/guideCategory")
    public AjaxClientResult guideCategory(){
        return serviceGuideService.guideCategory();
    }

    /**
     * 方法说明: 服务指南栏目
     * @param
     * @return
     * @author java-101
     * @date 2025-03-23 17:14:42
     */
    @GetMapping("/guideItem")
    public AjaxClientResult guideItem(SelectGuidePageDto dto){
        return serviceGuideService.guideItem(dto);
    }

}
