lutong 2 ay önce
ebeveyn
işleme
c865561b3f

+ 0 - 11
alien-store/src/main/java/shop/alien/store/controller/StoreClockInController.java

@@ -104,15 +104,4 @@ public class StoreClockInController {
         log.info("StoreClockInController.getStoreClockInById?userId={},id={}", userId, id);
         return R.data(storeClockInService.getStoreClockInById(id, userId));
     }
-
-    @ApiOperation("增加浏览数")
-    @ApiOperationSupport(order = 7)
-    @ApiImplicitParams({@ApiImplicitParam(name = "id", value = "主键id", dataType = "Integer", paramType = "query")})
-    @GetMapping("/increaseViewCount")
-    public R<String> increaseViewCount(Integer id) {
-        log.info("StoreClockInController.increaseViewCount?id={}", id);
-        int result = storeClockInService.increaseViewCount(id);
-        return 1 == result ? R.success("浏览数增加成功") : R.fail("浏览数增加失败");
-    }
-
 }

+ 0 - 7
alien-store/src/main/java/shop/alien/store/service/StoreClockInService.java

@@ -45,11 +45,4 @@ public interface StoreClockInService extends IService<StoreClockIn> {
      */
     StoreClockInVo getStoreClockInById(Integer id, Integer userId);
 
-    /**
-     * 增加浏览数
-     *
-     * @param id 打卡记录id
-     * @return 更新结果
-     */
-    int increaseViewCount(Integer id);
 }