Commit 4b4a5d6f by flying-cattle

操作类,和生成类调整

parent c681c7a2
......@@ -54,7 +54,7 @@ public class ${entityName}Controller {
* @author ${author}
* @time ${createTime}
*/
@GetMapping("/get${entityName}ById/{id}")
@GetMapping("/getById/{id}")
@ApiOperation(value = "获取${entityComment}信息", notes = "获取${entityComment}信息[${objectName}],作者:${author}")
@ApiImplicitParam(paramType="path", name = "id", value = "${entityComment}id", required = true, dataType = "${idType}")
public JsonResult<${entityName}> get${entityName}ById(@PathVariable("id")${idType} id){
......@@ -84,7 +84,7 @@ public class ${entityName}Controller {
* @author ${author}
* @time ${createTime}
*/
@PostMapping("/insertSelective")
@PostMapping("/saveOrUpdate")
@ApiOperation(value = "添加${entityComment}", notes = "添加${entityComment}[${objectName}],作者:${author}")
public JsonResult<${entityName}> insertSelective(${entityName} ${objectName}){
JsonResult<${entityName}> result=new JsonResult<${entityName}>();
......
......@@ -12,7 +12,12 @@ import com.github.mybatis.fl.entity.BasisInfo;
import com.github.mybatis.fl.util.EntityInfoUtil;
import com.github.mybatis.fl.util.Generator;
import com.github.mybatis.fl.util.MySqlToJavaUtil;
/**
* Copyright: Copyright (c) 2019
*
* <p>说明: 自动生成工具</P>
* <p>源码地址:https://gitee.com/flying-cattle/mybatis-dsc-generator</P>
*/
public class TestMain {
//基础信息
public static final String PROJECT="user_center";
......@@ -53,9 +58,8 @@ public class TestMain {
String aa4=Generator.createService(fileUrl, bi).toString();
String aa5=Generator.createServiceImpl(fileUrl, bi).toString();
String aa6=Generator.createController(fileUrl, bi).toString();
//swagger配置文件还未上传至maven中央库,代码中已实现。
//是否创建swagger配置文件
String aa7=Generator.createSwaggerConfig(fileUrl, bi).toString();
//创建swagger配置
System.out.println(aa1);
System.out.println(aa2);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment