use of com.ibeiliao.deployment.admin.common.RestResult in project Corgi by kevinYin.
the class ListEnvironmentController method delete.
/**
* save
*/
@ResponseBody
@RequestMapping("save.do")
@MenuResource("保存环境")
public RestResult<Object> delete(int envId, String envName, int onlineFlag) {
if (StringUtils.isBlank(envName)) {
return new RestResult<>(ApiCode.PARAMETER_ERROR, "环境名称不能为空");
}
ProjectEnv projectEnv = new ProjectEnv();
projectEnv.setEnvId(envId);
projectEnv.setEnvName(envName.trim());
projectEnv.setOnlineFlag(onlineFlag);
projectEnvService.saveEnv(projectEnv);
return new RestResult<>(null);
}
Aggregations