package com.zhujizheng.IHome.remark.controller; import com.zhujizheng.IHome.remark.dto.PYRemarkUpdateDTO; import com.zhujizheng.IHome.remark.service.PYRemarkService; import com.zhujizheng.IHome.remark.vo.PYRemarkVO; import com.zhujizheng.IHome.util.response.ResponseResult; import com.zhujizheng.IHome.util.response.RestResultGenerator; import io.swagger.annotations.Api; import io.swagger.annotations.ApiImplicitParam; import io.swagger.annotations.ApiImplicitParams; import io.swagger.annotations.ApiOperation; import lombok.extern.slf4j.Slf4j; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.*; import java.util.List; /** * Created with IntelliJ IDEA *
* Author: yons
* Date: 2021/03/21
* Time: 02:45
* Description:
* Copyright © 2021年 com.zhujizheng. All rights reserved.
*/
@Api("备注相关")
@RestController
@RequestMapping("/remark")
@Slf4j
public class PYRemarkController {
@Autowired
private PYRemarkService remarkService;
@ApiOperation("获取所有备注")
@ApiImplicitParam(name = "userId", value = "用户id", paramType = "path", required = true, dataType = "int")
@GetMapping("/pull/{userId}")
public ResponseResult getCollectWithId(@PathVariable int userId) {
List