diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000000000000000000000000000000000000..c1515808200f0bdc97f5632dea3e63faf8bcb38b --- /dev/null +++ b/.gitignore @@ -0,0 +1,38 @@ +# maven ignore +target/ + +# eclipse ignore +.settings/ +.project +.classpath +dump.rdb +# intellij ignore +.idea/ +out/ +.gradle/ +*.iml + +# local configuration ignore +src/main/webapp/WEB-INF/classes +catalina.base_IS_UNDEFINED/ +VKConf/ +work/ +.gitignore~ +.gitlab-ci.yml~ +*.ipr +*.iws +logs/ +disconf/download + +# vipkidconfig +application.* +classVideo.properties +logback.xml +calendar.properties +remote-config.properties +autoBookClass.properties +task.properties +banner.txt +geetest.properties +morecourse.properties +vkmq.config \ No newline at end of file diff --git a/src/main/java/autojcode/test.java b/src/main/java/autojcode/test.java new file mode 100644 index 0000000000000000000000000000000000000000..15d4d5e8ff12323ad0f8844e89afc8479e9f8d16 --- /dev/null +++ b/src/main/java/autojcode/test.java @@ -0,0 +1,45 @@ +package autojcode;/** + * ${DESCRIPTION} + * + * @author: lizhenyu1 + * @create 2019-01-24 17:55 + */ + +/** + * @description: + * @author: lizy + * @date: 2019/1/24 + */ +public class test { + public Boolean MM(){ + return true; + } + public Boolean MM3() { + //test2 这是测试 + return false; + } + public String MM2(){ + //测试1 + return ""; + } + public String r1(){ + //r1 + //r1 2 + return ""; + } + public String testR1(){ + //r1 + //r1 2 + return ""; + } + public String testR2(){ + //r1 + //r1 2 + return ""; + } + + //第三轮1 + //第三轮2 + //第三轮3 + //第三轮4 +} diff --git a/src/main/java/testController.java b/src/main/java/testController.java new file mode 100644 index 0000000000000000000000000000000000000000..412268533273210cf3a6a02e92938f828f1f12f9 --- /dev/null +++ b/src/main/java/testController.java @@ -0,0 +1,43 @@ +/** + * ${DESCRIPTION} + * + * @author: lizhenyu1 + * @create 2019-01-24 17:38 + */ + +import autojcode.CodeGenerateUtils; +import autojcode.domain.JcodeProperties; +import autojcode.domain.JsonResult; +import autojcode.domain.ResultUtil; +import autojcode.exception.MyBizException; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import io.swagger.annotations.ApiParam; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RestController; + +/** + * @description: + * @author: lizy + * @date: 2019/1/24 + */ +@Api(value = "自动生成代码",description = "自动生成代码") +@RestController +public class testController { + @Autowired + private CodeGenerateUtils codeGenerateUtils; + + @ApiOperation(value = "自动生成代码", notes = "自动生成代码", position = 1) + @PostMapping(value = "/autoJCode") + public JsonResult autoJcodeForDb(@RequestBody @ApiParam(name="jcodeProperties",value="生成参数",required=true) JcodeProperties jcodeProperties) { + try { + // 我是mast1 + String path = codeGenerateUtils.autoJcodeForDb(jcodeProperties); + return ResultUtil.success(path); + } catch (MyBizException e) { + return ResultUtil.error(e); + } + } +}