提交 981a16b3 authored 作者: zhoushaopan's avatar zhoushaopan

feat(系统版本管理模块): 新增版本号

新增版本号
上级 eac5df7d
...@@ -107,6 +107,7 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter { ...@@ -107,6 +107,7 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter {
.and() .and()
.authorizeRequests() .authorizeRequests()
.antMatchers("/file/llq/**").permitAll() .antMatchers("/file/llq/**").permitAll()
.antMatchers("/packageVersion/getVersion").permitAll()//
.antMatchers("/equip/file/llq/**").permitAll() .antMatchers("/equip/file/llq/**").permitAll()
.antMatchers(HttpMethod.OPTIONS, "/**").permitAll() .antMatchers(HttpMethod.OPTIONS, "/**").permitAll()
// .withObjectPostProcessor(new ObjectPostProcessor<FilterSecurityInterceptor>() { // .withObjectPostProcessor(new ObjectPostProcessor<FilterSecurityInterceptor>() {
......
...@@ -2,6 +2,7 @@ package com.tykj.dev.device.zxing.controller; ...@@ -2,6 +2,7 @@ package com.tykj.dev.device.zxing.controller;
import com.tykj.dev.device.zxing.entity.PackageVersion; import com.tykj.dev.device.zxing.entity.PackageVersion;
import com.tykj.dev.device.zxing.service.PackageVersionService; import com.tykj.dev.device.zxing.service.PackageVersionService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiOperation; import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
...@@ -10,7 +11,7 @@ import org.springframework.web.bind.annotation.RequestMapping; ...@@ -10,7 +11,7 @@ import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController; import org.springframework.web.bind.annotation.RestController;
@RestController @RestController
@ApiModel("系统版本管理模块") @Api(tags = "系统版本管理模块", description = "系统版本管理模块接口")
@RequestMapping("/packageVersion") @RequestMapping("/packageVersion")
public class PackageVersionController { public class PackageVersionController {
......
...@@ -23,10 +23,10 @@ public class PackageVersion { ...@@ -23,10 +23,10 @@ public class PackageVersion {
@ApiModelProperty("id主键") @ApiModelProperty("id主键")
private Integer id; private Integer id;
@ApiModelProperty("上一次版本号") @ApiModelProperty("测试版版本")
private String oldVersion; private String version;
@ApiModelProperty("当前版本号") // @ApiModelProperty("当前版本号")
private String nowVersion; // private String formalVersion;
} }
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论