package com.skr.mdm.api.system.controller;

import com.skr.mdm.result.ResponseResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author nfq
 * @date 2022-11-07 9:49
 */
@RestController
@Api(tags = "管控版本")
public class MdmVersionController {

    @Value("${mdm.version}")
    private String mdmVersion;

    @GetMapping("mdm/version")
    @ApiOperation(value = "版本号")
    public ResponseResult mdmVersion() {
        return ResponseResult.success(mdmVersion);
    }
}
