Search in sources :

Example 1 with OperationLogger

use of com.moxi.mogublog.admin.annotion.OperationLogger.OperationLogger in project mogu_blog_v2 by moxi624.

the class PictureSortRestApi method getPictureSortByUid.

@OperationLogger(value = "通过Uid获取分类")
@ApiOperation(value = "通过Uid获取分类", notes = "通过Uid获取分类", response = String.class)
@PostMapping("/getPictureSortByUid")
public String getPictureSortByUid(@Validated({ Delete.class }) @RequestBody PictureSortVO pictureSortVO, BindingResult result) {
    // 参数校验
    ThrowableUtils.checkParamArgument(result);
    PictureSort pictureSort = pictureSortService.getById(pictureSortVO.getUid());
    log.info("通过Uid获取分类: {}", pictureSort);
    return ResultUtil.successWithData(pictureSort);
}
Also used : PictureSort(com.moxi.mogublog.commons.entity.PictureSort) PostMapping(org.springframework.web.bind.annotation.PostMapping) ApiOperation(io.swagger.annotations.ApiOperation) OperationLogger(com.moxi.mogublog.admin.annotion.OperationLogger.OperationLogger)

Aggregations

OperationLogger (com.moxi.mogublog.admin.annotion.OperationLogger.OperationLogger)1 PictureSort (com.moxi.mogublog.commons.entity.PictureSort)1 ApiOperation (io.swagger.annotations.ApiOperation)1 PostMapping (org.springframework.web.bind.annotation.PostMapping)1