|
@@ -1,7 +1,6 @@
|
|
|
package com.qmth.ops.api.controller.admin;
|
|
|
|
|
|
import com.qmth.boot.api.annotation.Aac;
|
|
|
-import com.qmth.boot.api.annotation.BOOL;
|
|
|
import com.qmth.ops.api.constants.OpsApiConstants;
|
|
|
import com.qmth.ops.api.security.AdminSession;
|
|
|
import com.qmth.ops.api.security.Permission;
|
|
@@ -10,7 +9,6 @@ import com.qmth.ops.api.vo.EnvVO;
|
|
|
import com.qmth.ops.biz.domain.AppEnv;
|
|
|
import com.qmth.ops.biz.domain.Env;
|
|
|
import com.qmth.ops.biz.domain.EnvType;
|
|
|
-import com.qmth.ops.biz.service.AppService;
|
|
|
import com.qmth.ops.biz.service.EnvService;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
@@ -26,11 +24,8 @@ public class EnvController {
|
|
|
@Resource
|
|
|
private EnvService envService;
|
|
|
|
|
|
- @Resource
|
|
|
- private AppService appService;
|
|
|
-
|
|
|
@RequestMapping("/types")
|
|
|
- @Aac(auth = BOOL.FALSE)
|
|
|
+ @Aac(auth = false)
|
|
|
public Object types() {
|
|
|
return Arrays.stream(EnvType.values()).map(item -> new CodeNameVO(item.getCode(), item.getName())).toArray();
|
|
|
}
|