|
@@ -5,6 +5,7 @@ import com.gis.admin.entity.dto.UserWebDto;
|
|
|
import com.gis.admin.entity.po.SysUserEntity;
|
|
|
import com.gis.admin.service.SysUserService;
|
|
|
import com.gis.cms.entity.dto.*;
|
|
|
+import com.gis.cms.entity.po.GoodsModuleEntity;
|
|
|
import com.gis.cms.entity.po.QuestionGroupEntity;
|
|
|
import com.gis.cms.service.*;
|
|
|
import com.gis.common.base.aop.WebControllerLog;
|
|
@@ -22,6 +23,7 @@ import org.apache.commons.lang3.StringUtils;
|
|
|
import org.springframework.beans.BeanUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
+import tk.mybatis.mapper.entity.Condition;
|
|
|
|
|
|
import javax.servlet.http.HttpServletRequest;
|
|
|
import javax.validation.Valid;
|
|
@@ -32,7 +34,7 @@ import java.util.Map;
|
|
|
* Created by owen on 2021/6/28 0028 10:58
|
|
|
*/
|
|
|
@Slf4j
|
|
|
-@Api(tags = "门户网站(需要token)")
|
|
|
+@Api(tags = "v0.2-门户网站(需要token)")
|
|
|
@RestController
|
|
|
@RequestMapping("cms/web/manage")
|
|
|
public class WebManageController {
|
|
@@ -146,30 +148,30 @@ public class WebManageController {
|
|
|
return sysUserService.saveEntity(userDto);
|
|
|
}
|
|
|
|
|
|
- @WebControllerLog(description = "门户网站-臧品投票", addDb = true)
|
|
|
- @ApiOperation("v0.2-臧品投票")
|
|
|
+ @WebControllerLog(description = "门户网站-藏品投票", addDb = true)
|
|
|
+ @ApiOperation("v0.2-藏品投票")
|
|
|
@PostMapping("goods/vote")
|
|
|
public Result goodsVote(@Valid @RequestBody GoodsVoteDto param) {
|
|
|
return goodsVoteService.goodsVote(param);
|
|
|
}
|
|
|
|
|
|
|
|
|
- @WebControllerLog(description = "门户网站-取消臧品投票", addDb = true)
|
|
|
- @ApiOperation("v0.2-取消臧品投票")
|
|
|
+ @WebControllerLog(description = "门户网站-取消藏品投票", addDb = true)
|
|
|
+ @ApiOperation("v0.2-取消藏品投票")
|
|
|
@GetMapping("goods/vote/del/{goodsId}")
|
|
|
public Result goodsVoteDel(@PathVariable Long goodsId) {
|
|
|
return goodsVoteService.goodsVoteDel(goodsId);
|
|
|
}
|
|
|
|
|
|
- @WebControllerLog(description = "门户网站-臧品点赞", addDb = true)
|
|
|
- @ApiOperation("v0.2-臧品点赞")
|
|
|
+ @WebControllerLog(description = "门户网站-藏品点赞", addDb = true)
|
|
|
+ @ApiOperation("v0.2-藏品点赞")
|
|
|
@PostMapping("goods/like")
|
|
|
public Result goodsLike(@Valid @RequestBody GoodsVoteDto param) {
|
|
|
return goodsVoteService.goodsLike(param);
|
|
|
}
|
|
|
|
|
|
- @WebControllerLog(description = "门户网站-取消臧品点赞", addDb = true)
|
|
|
- @ApiOperation("v0.2-取消臧品点赞")
|
|
|
+ @WebControllerLog(description = "门户网站-取消藏品点赞", addDb = true)
|
|
|
+ @ApiOperation("v0.2-取消藏品点赞")
|
|
|
@GetMapping("goods/like/del/{goodsId}")
|
|
|
public Result goodsLikeDel(@PathVariable Long goodsId) {
|
|
|
return goodsVoteService.goodsVoteDelByType(goodsId, "like");
|
|
@@ -179,4 +181,6 @@ public class WebManageController {
|
|
|
|
|
|
|
|
|
|
|
|
+
|
|
|
+
|
|
|
}
|