| @@ -0,0 +1,27 @@ | |||||
| 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; | |||||
| @ApiOperation("获取后端版本号") | |||||
| @GetMapping("/version") | |||||
| public ResultData version() { | |||||
| return new ResultData(version); | |||||
| } | |||||
| } | |||||
| @@ -38,9 +38,7 @@ import java.util.Properties; | |||||
| /** | /** | ||||
| *共享数据库的多租户系统实现 | *共享数据库的多租户系统实现 | ||||
| * TODO 白名单模式 | |||||
| * TODO 黑名单模式 | |||||
| * Created by kleen@qq.com on 2016/08/13. | |||||
| * Created by Stormeye on 2018/10/22. | |||||
| */ | */ | ||||
| @Intercepts({ | @Intercepts({ | ||||
| //@Signature(type = Executor.class, method = "query", args = {MappedStatement.class, Object.class, RowBounds.class, ResultHandler.class}), | //@Signature(type = Executor.class, method = "query", args = {MappedStatement.class, Object.class, RowBounds.class, ResultHandler.class}), | ||||
| @@ -4,7 +4,7 @@ import org.apache.ibatis.mapping.MappedStatement; | |||||
| /** | /** | ||||
| * 需要实现该接口用于获取租户id | * 需要实现该接口用于获取租户id | ||||
| * Created by kleen@qq.com on 2016/08/13. | |||||
| * Created by Stormeye on 2018/10/22. | |||||
| */ | */ | ||||
| public interface TenantInfo { | public interface TenantInfo { | ||||
| String getTenantId(); | String getTenantId(); | ||||