添加字段
This commit is contained in:
parent
5cf2734d9f
commit
bf9e3d8135
|
|
@ -8,6 +8,7 @@ import com.nu.modules.appversionconfig.service.IAppVersionConfigService;
|
|||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.apache.commons.lang.StringUtils;
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
import org.jeecg.common.api.vo.Result;
|
||||
import org.jeecg.common.aspect.annotation.AutoLog;
|
||||
|
|
@ -67,6 +68,9 @@ public class AppVersionConfigController extends JeecgController<AppVersionConfig
|
|||
@ApiOperation(value="app版本记录-添加", notes="app版本记录-添加")
|
||||
@PostMapping(value = "/add")
|
||||
public Result<String> add(@RequestBody AppVersionConfig appVersionConfig) {
|
||||
if(StringUtils.equals("1",appVersionConfig.getWgtFlag())){
|
||||
appVersionConfig.setWgtUrl(appVersionConfig.getVersionUrl());
|
||||
}
|
||||
appVersionConfigService.save(appVersionConfig);
|
||||
return Result.OK("添加成功!");
|
||||
}
|
||||
|
|
|
|||
|
|
@ -74,4 +74,8 @@ public class AppVersionConfig implements Serializable {
|
|||
@Excel(name = "状态 0-不可用 1-可用", width = 15)
|
||||
@ApiModelProperty(value = "状态 0-不可用 1-可用")
|
||||
private Integer status;
|
||||
|
||||
@Dict(dicCode = "app_upload_type")
|
||||
private String wgtFlag;
|
||||
private String wgtUrl;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -60,6 +60,8 @@ public class VersionManageApi {
|
|||
info.setUpdate_url(appConfig.getVersionUrl());
|
||||
info.setUpdate_tips(appConfig.getUpdateTrips());
|
||||
info.setForceupdate(appConfig.getIsForceUpdate());
|
||||
info.setWgt_flag(appConfig.getWgtFlag());
|
||||
info.setWgt_url(appConfig.getWgtUrl());
|
||||
map.put("code", 100);
|
||||
map.put("msg", "应用程序需要更新");
|
||||
map.put("data", info);
|
||||
|
|
|
|||
|
|
@ -17,6 +17,8 @@ public class AppConfig {
|
|||
private String updateBy;//更新者
|
||||
private Date updateTime;//更新时间
|
||||
private int status;//状态 0:不可以,1:可用
|
||||
private int wgtFlag;//更新方式 0全量更新 1增量更新
|
||||
private String wgtUrl;//增量更新地址
|
||||
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue