package com.doumee.api.web; import com.doumee.config.annotation.LoginRequired; import com.doumee.core.annotation.pr.PreventRepeat; import com.doumee.core.model.ApiResponse; import com.doumee.dao.business.model.Collect; import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; import org.apache.shiro.authz.annotation.RequiresPermissions; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; /** * @author 江蹄蹄 * @date 2023/03/21 15:48 */ @Api(tags = "用户收藏信息表") @RestController @RequestMapping("/web/collect") @LoginRequired public class CollectApi extends ApiController{ @PreventRepeat @ApiOperation("新建") @PostMapping("/create") public ApiResponse create(@RequestBody Collect collect) { return ApiResponse.success(collectService.create(collect,getMemberId())); } }