com.diboot.devtools.v2.OOO0OO00000000OO Maven / Gradle / Ivy
The newest version!
/**
* Copyright (c) dibo.ltd, https://www.dibo.ltd, https://www.diboot.com
*
* ---- 版权声明 ----
* Diboot相关商标、软件著作权、专利等全部知识产权隶属于苏州帝博信息技术有限公司。
* Diboot devtools 非开源项目,如您有devtools相关定制化需求,请至官网(https://www.dibo.ltd)联系帝博信息商务。
*
* 《中华人民共和国刑法》规定:破坏计算机信息系统罪,处五年以下有期徒刑或者拘役;后果特别严重的,处五年以上有期徒刑。
* 侵犯知识产权罪:处三年以下有期徒刑、拘役或管制,并处罚金;情节特别严重的,处三年以上七年以下有期徒刑,并处罚金。
*
* 任何尝试破解、破坏devtools、侵犯diboot知识产权的行为,我们将不惜一切代价追究到底!
*
*/
package com.diboot.devtools.v2;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.diboot.core.exception.BusinessException;
import com.diboot.core.util.V;
import com.diboot.core.vo.JsonResult;
import io.swagger.v3.oas.annotations.Hidden;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import javax.validation.Valid;
import java.util.List;
import java.util.Map;
@Hidden
@Slf4j
@RestController
@RequestMapping("/diboot/devtools/pcds")
@Deprecated()
public class OOO0OO00000000OO {
@Autowired
private O0O0OO0O0O000000 ll11111l11l11;
@Autowired
private O0OO0OO000OO0000 l1ll1l1l1ll11;
@Autowired
private OO0OOOO0O000O000 ll1ll1111111l;
@Autowired
private OO0O0000O0O000OO lll111l11llll;
@O0O0OO0O00O00O00
@PostMapping("/gn")
@Deprecated()
public JsonResult lll1lllllll11l1(@Valid @ModelAttribute O0OO00O000OOO00O ll111l1l1111) throws Exception {
String l1111ll1l1ll = OO0O0OOOOO0O0O00.lll1l1l1lllll11();
if (V.notEmpty(l1111ll1l1ll)) {
return JsonResult.FAIL_VALIDATION(l1111ll1l1ll);
}
ll1ll1111111l.l11l1l1l1l1111l(ll111l1l1111);
return JsonResult.OK(ll11111l11l11.l11l11lll1ll111(ll111l1l1111));
}
@O0O0OO0O00O00O00
@PostMapping("/ss")
@Deprecated()
public JsonResult l11l11l1ll1l1ll(@ModelAttribute O0OO00O000OOO00O ll1l1l11ll11) throws Exception {
String l1111l1l1lll = OO0O0OOOOO0O0O00.lll1l1l1lllll11();
if (V.notEmpty(l1111l1l1lll)) {
return JsonResult.FAIL_VALIDATION(l1111l1l1lll);
}
ll1ll1111111l.l11l1l1l1l1111l(ll1l1l11ll11);
return JsonResult.OK();
}
@O0O0OO0O00O00O00
@GetMapping("/vorl/{tableName}/{voType}")
@Deprecated()
public JsonResult ll1l1l11l1111l1(@PathVariable("tableName") String l111111ll11l, @PathVariable("voType") String ll1l1111l1l1) throws Exception {
try {
List l11l1111l11l = ll11111l11l11.lll1l11l1lll11l(l111111ll11l, ll1l1111l1l1);
return JsonResult.OK(l11l1111l11l);
} catch (BusinessException e) {
return JsonResult.FAIL_EXCEPTION(e.getMessage());
}
}
@O0O0OO0O00O00O00
@GetMapping("/pt")
@Deprecated()
public JsonResult lll11ll1llll1ll() throws Exception {
if (V.isEmpty(OO0O0OOOOO0O0O00.l1lll1ll1111l1l().getOutputPathAdminUi())) {
return JsonResult.FAIL_OPERATION(OOO0OO00O00O00OO.l11llll1ll11ll1("6K+36YWN572uYWRtaW7liY3nq6/pobnnm67ot6/lvoQ6IGRpYm9vdC5kZXZ0b29scy5vdXRwdXQtcGF0aC1mcm9udGVuZA=="));
}
String l11ll1l1lll1 = "";
try {
l11ll1l1lll1 = OO0O00OOOO00OO00.l1ll11lll111lll();
} catch (BusinessException e) {
return JsonResult.FAIL_OPERATION(e.getMessage());
}
return JsonResult.OK(l11ll1l1lll1);
}
@O0O0OO0O00O00O00
@GetMapping("/rt")
@Deprecated()
public JsonResult l1111ll111ll111() throws Exception {
String l1lll11l111l = "";
try {
l1lll11l111l = ll11111l11l11.l1l111ll11l11l1();
} catch (BusinessException e) {
return JsonResult.FAIL_OPERATION(e.getMessage());
}
return JsonResult.OK(l1lll11l111l);
}
@O0O0OO0O00O00O00
@GetMapping("/trmnl")
@Deprecated()
public JsonResult lll1lll11l1llll() throws Exception {
try {
List llll1111llll = lll111l11llll.lll1lll11l1llll();
return JsonResult.OK(llll1111llll);
} catch (BusinessException e) {
return JsonResult.FAIL_OPERATION(e.getMessage());
}
}
@O0O0OO0O00O00O00
@PostMapping("/addm")
@Deprecated()
public JsonResult l1l1ll11l1ll1l1(@RequestBody Map ll111l11l1l1) throws Exception {
String l11l1l1ll11l = OO0O0OOOOO0O0O00.lll1l1l1lllll11();
if (V.notEmpty(l11l1l1ll11l)) {
return JsonResult.FAIL_VALIDATION(l11l1l1ll11l);
}
O00OO000O0O0O0O0 l1l1lllll11l = lll111l11llll.l1l1ll11l1ll1l1(ll111l11l1l1);
return JsonResult.OK(l1l1lllll11l);
}
@O0O0OO0O00O00O00
@GetMapping("/rctl")
@Deprecated()
public JsonResult lllll1l11ll1lll(@RequestParam("tableName") String l1ll1ll11lll) throws Exception {
if (V.isEmpty(l1ll1ll11lll)) {
return JsonResult.OK();
}
List l111l1llll11 = l1ll1l1l1ll11.getEntityList(Wrappers.lambdaQuery().eq(OOO0OO00O00OO00O::getProjectType, O0O0O0000OO0O000.ll1l1llll11lll).eq(OOO0OO00O00OO00O::getPanelCode, l1ll1ll11lll).orderByDesc(OOO0OO00O00OO00O::getId));
ll1ll1111111l.lll1ll1111llll1(l111l1llll11);
return JsonResult.OK(l111l1llll11);
}
}