| | |
| | | package cn.lili.controller.lmk; |
| | | |
| | | import cn.lili.group.Update; |
| | | import cn.lili.base.Result; |
| | | import cn.lili.group.Add; |
| | | import org.springframework.validation.annotation.Validated; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import lombok.RequiredArgsConstructor; |
| | | import java.util.List; |
| | | import org.springframework.validation.annotation.Validated; |
| | | import javax.validation.constraints.NotEmpty; |
| | | import cn.lili.modules.lmk.domain.form.ActionRecordForm; |
| | | import cn.lili.modules.lmk.domain.form.ShareActionForm; |
| | | import cn.lili.modules.lmk.service.ActionRecordService; |
| | | import cn.lili.modules.lmk.service.ShareActionService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import cn.lili.modules.lmk.service.ActionRecordService; |
| | | import cn.lili.base.Result; |
| | | import cn.lili.modules.lmk.domain.form.ActionRecordForm; |
| | | import cn.lili.modules.lmk.domain.query.ActionRecordQuery; |
| | | import lombok.RequiredArgsConstructor; |
| | | import org.springframework.validation.annotation.Validated; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | /** |
| | |
| | | public class ActionRecordBuyerController { |
| | | |
| | | private final ActionRecordService actionRecordService; |
| | | private final ShareActionService shareActionService; |
| | | |
| | | @PostMapping |
| | | @ApiOperation(value = "添加", notes = "添加") |
| | | public Result add(@RequestBody @Validated(Add.class) ActionRecordForm form) { |
| | | return actionRecordService.add(form); |
| | | } |
| | | @PostMapping("/share") |
| | | @ApiOperation(value = "添加分享", notes = "添加分享") |
| | | public Result shareAdd(@RequestBody @Validated(Add.class) ShareActionForm form) { |
| | | return shareActionService.add(form); |
| | | } |
| | | @GetMapping("/sessionId") |
| | | @ApiOperation(value = "获取会话id", notes = "获取会话id") |
| | | public Result grantSessionId() { |