|
@@ -5,14 +5,7 @@ import javax.servlet.http.HttpServletResponse;
|
|
|
|
|
|
import org.springframework.security.access.prepost.PreAuthorize;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
-import org.springframework.web.bind.annotation.GetMapping;
|
|
|
-import org.springframework.web.bind.annotation.PostMapping;
|
|
|
-import org.springframework.web.bind.annotation.PutMapping;
|
|
|
-import org.springframework.web.bind.annotation.DeleteMapping;
|
|
|
-import org.springframework.web.bind.annotation.PathVariable;
|
|
|
-import org.springframework.web.bind.annotation.RequestBody;
|
|
|
-import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
-import org.springframework.web.bind.annotation.RestController;
|
|
|
+import org.springframework.web.bind.annotation.*;
|
|
|
import com.zhjq.common.annotation.Log;
|
|
|
import com.zhjq.common.core.controller.BaseController;
|
|
|
import com.zhjq.common.core.domain.AjaxResult;
|
|
@@ -104,4 +97,16 @@ public class ZhjqArticleController extends BaseController {
|
|
|
return success(zhjqArticleService.selectZhjqArticleByColumnId(columnId));
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * 小程序获取文章管理列表
|
|
|
+ */
|
|
|
+ @GetMapping("/articleAppList")
|
|
|
+ public AjaxResult getArticleAppList(
|
|
|
+ @RequestParam("columnId") Long columnId,
|
|
|
+ @RequestParam(value = "sort", required = false) String sort,
|
|
|
+ @RequestParam(value = "limit", required = false, defaultValue = "10") int limit) {
|
|
|
+ List<ZhjqArticle> result = zhjqArticleService.getArticleAppList(columnId, sort, limit);
|
|
|
+ return AjaxResult.success(result);
|
|
|
+ }
|
|
|
+
|
|
|
}
|