|
|
|
@@ -14,6 +14,7 @@ import io.swagger.annotations.ApiOperation; |
|
|
|
import org.slf4j.Logger; |
|
|
|
import org.slf4j.LoggerFactory; |
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
import org.springframework.beans.factory.annotation.Value; |
|
|
|
import org.springframework.web.bind.annotation.GetMapping; |
|
|
|
import org.springframework.web.bind.annotation.RequestMapping; |
|
|
|
import org.springframework.web.bind.annotation.RestController; |
|
|
|
@@ -27,6 +28,9 @@ import java.util.Map; |
|
|
|
public class WxMallController extends BaseController { |
|
|
|
private final Logger logger = LoggerFactory.getLogger(this.getClass()); |
|
|
|
|
|
|
|
@Value("${version}") |
|
|
|
private String version; |
|
|
|
|
|
|
|
@Autowired |
|
|
|
private WxMallService wxMallService; |
|
|
|
|
|
|
|
@@ -68,5 +72,12 @@ public class WxMallController extends BaseController { |
|
|
|
return new ResultData(Result.SUCCESS, "查询成功", mall); |
|
|
|
} |
|
|
|
|
|
|
|
@AuthIgnore |
|
|
|
@ApiOperation("获取后端版本号") |
|
|
|
@GetMapping("/version") |
|
|
|
public ResultData version() { |
|
|
|
return new ResultData(version); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |