|
@@ -36,11 +36,8 @@ import org.springblade.core.redis.cache.BladeRedis;
|
|
|
import org.springblade.core.sms.model.SmsCode;
|
|
|
import org.springblade.core.sms.model.SmsData;
|
|
|
import org.springblade.core.tool.api.R;
|
|
|
-import org.springblade.core.tool.utils.StringUtil;
|
|
|
import org.springblade.modules.desk.entity.Notice;
|
|
|
import org.springblade.modules.desk.service.INoticeService;
|
|
|
-import org.springblade.modules.mall.entity.CategoryInfo;
|
|
|
-import org.springblade.modules.mall.service.ICategoryInfoService;
|
|
|
import org.springblade.modules.platform.entity.Ads;
|
|
|
import org.springblade.modules.platform.entity.Article;
|
|
|
import org.springblade.modules.platform.entity.Payments;
|
|
@@ -51,13 +48,11 @@ import org.springblade.modules.resource.builder.sms.SmsBuilder;
|
|
|
import org.springblade.modules.resource.utils.SmsUtil;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
-import javax.annotation.Resource;
|
|
|
-import java.time.Duration;
|
|
|
import java.util.List;
|
|
|
import java.util.Map;
|
|
|
-import java.util.Objects;
|
|
|
|
|
|
-import static org.springblade.modules.resource.utils.SmsUtil.*;
|
|
|
+import static org.springblade.modules.resource.utils.SmsUtil.PARAM_KEY;
|
|
|
+import static org.springblade.modules.resource.utils.SmsUtil.SEND_SUCCESS;
|
|
|
|
|
|
/**
|
|
|
* 控制器
|
|
@@ -129,6 +124,13 @@ public class CommonController extends BladeController {
|
|
|
return R.data(articleService.getById(id));
|
|
|
}
|
|
|
|
|
|
+ @GetMapping("/notice-detail")
|
|
|
+ @ApiOperationSupport(order = 5)
|
|
|
+ @ApiOperation(value = "查询文章详情")
|
|
|
+ public R<Notice> noticeDetail(@ApiParam(value = "文章Id", required = true) @RequestParam Long id) {
|
|
|
+ return R.data(noticeService.getById(id));
|
|
|
+ }
|
|
|
+
|
|
|
@ApiOperation("获取通知公告")
|
|
|
@ApiOperationSupport(order = 6)
|
|
|
@GetMapping("notice")
|