File tree 2 files changed +4
-4
lines changed
java-spring-jpa/share/java
java-spring-mybatis/share/java
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -77,8 +77,8 @@ public class {{.table.Title}}Resource {
77
77
@DeleteMapping("/{ id} ")
78
78
@Resource(key = "{ {$resPrefix } }:delete",name="删除{ {.table.Comment} }")
79
79
public Result delete{ {$shortTitle } }(@PathVariable("id") { {$pkType } } id){
80
- Error err = this.service.delete{{$shortTitle } }ById(id);
81
- return Result.of(err );
80
+ this.service.delete{{$shortTitle } }ById(id);
81
+ return Result.of(nil );
82
82
}
83
83
84
84
/** { {.table.Comment} }分页数据 */
Original file line number Diff line number Diff line change @@ -77,8 +77,8 @@ public class {{.table.Title}}Resource {
77
77
@DeleteMapping("/{ id} ")
78
78
@Resource(key = "{ {$resPrefix } }:delete",name="删除{ {.table.Comment} }")
79
79
public Result delete{ {$shortTitle } }(@PathVariable("id") { {$pkType } } id){
80
- Error err = this.service.delete{{$shortTitle } }ById(id);
81
- return Result.of(err );
80
+ this.service.delete{{$shortTitle } }ById(id);
81
+ return Result.of(null );
82
82
}
83
83
84
84
/** { {.table.Comment} }分页数据 */
You can’t perform that action at this time.
0 commit comments