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); } }