All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.diboot.devtools.v2.OO00OOOOOO000O0O 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.diboot.core.entity.Dictionary; import com.diboot.core.holder.AnnotationRestApiHolder; import com.diboot.core.holder.api.RestApi; import com.diboot.core.service.DictionaryServiceExtProvider; import com.diboot.core.util.V; import com.diboot.core.vo.DictionaryVO; import com.diboot.core.vo.JsonResult; import com.diboot.core.vo.LabelValue; import com.diboot.core.vo.Status; 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 java.util.List; @Hidden @Slf4j @RestController @RequestMapping("/diboot/devtools") @Deprecated() public class OO00OOOOOO000O0O { @Autowired(required = false) private DictionaryServiceExtProvider l1l1llllll1ll; @O0O0OO0O00O00O00 @PostMapping("/dict/add") @Deprecated() public JsonResult l11l1ll1llll11l(@RequestBody DictionaryVO ll1ll11l1111) { if (l11111l1lll1l().existsDictType(ll1ll11l1111.getType())) { return new JsonResult(Status.FAIL_OPERATION, OOO0OO00O00O00OO.l11llll1ll11ll1("5re75Yqg5a2X5YW45aSx6LSlOiDnvJbnoIHph43lpI0=")); } boolean l111l11111ll = false; if (OO0O0OOOOO0O0O00.l1l1l1lll11lll1()) { String llll1l1l1111 = OO0O0OOOOO0O0O00.lll1111lll1l11l(); if (V.notEmpty(llll1l1l1111)) { ll1ll11l1111.setAppModule(llll1l1l1111); ll1ll11l1111.getChildren().forEach(llllll11ll11 -> { llllll11ll11.setAppModule(llll1l1l1111); }); } l111l11111ll = O0OO0O0OO0000000.l1l1l11111l1ll1(ll1ll11l1111); } else { l111l11111ll = l11111l1lll1l().createDictAndChildren(ll1ll11l1111); } if (l111l11111ll) { return JsonResult.OK(ll1ll11l1111); } else { return JsonResult.FAIL_OPERATION(OOO0OO00O00O00OO.l11llll1ll11ll1("5re75Yqg5a2X5YW45aSx6LSl")); } } @O0O0OO0O00O00O00 @GetMapping("/dict/chk") @Deprecated() public JsonResult l1111ll1l1l1l11(@RequestParam(value = "type") String l1l1llll11ll) { if (l11111l1lll1l().existsDictType(l1l1llll11ll)) { return JsonResult.FAIL_OPERATION(OOO0OO00O00O00OO.l11llll1ll11ll1("57yW56CB6YeN5aSN")); } return JsonResult.OK(OOO0OO00O00O00OO.l11llll1ll11ll1("5qOA5p+l5oiQ5Yqf")); } @O0O0OO0O00O00O00 @GetMapping("/dict/list") @Deprecated() public JsonResult ll1ll1l111ll1l1() throws Exception { List llll1ll11111 = null; if (OO0O0OOOOO0O0O00.l1l1l1lll11lll1()) { llll1ll11111 = O0OO0O0OO0000000.l11ll11l1111ll1(); } else { llll1ll11111 = l11111l1lll1l().getDictDefinitionList(); } return JsonResult.OK(llll1ll11111); } @O0O0OO0O00O00O00 @GetMapping("/dict/all") @Deprecated() public JsonResult llll11l111111ll() throws Exception { List lllllll1lll1 = null; if (OO0O0OOOOO0O0O00.l1l1l1lll11lll1()) { lllllll1lll1 = O0OO0O0OO0000000.l1ll1111ll111ll(); } else { lllllll1lll1 = l11111l1lll1l().getDictDefinitionVOList(); } return JsonResult.OK(lllllll1lll1); } @O0O0OO0O00O00O00 @GetMapping("/dict/load/{code}") @Deprecated() public JsonResult l1111l11lll1l1l(@PathVariable("code") String l111ll1ll1l1) throws Exception { List l11ll11lll11 = l11111l1lll1l().getLabelValueList(l111ll1ll1l1); if (l11ll11lll11 != null && l11ll11lll11.size() > 20) { l11ll11lll11 = l11ll11lll11.subList(0, 20); } return JsonResult.OK(l11ll11lll11); } @O0O0OO0O00O00O00 @GetMapping("/res/pth") @Deprecated() public JsonResult llll111l1111l1l() throws Exception { String l11l11111ll1 = OOO0O00O00O0OO0O.ll1l1l1111l1lll(); return JsonResult.OK(l11l11111ll1); } @O0O0OO0O00O00O00 @GetMapping("/res/rfs") @Deprecated() public JsonResult ll11l1lllll1ll1() throws Exception { OO0OOOO0OOO0000O.lllllll11llll1l(); OO0OOOO0OOO0000O.lllllll11l1l11l(); return JsonResult.OK(); } @O0O0OO0O00O00O00 @GetMapping(value = "/loadApiList/{category}") @Deprecated() public JsonResult llll11l1llll1l1(@PathVariable("category") String ll11lll111ll) { List lll111lll1ll = AnnotationRestApiHolder.getRestApiList(ll11lll111ll); return JsonResult.OK(lll111lll1ll); } @O0O0OO0O00O00O00 @GetMapping("/ver") @Deprecated() public JsonResult lll1l1111ll1ll1() throws Exception { return JsonResult.OK(O0O0O0000OO0O000.llll1l1lll1l1l); } @Deprecated() private DictionaryServiceExtProvider l11111l1lll1l() { if (l1l1llllll1ll == null) { log.error(OOO0OO00O00O00OO.l11llll1ll11ll1("5pegRGljdGlvbmFyeeWtl+WFuOacjeWKoeebuOWFs+aPkOS+m+iAhe+8jOaXoOazleS9v+eUqERpY3Rpb25hcnnnm7jlhbPlip/og73vvIE=")); return null; } return l1l1llllll1ll; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy