package com.zt.plat.base.controller.base;

import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.zt.plat.framework.common.pojo.CommonResult;

import static com.zt.plat.framework.common.pojo.CommonResult.success;

/**
 * base 控制器
 *
 * @author ZT
 */
@Tag(name = "base")
@RestController
@RequestMapping("/base")
public class BaseDemoController {

    @GetMapping("/hello")
    @Operation(summary = "Hello base")
    public CommonResult<String> hello() {
        return success("Hello, base!");
    }

}
