Skip to content

Commit 0b03c4a

Browse files
committed
fix: session.go
1 parent 7bfd198 commit 0b03c4a

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

templates/java-spring-jpa/share/java/restful_api.java.tpl

+2-2
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,8 @@ public class {{.table.Title}}Resource {
7777
@DeleteMapping("/{id}")
7878
@Resource(key = "{{$resPrefix}}:delete",name="删除{{.table.Comment}}")
7979
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);
8282
}
8383

8484
/** {{.table.Comment}}分页数据 */

templates/java-spring-mybatis/share/java/restful_api.java.tpl

+2-2
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,8 @@ public class {{.table.Title}}Resource {
7777
@DeleteMapping("/{id}")
7878
@Resource(key = "{{$resPrefix}}:delete",name="删除{{.table.Comment}}")
7979
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);
8282
}
8383

8484
/** {{.table.Comment}}分页数据 */

0 commit comments

Comments
 (0)