|
@@ -21,6 +21,15 @@ public class UserGrowthLogController {
|
|
|
@Autowired
|
|
|
private IUserGrowthLogService iUserGrowthLogService;
|
|
|
|
|
|
+ @GetMapping("/logById")
|
|
|
+ @ApiOperation(value = "通过id查询成长值记录")
|
|
|
+ public ResultObject<UserGrowthLog> query(@ApiParam(value = "id",required = true) @RequestParam String id) {
|
|
|
+ return iUserGrowthLogService.queryById(id)
|
|
|
+ .map(i -> ResultObject.success(i))
|
|
|
+ .orElse(ResultObject.error("找不到成长值记录"));
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
@GetMapping("/logs")
|
|
|
@ApiOperation(value = "查询成长值记录")
|
|
|
public Page<UserGrowthLog> query(@ApiParam(value = "页数", required = true) @RequestParam Integer page,
|