♻️ 重构代码.完善代码生成格式
➖ 移除依赖UPMS 的分布式事务依赖
This commit is contained in:
1 parent
f4b25bbb2a
commit
af319bec48
4 files changed
+10
-19
No files matched your search
@@ -56,8 +56,7 @@ public class ${className}Controller {
|
||||
*/
|
||||
@PostMapping
|
||||
public R save(@RequestBody ${className} ${classname}){
|
||||
${classname}Service.insert(${classname});
|
||||
return new R<>(Boolean.TRUE);
|
||||
return new R<>(${classname}Service.insert(${classname}));
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -73,13 +72,12 @@ public class ${className}Controller {
|
||||
|
||||
/**
|
||||
* 删除
|
||||
* @param ${pk.lowerAttrName}s
|
||||
* @param ${pk.lowerAttrName}
|
||||
* @return R
|
||||
*/
|
||||
@DeleteMapping
|
||||
public R delete(@RequestBody ${pk.attrType}[] ${pk.lowerAttrName}s){
|
||||
${classname}Service.deleteBatchIds(Arrays.asList(${pk.lowerAttrName}s));
|
||||
return new R<>(Boolean.TRUE);
|
||||
@DeleteMapping("/{${pk.lowerAttrName}}")
|
||||
public R delete(@PathVariable ${pk.attrType} ${pk.lowerAttrName}){
|
||||
return new R<>(${classname}Service.deleteById(${pk.lowerAttrName}));
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user