Skip to content

Commit c6b70f3

Browse files
committed
controller
1 parent 0876cb3 commit c6b70f3

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

website/src/main/java/info/xiaomo/website/controller/ChangeLogController.java

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,11 @@
1212
import org.springframework.beans.factory.annotation.Autowired;
1313
import org.springframework.data.domain.Page;
1414
import org.springframework.http.MediaType;
15-
import org.springframework.web.bind.annotation.*;
15+
import org.springframework.web.bind.annotation.PathVariable;
16+
import org.springframework.web.bind.annotation.RequestBody;
17+
import org.springframework.web.bind.annotation.RequestMapping;
18+
import org.springframework.web.bind.annotation.RequestMethod;
19+
import org.springframework.web.bind.annotation.RestController;
1620

1721
import java.util.List;
1822

@@ -78,7 +82,7 @@ public Result findByName(@PathVariable("name") String name) {
7882
if (model == null) {
7983
return new Result(CodeConst.NULL_DATA.getResultCode(), CodeConst.NULL_DATA.getMessage());
8084
}
81-
return new Result(model);
85+
return new Result<>(model);
8286
}
8387

8488
/**

0 commit comments

Comments
 (0)