package com.iformall.controller;

import com.iformall.common.ResultData;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;



@RestController
@Api(description = "登录相关接口")
public class HomeController {
    private final Logger logger = LoggerFactory.getLogger(this.getClass());

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

    @Value("${spring.mail.username}")
    private String from;

    @ApiOperation("获取后端版本号")
    @GetMapping("/version")
    public ResultData version() {
        return new ResultData(version);
    }


}