Skip to content

Commit

Permalink
fix: session.go
Browse files Browse the repository at this point in the history
  • Loading branch information
ixre committed Oct 23, 2024
1 parent 7bfd198 commit 0b03c4a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions templates/java-spring-jpa/share/java/restful_api.java.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@ public class {{.table.Title}}Resource {
@DeleteMapping("/{id}")
@Resource(key = "{{$resPrefix}}:delete",name="删除{{.table.Comment}}")
public Result delete{{$shortTitle}}(@PathVariable("id") {{$pkType}} id){
Error err = this.service.delete{{$shortTitle}}ById(id);
return Result.of(err);
this.service.delete{{$shortTitle}}ById(id);
return Result.of(nil);
}

/** {{.table.Comment}}分页数据 */
Expand Down
4 changes: 2 additions & 2 deletions templates/java-spring-mybatis/share/java/restful_api.java.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@ public class {{.table.Title}}Resource {
@DeleteMapping("/{id}")
@Resource(key = "{{$resPrefix}}:delete",name="删除{{.table.Comment}}")
public Result delete{{$shortTitle}}(@PathVariable("id") {{$pkType}} id){
Error err = this.service.delete{{$shortTitle}}ById(id);
return Result.of(err);
this.service.delete{{$shortTitle}}ById(id);
return Result.of(null);
}

/** {{.table.Comment}}分页数据 */
Expand Down

0 comments on commit 0b03c4a

Please sign in to comment.