xiangpei
7 天以前 56224037cde5a381dbdce941bfc3a4f555584e3b
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
35
36
37
38
39
40
41
42
43
44
package cn.lili.controller.lmk;
 
import cn.lili.base.Result;
import cn.lili.group.Add;
import cn.lili.modules.lmk.domain.form.ShareClickRecordForm;
import cn.lili.modules.lmk.domain.form.ShareForm;
import cn.lili.modules.lmk.service.ShareService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import org.springframework.validation.annotation.Validated;
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 xp
 * @since 2025-06-16
 */
@Validated
@RequiredArgsConstructor
@Api(value = "分享记录", tags = "分享记录管理")
@RestController
@RequestMapping("/buyer/lmk/share")
public class ShareController {
 
    private final ShareService shareService;
 
 
    @PostMapping
    @ApiOperation(value = "添加分享", notes = "添加分享")
    public Result add(@RequestBody @Validated(Add.class) ShareForm form) {
        return shareService.add(form);
    }
 
    @PostMapping("/click/record")
    @ApiOperation(value = "添加分享访问记录", notes = "添加分享访问记录")
    public Result addShareClick(@RequestBody @Validated(Add.class) ShareClickRecordForm form) {
        return shareService.addShareClick(form);
    }
}