rk
2025-12-15 a1a6e227628810259fcba0fff146792e97a80b8a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
package com.doumee.api.web;
 
import com.doumee.core.annotation.pr.PreventRepeat;
import com.doumee.core.model.ApiResponse;
import com.doumee.dao.business.model.Zan;
import com.doumee.service.business.ZanService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
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/zan")
public class ZanApi extends ApiController{
 
 
 
    @PreventRepeat
    @ApiOperation("新建")
    @PostMapping("/create")
    @RequiresPermissions("business:zan:create")
    public ApiResponse create(@RequestBody Zan zan) {
        return ApiResponse.success(zanService.create(zan,getMemberId()));
    }
}