feat(Property): 小程序热门活动接口
This commit is contained in:
@@ -1,17 +1,9 @@
|
||||
package org.dromara.property.controller.xcx;
|
||||
|
||||
import cn.dev33.satoken.annotation.SaCheckPermission;
|
||||
import jakarta.servlet.http.HttpServletResponse;
|
||||
import jakarta.validation.constraints.NotEmpty;
|
||||
import jakarta.validation.constraints.NotNull;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.dromara.common.core.domain.R;
|
||||
import org.dromara.common.core.validate.AddGroup;
|
||||
import org.dromara.common.core.validate.EditGroup;
|
||||
import org.dromara.common.excel.utils.ExcelUtil;
|
||||
import org.dromara.common.idempotent.annotation.RepeatSubmit;
|
||||
import org.dromara.common.log.annotation.Log;
|
||||
import org.dromara.common.log.enums.BusinessType;
|
||||
import org.dromara.common.mybatis.core.page.PageQuery;
|
||||
import org.dromara.common.mybatis.core.page.TableDataInfo;
|
||||
import org.dromara.common.web.core.BaseController;
|
||||
@@ -21,14 +13,13 @@ import org.dromara.property.service.ICustomerActivityService;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 客户服务-活动
|
||||
* 前端访问路由地址为:/property/activity
|
||||
*
|
||||
* @author lsm
|
||||
* @since 2025-09-11
|
||||
* @since 2025-09-11
|
||||
*/
|
||||
@Validated
|
||||
@RequiredArgsConstructor
|
||||
@@ -55,7 +46,7 @@ public class XCustomerActivityController extends BaseController {
|
||||
@SaCheckPermission("xcx:activity:query")
|
||||
@GetMapping("/{id}")
|
||||
public R<CustomerActivityVo> getInfo(@NotNull(message = "主键不能为空")
|
||||
@PathVariable("id") Long id) {
|
||||
@PathVariable("id") Long id) {
|
||||
return R.ok(customerActivityService.queryById(id));
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user